Repository navigation
feat(tools): inventory public release headers with hashes - #13301
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The exact-head manifest reuses the header packager’s discovery rules, reports deterministic destinations and content hashes, and its focused tests pass.
What I ran
- Reviewed head
cd85571261c2f0e358e784a867d4865832e92a8bagainst fetched currentmain58d5af7daa8087d2ffbdb50ae6e0db3cb6a88e48. - Merge preview was clean: tree
af009f7e8380243c673165e81a7fdb3a8f1e45c3. - Environment: Debian Linux, Python 3.11.2. The unit test ran in an isolated detached worktree at the PR head. I did not build or configure AnyPS5.
- Commands:
git fetch upstream main
gh api repos/boykopovar/AnyPS5/compare/main...cd85571261c2f0e358e784a867d4865832e92a8b --jq '{ahead_by,behind_by,status,files:[.files[].filename]}'
git merge-tree --write-tree 58d5af7daa8087d2ffbdb50ae6e0db3cb6a88e48 cd85571261c2f0e358e784a867d4865832e92a8b
git diff --check 58d5af7daa8087d2ffbdb50ae6e0db3cb6a88e48...cd85571261c2f0e358e784a867d4865832e92a8b
python3 tools/check_conventions.py --base 58d5af7daa8087d2ffbdb50ae6e0db3cb6a88e48 --head refs/remotes/upstream/pr-13301 --title 'feat(tools): inventory public release headers with hashes' --body /tmp/pr-13301-body.md
python3 -m unittest tools.tests.test_public_headers_manifest
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13301Results
| Check | Result |
|---|---|
| Current-main comparison | Three changed files; the branch is 63 commits behind main. The only change on main since the precheck snapshot touches NKWebKit files, outside this PR. |
| Current-main merge preview | Pass; clean tree af009f7e8380243c673165e81a7fdb3a8f1e45c3. |
| Diff whitespace check | Pass; no output. |
| Conventions and PR template | Pass; All conventions checks passed. |
| Focused Python tests | Pass; 2 tests. |
| Precheck | Syntax, unit tests, Python test registration, conventions, diff check, and live mergeability passed. Its test-quality heuristic could not run because tools/pr_test_quality.py is absent from the isolated PR snapshot. The precheck snapshot used the prior base 42d009f; I repeated current-base comparison, merge preview, whitespace, and conventions checks against 58d5af7. |
| Hosted checks | Eligibility, intake, and conventions pass. Labels and relinker/Windows jobs were pending; Linux product was skipped by workflow policy. |
Unedited focused-test output
..
----------------------------------------------------------------------
Ran 2 tests in 0.330s
OK
Findings
Blocking
None found in the reviewed head.
Non-blocking
The author reports an additional mutation control and a real-tree inventory run; I did not independently reproduce those. The manifest is documented as describing files read at execution time, not as an atomic snapshot or authenticity proof.
Sources
- Manifest tool at the reviewed commit
- Focused tests at the reviewed commit
- Header discovery implementation
Not verified
I did not configure/build CMake or run CTest; this review ran the Python unit suite directly. The hosted jobs still pending were not treated as passed.
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Checked the manifest reuses |
What
Adds public_headers_manifest.py to inventory the inputs of the public header release package without creating archives. It reports destination paths, byte sizes and SHA-256 hashes, including LICENSE, sorted by destination.
Implementation basis: Reuses package_headers.public_headers for recursive umbrella/include discovery and its confinement/external-include policy. A synthetic real directory tree checks recursive input membership, exact destination names, raw-byte sizes/hashes, missing dependencies, license failures and unchanged files/mtimes.
Known limits: This inventories files at read time, not an atomic filesystem snapshot. Hashes describe content, not publisher authenticity. It does not compile headers, prove their ABI, build libraries or certify a later archive. System headers are not packaged, following the existing packager.
Source/schema: tools/public_headers_manifest.py tools/package_headers.py
Exact topic head
cd85571261c2f0e358e784a867d4865832e92a8bis one independent commit on main51c31ea17e9f66cb36fe9655ec31c81610bfcfc9. The current-main repository overlap checker against51c31ea17e9f66cb36fe9655ec31c81610bfcfc9reported no confirmed overlap. It could not finish comparisons for these older PRs already conflicting with main: #674, #1835, #3786, #5021, #7642, #9539, #10897, #12862. Their shared-file diffs were reviewed separately. 7 scoped file changes projected onto main and then combined with this topic without a new conflict; 1 peer file changes already conflict with main and are not claimed automatically mergeable. They do not provide this command or test matrix. Registration uses a separate target/name and there is no landing-order dependency. Changes to shared registration before landing need a refreshed merge/test check. Depends on: none. The twenty current topic heads are also merged into tested integrationcedab5157a32822332671c90812c6780d05157e8.Tested
Topic head:
cd85571261c2f0e358e784a867d4865832e92a8b. Combined integration:cedab5157a32822332671c90812c6780d05157e8, based on main51c31ea17e9f66cb36fe9655ec31c81610bfcfc9. Ubuntu/WSL GCC 15.2, CMake 4.2.3, Python 3.14.4; Windows MinGW GCC 15.2, CMake 4.3.1, Python 3.14.3.python tools/tests/test_public_headers_manifest.py: 2 tests passed on each platform, no skips. A mutation in the actual new tool was rejected by the fixture. The command also inventoried the real repository header tree successfully.Registered CTest
tools_headers_manifestpassed on Linux and Windows as part of the filtered twenty-topic run:ctest --test-dir <build> -R <20-topic-pattern> -j 8 -V --output-on-failure, 20/20 passed on each platform, zero skips.cmake --build <linux-full-build> --parallel 8: complete default Linux product build passed. Windows used the full configuration and built the sixteen affected libc test targets plus relinker with--parallel 8; a complete default Windows build is not claimed. Conventions, whitespace, script registration and the public-header declaration/umbrella audit passed. No PS5, title or GPU validation run is claimed. macOS, WASM execution and hosted full-build CI are not reported as passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)