awc_shorts: refuse a catalog destination that aliases an input bank (DRAFT-196) #934
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!934
Loading…
Reference in a new issue
No description provided.
Delete branch "draft/196"
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?
Pull request successfully merged and closed
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.
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
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.
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)