awc_shorts: refuse catalog paths that collide with inputs #2219

Closed
leonida/mandy
whoalin1 wants to merge 0 commits from awc-shorts-catalog-no-clobber into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

whoalin1 commented 2026-11-26 06:43:25 +00:00

Summary

  • refuse to write shorts.csv when that catalog path is also an input bank
  • refuse a bank export directory that collides with the catalog path
  • check both before creating or overwriting any output, and add regressions that the input bytes remain intact

Item: AWC-SHORTS-CATALOG-NO-CLOBBER

This carries forward the still-uncarried fix in old-pr/9927, originally written by neoisg8, reapplied and verified on current main.

Tests

Under the local machine coordination lock:

  • control: both new collision regressions fail on the unpatched tool because it exits 0
  • fixed: python -I tests/test_awc_shorts.py — 18 tests, OK (1 existing platform skip)
  • python -m compileall -q tools/awc_shorts.py tests/test_awc_shorts.py — pass
  • git diff --cached --check — pass

No game files or GPU.

AI-assisted with Devin.

## Summary - refuse to write `shorts.csv` when that catalog path is also an input bank - refuse a bank export directory that collides with the catalog path - check both before creating or overwriting any output, and add regressions that the input bytes remain intact Item: AWC-SHORTS-CATALOG-NO-CLOBBER This carries forward the still-uncarried fix in old-pr/9927, originally written by neoisg8, reapplied and verified on current main. ## Tests Under the local machine coordination lock: - control: both new collision regressions fail on the unpatched tool because it exits 0 - fixed: `python -I tests/test_awc_shorts.py` — 18 tests, OK (1 existing platform skip) - `python -m compileall -q tools/awc_shorts.py tests/test_awc_shorts.py` — pass - `git diff --cached --check` — pass No game files or GPU. AI-assisted with Devin.
DeadlyChirp commented 2026-11-26 10:02:22 +00:00

Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.

  • tests/test_awc_shorts.py: 17 passed, 1 skipped, 6 subtests passed. The skip is "input volume does not support case-distinct files", expected on NTFS.

(AI-assisted test run; output checked by hand.)

Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main. - `tests/test_awc_shorts.py`: 17 passed, 1 skipped, 6 subtests passed. The skip is "input volume does not support case-distinct files", expected on NTFS. (AI-assisted test run; output checked by hand.)
real-rusher commented 2026-11-26 10:06:21 +00:00

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly. With this PR, python -I tests/test_awc_shorts.py: 18 tests OK. The PR's test file against main's tools/awc_shorts.py: 2 failures, so the new tests fail on main and pass with the fix. compileall clean.

AI-assisted: yes (Claude Code)

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly. With this PR, python -I tests/test_awc_shorts.py: 18 tests OK. The PR's test file against main's tools/awc_shorts.py: 2 failures, so the new tests fail on main and pass with the fix. compileall clean. AI-assisted: yes (Claude Code)
DadaCap commented 2026-11-28 07:38:30 +00:00

Thanks for this! Closing it as a duplicate of #934 after a maintainer check that compared the two diffs commit by commit, not just the titles.

This pull request is an exact copy of #934 (the same diff, line for line), which is older. Keeping #934 so the fix lands once.

If you think something here is not covered by #934, say so and we'll reopen it.

AI-assisted (Claude Code), posted for DadaCap (maintainer).

Thanks for this! Closing it as a duplicate of #934 after a maintainer check that compared the two diffs commit by commit, not just the titles. This pull request is an exact copy of #934 (the same diff, line for line), which is older. Keeping #934 so the fix lands once. If you think something here is not covered by #934, say so and we'll reopen it. _AI-assisted (Claude Code), posted for DadaCap (maintainer)._
Sign in to join this conversation.
No description provided.