Repository navigation
AWC-OGG-RERUN-INVENTORY: skip stale Ogg exports - #6979
Barbital11111 wants to merge 2 commits into
Conversation
|
Tested 222da71 merged with main 8575d36 on Linux/Python 3.12.16: pass The PR head already contains main 8575d36 (the merge was a fast-forward); against main it changes tests/test_awc_markers.py, tests/test_awc_opus.py, tools/audio_wav.py, tools/awc_opus.py and adds tools/awc_ogg_inventory.py. Commands run (
Diff read: awc_opus.py records the |
|
Verified: tests/test_awc_opus.py runs Ran 58 OK merged (re-run at your rebased head 222da71, which now merges clean into 8575d36), and the two new tests fail on clean main, so the stale-.ogg skip path is genuinely exercised — and nothing is superseded: #6867, which landed mid-check and caused the earlier conflict, invalidates cue-region JSON only, while main's audio_wav.collect still decodes stale .ogg exports. The new tool is stdlib-only and the inventory writes through the staged-rename write_file. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Tested 222da71 merged onto main 6f58bd2 on Windows 11 Pro, Intel i7-14700KF, CPython 3.11.0 (venv: pytest 9.2.0, numpy 2.4.6, Pillow 13.0.0; numpy is below the 2.5.5 pin because 2.5 needs Python 3.12), CPU only: pass, with notes.
Review notes:
AI-assisted (Claude Code). |
|
Tested 222da71 on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
KotikVanil
left a comment
There was a problem hiding this comment.
Tested 222da71f on Windows x64 / Python 3.13. All 58 Opus tests passed. I reproduced a separate interruption case in a synthetic two-stream bank.
- Start the first export into an empty directory. In a child process, wrap
write_ogg_opusso it runs the real writer and then callsos._exit(73)after the first file. The actual publish completes, then the child exits before the in-memorycurrent.addor the inventory write. - Replace the synthetic input with malformed bytes and run the exporter again. It reports a skipped bank and zero files.
audio_wav.collectstill schedules the first Ogg. The inventory is absent, so the directory walker classifies the published file as unrelated.
The same window applies to a new stream name added by a later export, even when an inventory exists. The old inventory cannot identify that new name. Consider recording newly owned output names as pending before publication and marking successful files current when the run finishes. That can preserve automatic discovery for files the exporter never targeted.
AI-assisted (Codex). Synthetic inputs, no game data or GPU.
|
Candidate fix and abrupt-exit regression for the interruption case in my review. On Windows, the added test fails on Known names require no extra write before publication. An ordinary write failure rolls back a provisional name, and an abrupt exit leaves it recorded as stale so directory decoding skips the result. AI-assisted (Codex), synthetic fixtures only. |
AWC-OGG-RERUN-INVENTORY: skip stale Ogg exports Independent review: ItsNotRexed#6979 (comment) Fork integration. AI-assisted (Codex).
AWC-OGG-RERUN-INVENTORY · Coordination claim
A skipped bank or a partial re-export can leave Ogg files from a previous successful run. Directory WAV conversion used to decode those files as if they were current. The exporter now records previously produced names and the Ogg files it published on this run. The directory scanner ignores only names recorded as stale. It leaves the files on disk and still discovers untracked Ogg files and directories without an inventory.
Validation
56e607ac8and pass after the fix: malformed-bank re-export and a write failure on the second stream. A subsequent successful two-worker export makes the generated track discoverable again.git diff --checkand the changed-file no-game-data check passed.Synthetic fixtures only. AI-assisted (Codex).
Main-branch integration
Merged upstream
8575d36edinto this branch, resolving the overlap with the optional music cue sheet. The export records each published music Ogg and still passes its final granule to the cue-boundary check. The combined regression starts with a current Ogg and cue record, then verifies that both are invalidated on a malformed-bank or failed-write rerun while the previous Ogg stays on disk.On Windows 11 / CPython 3.14.3 with an existing FFmpeg 7.1 binary on the test PATH, the six audio suites ran 147 tests with 143 passed and 4 platform/filesystem skips. This includes actual FFmpeg decoding on synthetic inputs. The updated-branch diff and changed-file no-game-data check passed.