tooling: diagnose missing or ambiguous integrity manifests #236
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/239"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T18:56:46Z.
Change
When the integrity verifier finds zero or multiple top-level torrent files or layout XML files, it now exits with CLI usage status 2, names the expected pattern, and reports how many files matched. A directory whose name matches the pattern does not count. This came from running the verifier against an extracted package directory containing a layout but no torrent.
Verification
Commit
3a54f33onc04e65a, x64 Windows build 26200, MSVC 19.44.35230, Debug.The Python test passed. Both CTests passed with zero skips. Four CLI cases cover zero and two matches for each input. Each checks exit 2, the pattern and count on stderr, and that the verifier writes no report. The existing intake test runs the verifier with one valid manifest pair and checks the piece count.
Before the change, the new test failed both directly and under
ctest --preset dev --no-tests=error -R '^layout_chunk_summary$' -V. The no-torrent case returned 1 withValueError: not enough values to unpack (expected 1, got 0). Repeatingpython -B tools/verify_build.py <package-directory> --output out/local-layout-only.jsonon the original local directory after the change returned 2 withexpected exactly one *.torrent file in <package-directory>, found 0. No output report was created.Evidence and follow-up
The new test uses temporary directories and empty placeholder files. The failure happens during manifest selection. A matching manifest pair still enters the existing integrity verification path.
This contribution was AI-assisted.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T18:56:57Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
3a54f33ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.