mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1380] Review/1360 reserve manifest paths #1412
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1412
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1380
Author: @xel1uz
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:review/1360-reserve-manifest-paths📝 Commits (2)
8270eaerootsig_census: guard --json inputs with same_report_path and catch write OSError (ROOTSIG-CENSUS-JSON-GUARD)6c85fbaReserve root and disassembly manifests before writing a census report📊 Changes
2 files changed (+143 additions, -9 deletions)
View changed files
📝
tests/test_rootsig_census.py(+92 -0)📝
tools/rootsig_census.py(+51 -9)📄 Description
Claimed in the coordination issue as: ROOTSIG-CENSUS-JSON-GUARD (original claim by @JesusACD).
Depends on: #1360. This branch includes @JesusACD's output-path checks and adds a fix for a manifest that does not exist yet.
What and why
With an empty
root/directory, runningpython -I tools/rootsig_census.py root --json root/index.jsontwice gave different results. The first run exited 0 and wrote a census report to the manifest path. The identical second run exited 2 becauseindex.jsonnow existed. The same sequence occurred with--disasm disasm --json disasm/index.json.This change reserves both manifest paths before the first write. The command now exits 2 and leaves the path empty in both cases. The reproduction on #1360 records the original behavior.
Tested
8270eaea, both subcases of the new regression test failed: the command returned 0 and created the report.6c85fbae,python -I tests/test_rootsig_census.pypassed all 30 tests on Windows. The new test checks both the exit code and that neither manifest file was created.git diff --checkandscripts/check_no_game_data.pypassed for the changed files.GPUs tested: n/a (filesystem and CLI behavior; synthetic directories).
AI-assisted: yes, OpenAI Codex.
Checklist
mainat28a32e19.--jsonoutput.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.