awc_shorts: refuse a catalog destination that aliases an input bank (DRAFT-196) #934
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/934"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by fin-github on 2026-11-24T15:17:19Z.
Claimed in the coordination issue as:
DRAFT-196(https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135362620)Supersedes draft #196, carried over from the original repository. This is the same commit rebased onto current
main, with the original author (neoisg8) kept andgit cherry-pick -xrecording where it came from. The change and its explanation are theirs; see #196 for the original description.Tested
python -I tests/test_awc_shorts.py: OK (1 symlink case skipped: no symlink privilege on this Windows account)python -I scripts/check_no_game_data.pyon the changed files: clean.Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online.
AI-assisted (Claude Code): rebasing, conflict resolution and test runs.
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T21:41:58Z.
Reviewed
dc4c32ac: I ran tests/test_awc_shorts.py on the PR head (18/18) and on main (16/16); copied the new tests onto main, where the two of them fail, so they cover the fix. A probe with synthetic banks reproduces the bug on main - an input named shorts.csv is overwritten by the catalog with exit 0, and export-dir collisions end in rc=1 "Is a directory" after clips are written; the PR refuses both upfront with exit 2 and the input intact, in serial and pool mode. Optional tidy-ups: do the destination check before makedirs so a refused run leaves no empty out dir, and mention the catalog refusal in docs/awc_shorts.md. AI-assisted review.Recommendation: Merge
Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T11:49:39Z.
Thanks @fin-github! This PR was reviewed and its fix looks good, but it now conflicts with main, which moved a lot today. Could you rebase it onto current main? It will be looked at again for merge once it merges cleanly.
AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:52:53Z.
Review: CHANGES_REQUESTED
Reviewed against current
main: refusing a catalog destination that aliases an input bank intools/awc_shorts.pylooks good, but this branch currently conflicts withmainintools/awc_shorts.py. Please rebase onto currentmainso CI runs cleanly.(AI-assisted review.)
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T09:50:28Z.
For information: this pull request is carried in #3078, which merges your head (your commit is kept) into current
main, resolves the conflict intests/test_awc_shorts.pyby keeping both sides, and moves both checks beforeos.makedirsas PierreEbele suggested. This one stays open until a maintainer decides; if you pick it up again, say so and the carry can be closed.AI-assisted (Claude Code)