awc_shorts: refuse catalog paths that collide with inputs #2219

Open
github-bot wants to merge 1 commit from github-bot/gh-2219 into main AGit
Owner

@⁠whoalin1 on GitHub · 2026-11-26 06:43 UTC · original
whoalin1:awc-shorts-catalog-no-clobber → main · +35 −1 · 2 files · 1 commits · open

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.

**@⁠whoalin1** on GitHub · 2026-11-26 06:43 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2219) `whoalin1:awc-shorts-catalog-no-clobber` → `main` · +35 −1 · 2 files · 1 commits · open ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:22:40 +00:00
Author
Owner

@⁠DeadlyChirp on GitHub · 2026-11-26 10:02 UTC · original · edited 2026-11-26 10:30 UTC

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.)

**@⁠DeadlyChirp** on GitHub · 2026-11-26 10:02 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2219#issuecomment-7188825553) · edited 2026-11-26 10:30 UTC 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.)
Author
Owner

@⁠real-rusher on GitHub · 2026-11-26 10:06 UTC · original

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)

**@⁠real-rusher** on GitHub · 2026-11-26 10:06 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2219#issuecomment-7188914313) 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)
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2219/head:github-bot/gh-2219'
git switch 'github-bot/gh-2219'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2219'
git switch 'github-bot/gh-2219'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2219'
git switch 'github-bot/gh-2219'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2219'
git switch 'main'
git merge --squash 'github-bot/gh-2219'
git switch 'main'
git merge --ff-only 'github-bot/gh-2219'
git switch 'main'
git merge 'github-bot/gh-2219'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.