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

Merged
fin-github merged 1 commit from upstream-pr/934 into main 2026-12-02 10:40:14 +00:00
fin-github commented 2026-11-24 15:17:19 +00:00 (Migrated from github.com)

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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5474958213 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/934). Originally posted by [fin-github](https://github.com/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 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 (Migrated from github.com)

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7175424263 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/934#issuecomment-7175424263). Originally posted by [PierreEbele](https://github.com/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
DadaCap commented 2026-11-28 11:49:39 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7238808091 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/934#issuecomment-7238808091). Originally posted by [DadaCap](https://github.com/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.
aslan2142 commented 2026-12-01 11:52:53 +00:00 (Migrated from github.com)

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

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130710441 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/934#pullrequestreview-6130710441). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:52:53Z. **Review:** CHANGES_REQUESTED --- 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 (Migrated from github.com)

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7341568823 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/934#issuecomment-7341568823). Originally posted by [MoonEyes](https://github.com/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 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 reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!934
No description provided.