Skip to content

Exclude .wav files from Webonary upload#922

Merged
johnml1135 merged 1 commit into
mainfrom
fix/exclude-wav-from-webonary-upload
Jun 16, 2026
Merged

Exclude .wav files from Webonary upload#922
johnml1135 merged 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
@johnml1135 johnml1135 requested review from Copilot and johnml1135 and removed request for johnml1135 June 15, 2026 14:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Webonary upload filtering logic to prevent raw .wav audio files from being uploaded (favoring the existing .wav.mp3 conversion path used during web export).

Changes:

  • Removed .wav from UploadToWebonaryController.IsSupportedWebonaryFile supported extensions list.
  • Updated IsSupportedWebonaryFile_reportsAccurately to assert that .wav is rejected.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Src/xWorks/UploadToWebonaryController.cs Removes .wav from the supported upload extensions checked during Webonary upload recursion.
Src/xWorks/xWorksTests/UploadToWebonaryControllerTests.cs Updates the supported-file test to expect .wav to be unsupported.

@johnml1135 johnml1135 merged commit 68f04d0 into main Jun 16, 2026
7 checks passed
@johnml1135 johnml1135 deleted the fix/exclude-wav-from-webonary-upload branch June 16, 2026 14:33
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.

3 participants