[PR #2219] awc_shorts: refuse catalog paths that collide with inputs #2222

Open
opened 2026-11-26 21:20:28 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2219
Author: @whoalin1
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: awc-shorts-catalog-no-clobber


📝 Commits (1)

  • 13c1520 awc_shorts: refuse catalog paths that collide with inputs

📊 Changes

2 files changed (+35 additions, -1 deletions)

View changed files

📝 tests/test_awc_shorts.py (+26 -0)
📝 tools/awc_shorts.py (+9 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2219 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `awc-shorts-catalog-no-clobber` --- ### 📝 Commits (1) - [`13c1520`](https://github.com/ubiquitarianism/leonida/commit/13c1520b49b2027a5888ce10fa557a4232f347fd) awc_shorts: refuse catalog paths that collide with inputs ### 📊 Changes **2 files changed** (+35 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_awc_shorts.py` (+26 -0) 📝 `tools/awc_shorts.py` (+9 -1) </details> ### 📄 Description ## 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#2222
No description provided.