Repository navigation
Conversation
|
Code read of AI-assisted review (Claude Code). |
|
Thanks @tupacfan04 — |
Kam471
left a comment
There was a problem hiding this comment.
Verified on the PR head: python -I tests/test_awc_shorts.py -> 14/14 pass. On origin/main 4 tests fail: the two new cases plus both truncated-bank variants, and the bad/ directory is left behind. Scan-only with an injected PermissionError exits 1 with one actionable line, creates no output directory and preserves the previous shorts.csv. Both heads merge cleanly into latest main.
Policy note: one unreadable subdirectory now aborts the whole scan; that is documented and tested. Synthetic byte data only; no game data or absolute paths. Approve.
|
Tested The base fails four synthetic export checks. The head avoids empty report directories and passes the CLI cases through both worker modes. AI-assisted, synthetic inputs only. |
|
Ran this on
AI-assisted (Claude Code). |
|
Repaired the upstream conflict in f0ab0bc, now pushed. The merge preserves current selected-channel/export_stems naming for duplicate stream IDs, destination collision checks and the worker cap, together with this PR's lazy output folders and scan-error handling. Negative control against main failed exactly four relevant cases; AWC shorts16 (15passed/1filesystemskip), Opus56, poolworkers11 and CSV2 checks pass on Windows CPython3.12.10. Compilation, no-game-data and scoped diff checks pass. Two repository-wide guards have unrelated existing failures, documented in the body; those sources are unchanged by this PR. Latest main86d1c862 does not change the AWC source/test files and git merge-tree is clean. AI-assisted; synthetic inputs only, no GPU or game files. |
|
Audited and verified current PR head Validation on
AI-assisted (Antigravity). |
…6647 and keep lazy AWC dir creation
|
Merged current
Verification (Windows 11, portable Python 3.12.10,
AI-assisted (Antigravity). |
|
The case-sensitive filesystem check that skipped on NTFS passes on native CachyOS x86-64 (CPython 3.14.10). With separate synthetic I ran AI-assisted. CPU only; GPU not used. Synthetic fixtures only. |
|
Tested b3e5183 on Linux (WSL), Python 3.13: pass. Ran: One note for the maintainer, not a defect: since the merge of main at 4078faa, the scan-error half of the description is already on AI-assisted review (Claude Code). |
isfcrctfs
left a comment
There was a problem hiding this comment.
Read b3e51838 on Linux (CPython 3.12.16): the change is correct.
os.makedirs(od, exist_ok=True) moving into the selected-channel loop means a bank that contributes no clips creates no directory, and tests/test_awc_shorts.py is 17/17 here (no skips). I also checked the tests can fail: with only the makedirs line reverted to base 4078faaa, test_non_matching_bank_does_not_create_empty_folder and test_truncated_bank_skipped_serial fail on the added listdir assertion. test_unreadable_subdirectory_fails_and_preserves_catalog passes on the base as well, as expected since #6664 already landed onerror=scan_failed there, so it is a regression guard rather than part of the remaining fix.
No in-repo consumer assumes the bank folder exists (export_bank is only called by this tool and its tests), and docs/awc_shorts.md says nothing about empty folders, so no doc change is needed.
AI-assisted.
|
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. |
Coordination claim: #2716 (comment)
Banks with no selected clips, or malformed banks skipped by the exporter, currently leave empty per-bank directories. An unreadable source subdirectory is also silently omitted by os.walk, allowing shorts.csv to be replaced by an incomplete catalog. Create the bank directory immediately before its first selected export and propagate directory scan errors before touching the catalog.
Updated against main 6f58bd2. The export-loop conflict is resolved while retaining main's selected-channel collection and export_stems naming for repeated stream IDs, destination-folder collision checks and process-worker cap. Runtime filesystem failures continue to exit 1, matching unreadable-bank errors; CLI argument/path checks exit 2.
Validation on Windows 11, portable CPython 3.12.10, CPU only:
Repository-wide guard limitations, also present in the pinned main: test_text_write_line_endings.py fails on missing newline arguments in tools/leonida_tui.py and tools/wave_diff.py; test_tool_stdout_encoding.py reports eight existing entry points without stdout replacement handling. Those guard tests and all reported sources are byte-identical to main; this PR changes only awc_shorts.py and its test file.
Synthetic AWC fixtures only; no game files, GPU or driver validation. AI-assisted with Codex.