Skip to content

feat(tools): inventory public release headers with hashes - #13301

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
StoneDC:b42/headers-manifest
Oct 30, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
StoneDC:b42/headers-manifest

Conversation

@StoneDC

@StoneDC StoneDC commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

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 cd85571261c2f0e358e784a867d4865832e92a8b is one independent commit on main 51c31ea17e9f66cb36fe9655ec31c81610bfcfc9. The current-main repository overlap checker against 51c31ea17e9f66cb36fe9655ec31c81610bfcfc9 reported 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 integration cedab5157a32822332671c90812c6780d05157e8.

Tested

Topic head: cd85571261c2f0e358e784a867d4865832e92a8b. Combined integration: cedab5157a32822332671c90812c6780d05157e8, based on main 51c31ea17e9f66cb36fe9655ec31c81610bfcfc9. 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_manifest passed 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

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 cd85571261c2f0e358e784a867d4865832e92a8b against fetched current main 58d5af7daa8087d2ffbdb50ae6e0db3cb6a88e48.
  • 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 13301

Results

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

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.

@github-actions

Copy link
Copy Markdown

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.

Pull request Shared files not compared
PR 674 CMakeLists.txt
PR 1835 CMakeLists.txt
PR 3786 CMakeLists.txt
PR 5021 CMakeLists.txt
PR 7642 CMakeLists.txt
PR 9539 CMakeLists.txt
PR 10897 CMakeLists.txt
PR 12862 CMakeLists.txt

@adriadam10 adriadam10 self-assigned this Oct 30, 2026
@adriadam10
adriadam10 merged commit 50843f4 into boykopovar:main Oct 30, 2026
13 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the manifest reuses public_headers and the packager's LICENSE rule, the new test pins exact destinations, sizes, SHA-256 and the failure cases, and is registered in ctest; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants