Repository navigation
feat(tools): check configure seeds without writing - #13299
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The seed checker compares an existing unfiltered seed with deterministic CMake-cache serialization and leaves both inputs untouched.
What I ran
- Reviewed head
0e20f51dc74a8ab2d26179a96bb79d3c92519114against currentmain58d5af7daa8087d2ffbdb50ae6e0db3cb6a88e48. - Merge preview was clean: tree
77b18f589ed4645495122f91afe01005283c5df3. - Environment: Debian Linux, Python 3.11.2. The focused unit test ran in an isolated detached worktree at the PR head. I did not build or configure AnyPS5.
- Commands:
git merge-tree --write-tree 58d5af7daa8087d2ffbdb50ae6e0db3cb6a88e48 0e20f51dc74a8ab2d26179a96bb79d3c92519114
git diff --check 58d5af7daa8087d2ffbdb50ae6e0db3cb6a88e48...0e20f51dc74a8ab2d26179a96bb79d3c92519114
python3 tools/check_conventions.py --base 58d5af7daa8087d2ffbdb50ae6e0db3cb6a88e48 --head refs/remotes/upstream/pr-13299 --title 'feat(tools): check configure seeds without writing' --body /tmp/pr-13299-body.md
python3 -m unittest tools.tests.test_check_configure_seed
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13299Results
| Check | Result |
|---|---|
| Current-main merge preview | Pass; clean tree 77b18f589ed4645495122f91afe01005283c5df3. |
| 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. The test-quality heuristic could not run because tools/pr_test_quality.py is absent from the isolated PR snapshot. Its base snapshot was 42d009f; current main is 58d5af7, so I repeated current-base merge, diff, and conventions checks. |
| Hosted checks | Conventions, eligibility, and intake pass. Labels and platform jobs were pending; Linux product was skipped by workflow policy. |
Unedited focused-test output
..
----------------------------------------------------------------------
Ran 2 tests in 0.212s
OK
Findings
Blocking
None found in the reviewed head.
Non-blocking
The author reports an additional mutation control and a real-cache check; I did not independently reproduce those. The checker only validates the default unfiltered seed, as documented.
Sources
- Checker at the reviewed commit
- Focused tests at the reviewed commit
- Existing configure-seed implementation
Not verified
I did not configure/build CMake or run CTest; I ran the Python unit test directly. Hosted platform 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 tool against |
What
Adds a read-only command that checks an unfiltered configure seed against the check results in its source CMakeCache.txt. Exact bytes match returns 0, missing/stale seed returns 1, and invalid/unreadable input returns 2. It does not create directories or rewrite stale files.
Implementation basis: Uses the existing configure_seed.checks and quote helpers and the same sorted default serialization. The fixture fixes the expected seed bytes independently, checks retained mtimes/content, stale and absent destinations, malformed UTF-8 and an empty check set. #12770 previews seed text; this command checks an existing seed and does not require that PR.
Known limits: Only the default unfiltered seed is checked. Seeds generated with include/exclude filters or manually reformatted text can report stale. A match does not establish that the cached configure results are appropriate for another compiler, host or ABI.
Source/schema: tools/check_configure_seed.py tools/configure_seed.py
Exact topic head
0e20f51dc74a8ab2d26179a96bb79d3c92519114is 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:
0e20f51dc74a8ab2d26179a96bb79d3c92519114. 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_check_configure_seed.py: 2 tests passed on each platform, no skips. A mutation in the actual new tool was rejected by the fixture. The command also checked a seed generated from the real full-build CMakeCache.txt without changing its mtime.Registered CTest
tools_seed_checkpassed 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)