awc_shorts: refuse a catalog destination that aliases an input bank (DRAFT-196) #934

Merged
leonida/mandy
fin-github merged 1 commit from draft/196 into main 2026-12-02 10:40:14 +00:00

Pull request successfully merged and closed

fin-github commented 2026-11-24 15:17:19 +00:00

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 and git cherry-pick -x recording 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.py on 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.

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 and `git cherry-pick -x` recording 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.py` on 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.
PierreEbele commented 2026-11-25 21:41:58 +00:00

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

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
DadaCap commented 2026-11-28 11:49:39 +00:00

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.

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.
aslan2142 reviewed 2026-12-01 11:52:53 +00:00
aslan2142 left a comment
No description provided.
Reviewed against current `main`: refusing a catalog destination that aliases an input bank in `tools/awc_shorts.py` looks good, but this branch currently conflicts with `main` in `tools/awc_shorts.py`. Please rebase onto current `main` so CI runs cleanly. *(AI-assisted review.)*
MoonEyes commented 2026-12-02 09:50:28 +00:00

For information: this pull request is carried in #3078, which merges your head (your commit is kept) into current main, resolves the conflict in tests/test_awc_shorts.py by keeping both sides, and moves both checks before os.makedirs as 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)

For information: this pull request is carried in #3078, which merges your head (your commit is kept) into current `main`, resolves the conflict in `tests/test_awc_shorts.py` by keeping both sides, and moves both checks before `os.makedirs` as 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)
Sign in to join this conversation.
No description provided.