Skip to content

Exclude .wav files from Webonary upload#922

Open
jasonleenaylor wants to merge 1 commit into
mainfrom
fix/exclude-wav-from-webonary-upload
Open

Exclude .wav files from Webonary upload#922
jasonleenaylor wants to merge 1 commit into
mainfrom
fix/exclude-wav-from-webonary-upload

Conversation

@jasonleenaylor

@jasonleenaylor jasonleenaylor commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removed .wav from the supported file extensions in IsSupportedWebonaryFile, so raw .wav files are no longer uploaded to Webonary.
  • The export pipeline already converts .wav to .mp3 via WavConverter.WavToMp3 in CopyFileSafely when IsWebExport is true. However, .wav was still listed as a supported upload format, meaning any .wav that survived into the export directory (e.g. if conversion failed) would be uploaded as-is -- large, uncompressed, and unintended.
  • Updated the corresponding test assertion to expect .wav to be rejected.

Test plan

  • IsSupportedWebonaryFile_reportsAccurately test passes with updated assertion

Created in collaboration with Claude Code


This change is Reviewable

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

NUnit Tests

    1 files  ±0      1 suites  ±0   10m 28s ⏱️ -1s
4 251 tests ±0  4 178 ✅ ±0  73 💤 ±0  0 ❌ ±0 
4 260 runs  ±0  4 187 ✅ ±0  73 💤 ±0  0 ❌ ±0 

Results for commit ebb7295. ± Comparison against base commit 1b0a2a9.

♻️ This comment has been updated with latest results.

The export pipeline already converts .wav to .mp3 via WavConverter in
CopyFileSafely when IsWebExport is true. However, IsSupportedWebonaryFile
still listed .wav as an accepted format, so any .wav that slipped through
(e.g. if conversion failed) was uploaded as-is. Remove .wav from the
supported list so unconverted files are excluded rather than uploaded.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jasonleenaylor jasonleenaylor force-pushed the fix/exclude-wav-from-webonary-upload branch from ce720eb to ebb7295 Compare June 11, 2026 17:35
@jasonleenaylor jasonleenaylor marked this pull request as ready for review June 11, 2026 17:37
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.

1 participant