Repository navigation
Conversation
Break ties between distinct bank spellings without reordering duplicate IDs from a single bank. Verified on Linux x86_64 with Python 3.12.13: python3.12 -I tests/test_awc_shorts.py (14 passed). Synthetic inputs; no game data or GPU test. AI-assisted.
kacper-serewis
left a comment
There was a problem hiding this comment.
AI-assisted independent review. At 167859f all 14 tests passed on case-sensitive WSL. For case-distinct synthetic banks sharing a repeated stream ID, forcing either worker completion order yielded the same CSV and four Ogg files as the serial run. Every row referenced the expected bank, file, channel count and packet.
Kam471
left a comment
There was a problem hiding this comment.
Review at head 167859f7c (draft; Windows 11).
Commands:
python -I -m pytest tests/test_awc_shorts.py -q
git diff --check 3faac557b..HEAD
Results: 13 passed, 1 skipped, 6 subtests; diff --check clean.
The sort key becomes (bank.lower(), bank, stream): exact spelling breaks case-only ties deterministically, while repeated IDs within one bank keep the existing stable channel order. The doc note and the regression (serial vs reverse worker order byte-identical) match the code.
Verdict: approve.
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested
Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting; claimed in #8047. |
Claimed in the coordination issue: new shorts-catalog-order item.
What and why
On case-sensitive filesystems, bank names such as
Musicandmusiccan share a stream ID. Sorting only by lowercase bank name and stream ID madeshorts.csvdepend on worker completion order. Use exact bank spelling as the tie-breaker. Repeated IDs within one bank retain their channel order.No dependency on #2900. Its pre-existing conflict with the base is in per-bank export code, not the catalog sort.
Tested
Linux x86_64, CPython 3.12.13, synthetic inputs; no GPU or driver test. Before the fix, two real workers collected in reverse order produced a different CSV from the serial run. After the fix both files matched byte-for-byte.
python3.12 -I tests/test_awc_shorts.py: 14 passed.AI-assisted: yes (Codex).
Checklist