Skip to content

Exclude .wav files from Webonary upload#922

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

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

Conversation

@jasonleenaylor
Copy link
Copy Markdown
Contributor

@jasonleenaylor jasonleenaylor commented Jun 2, 2026

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

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>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

NUnit Tests

    1 files  ±0      1 suites  ±0   11m 7s ⏱️ -43s
4 210 tests ±0  4 140 ✅ ±0  70 💤 ±0  0 ❌ ±0 
4 219 runs  ±0  4 149 ✅ ±0  70 💤 ±0  0 ❌ ±0 

Results for commit ce720eb. ± Comparison against base commit bcbb024.

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