Repository navigation
awc_shorts: reject banks that share an export folder - #6775
Conversation
Check destination directories before starting workers so two banks cannot overwrite a clip and share one catalog path.
|
Tested fa1dbfb merged with main 1cc6e3c on Linux/Python 3.12.16: pass Commands (fresh worktree of upstream/main with the PR head merged,
Negative control: Diff read: the check runs before any clip or catalog write and returns 2, the test confirms the output folder only holds the pre-existing shorts.csv with unchanged bytes. The test skips on case-insensitive volumes (Windows/macOS defaults), so the guard is only exercised on case-sensitive filesystems; I did not run it on Windows. |
|
Tested
AI-assisted. No game files. |
shayderrr
left a comment
There was a problem hiding this comment.
Summary
tools/awc_shorts.py::main records each bank's output directory under its path_key and refuses the run when two banks map to one folder, identifying both inputs before any clip or catalog write; docs/awc_shorts.md and test_bank_extensions_cannot_collapse_two_banks_into_one_export cover it.
Why merge
Prevents clip.awc and clip.AWC from silently exporting two recordings into one .ogg on case-sensitive volumes. Test-backed correctness fix for the media tool.
Verdict: Approve
|
Summary Why merge Verdict: Approve |
Claimed in the coordination issue as: four media-tool items on #6603,
awc_shortsitem.What and why
On a case-sensitive input volume,
clip.awcandclip.AWCare two banks but both export underclip/. With different synthetic packets under one ID the old CLI succeeded: its two CSV rows referred to the same.ogg, containing only one recording. Check the destination directories with the samepath_keyused byawc_opusbefore scheduling jobs. An ambiguous run now identifies both input paths without updating clips or the catalog. Distinct output folders keep their existing names.Tested
python3.12 -I tests/test_awc_shorts.py: 14 passed.--jobs 1and--jobs 2each returned 2 and preserved the prior catalog. The regression also checks that no clip directory was created.git diff --checkandpython3.12 -I scripts/check_no_game_data.pyon the changed paths passed. Merge-tree trials: Clean against main, tests: pass errors=replace to subprocess pipes capturing python -I tools #3960, docs/awc_shorts: a repeated stream id is written as <id>~2.ogg, not overwritten #5648, awc_shorts: name a missing source as typed, not through repr() (EGEN-AWC-SHORTS-PATHREPR) #6647 and Report directory scan failures in AWC shorts export #6664. The documentation-only update atfa1dbfbb01also merges cleanly with awc_shorts: stabilize case-distinct bank ordering across workers #5529, and the combinedtest_awc_shorts.pypasses all 15 tests. awc_shorts: create per-bank folders only on export and surface scan errors #2900 already conflicts on the unchanged base.AI-assisted: yes.
Checklist