Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Ignore data generated under tests/samples by recipe tests - #3110

Open
quetion667 wants to merge 1 commit into
speechbrain:developfrom
quetion667:fix/2608-gitignore-recipe-test-clutter
Open

quetion667 wants to merge 1 commit into
speechbrain:developfrom
quetion667:fix/2608-gitignore-recipe-test-clutter

Conversation

@quetion667

Copy link
Copy Markdown

What does this PR do?

Recipe tests run recipes with --data_folder tests/samples/<dir>, and several recipes derive write locations from data_folder:

  • data_folder_noise: !ref <data_folder>/noise and data_folder_rir: !ref <data_folder>/rir, where prepare_dataset_from_URL downloads and unpacks the noise/RIR archives;
  • ESC50's train/valid/test_annotation: !ref <data_folder>/manifest/*.json, written by esc50_prepare.py.

None of these are ignored, so running the recipe tests leaves untracked directories in the repo. I cross-checked every row of tests/recipes/*.csv (data folder override + hparams + whether train.py runs prepare_noise_data / prepare_rir_data). On current develop the generated directories are the ones listed in the issue plus three more:

directory created by
tests/samples/ASR/noise/, ASR/rir/ many ASR / KWS recipes
tests/samples/ESC50/manifest/ ESC50 classification / interpret
tests/samples/VAD/noise/ LibriParty VAD
tests/samples/lang/noise/, lang/rir/ CommonLanguage lang_id
tests/samples/separation/noise/ Voicebank MTL robust ASR, enhancement template (new)
tests/samples/single-mic/noise/, single-mic/rir/ VoxLingua107 lang_id (new)

This PR adds three patterns next to the existing tests/tmp/ / tests/download/ entries:

tests/samples/*/noise/
tests/samples/*/rir/
tests/samples/ESC50/manifest/

* matches a single level, so the tracked tests/samples/noise/ and tests/samples/RIRs/ are not affected; git ls-files -ci --exclude-standard is empty.

Side note: on case-insensitive setups (e.g. Windows) the existing PyInstaller MANIFEST rule already hides ESC50/manifest/ by accident, which is why it only shows up on Linux/macOS.

Fixes #2608

Testing:

  • Ran prepare_esc50 with the same arguments train.py uses for the recipe test: before, git -c core.ignorecase=false status lists tests/samples/ESC50/manifest/*.json; after, nothing.
  • For noise/RIR I recreated the download layout (data.zip + unpacked files) in all eight directories instead of downloading the ~570 MB archive: all listed as untracked before, none after.
  • git check-ignore on tracked sample files: not ignored. pre-commit run --files .gitignore: passed.
  • I did not run the full recipe test suite (it downloads several hundred MB); the change only touches .gitignore.

No breaking changes.

This change was prepared with Claude Code and reviewed by the author.

Before submitting
  • Did you read the contributor guideline?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you list all the breaking changes introduced by this pull request?
  • Does your code adhere to project-specific code style and conventions?

🤖 Generated with Claude Code

Recipe tests point --data_folder at tests/samples/<dir>, and several recipes
derive write locations from it: data_folder_noise/data_folder_rir
(<data_folder>/noise, <data_folder>/rir) where the noise and RIR archives are
downloaded and unpacked, and the ESC50 manifests (<data_folder>/manifest).
These showed up as untracked files after running the recipe tests.

Fixes speechbrain#2608

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recipe tests generate a lot of clutter that is not .gitignored

1 participant