feat(tools): report progress snapshot deltas as JSON #12881
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12881"
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 boykopovar/AnyPS5. Originally posted by StoneDC on 2026-10-29T13:26:50Z.
What
Adds read-only
progress_diff.py BASE HEADJSON reports of recorded percentage-point differences and per-group additions/removals in done/todo/inert symbol sets, including added and removed groups.Implementation basis: Uses progress.validate_snapshot() and the existing progress.json group schema. Independent expected fixtures cover a todo-to-done move, a removed group, Unicode names, unchanged shader percentages, BOM input, invalid JSON and duplicate group names. Existing Markdown comparison and progress.py remain unchanged.
Known limits: Reports supplied snapshot sets and recorded percentages; it does not remeasure sources, infer renames, validate a firmware ABI, or turn source coverage into game compatibility.
Existing implementation/schema: tools/progress.py
Exact topic head
7e919d8e017f6a59285ceb1892332c5e887aebe1is one independent commit on main5454cd2e455994d992aca39335ce60507eeda1eb. The repository overlap checker against157b02c4f1803e9d2cd757677b9a805961203fc4reported no confirmed overlap. It could not complete shared-file comparisons for older PRs already conflicting with main: #674, #1835, #3786, #5021, #9508, #9539. Scoped file diffs were reviewed separately. 5 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 feature or test matrix. The new test has its own source and registration, with no required landing order. If shared registration code changes before landing, this branch needs refreshed merge and affected test checks. Depends on: none. The 20 independent topics also merged together into tested integration81a0f73e5972352ba2b50ce53077921c51112273on the same main.Tested
Tested topic head:
7e919d8e017f6a59285ceb1892332c5e887aebe1. Final combined integration:81a0f73e5972352ba2b50ce53077921c51112273, main5454cd2e455994d992aca39335ce60507eeda1eb. 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_progress_diff_json.py: 2 tests passed on each platform, no skips. The focused registered CTesttools_progress_diff_jsonpassed on both platforms. A mutation in the actual tool code was rejected by this fixture.cmake --build <full-linux-build> --parallel 8: full Linux default product build passed, including a final build at the integration above. Windows used the full configuration and built the affected libc/test targets and relinker with--parallel 8; a complete default Windows build is not claimed.ctest --test-dir <build> -R "^(tools_sanitizer_json|tools_annotation_symbols_json|tools_compile_plan|tools_catalog_json|tools_nid_offline|tools_audit_strict_partial|tools_intervals_complete|tools_pad_preview|tools_release_notes_check|tools_progress_diff_json|guest_memmove_snapshot|guest_memcpy_protected|guest_memcmp_protected|guest_span_protected|guest_substring_protected|guest_tokenizer_protected|guest_strncpy_protected|guest_strncat_protected|guest_wmemmove_snapshot|guest_wide_length_protected)$" -j 8 -V --output-on-failure: 20/20 passed on each platform, zero skips. Conventions, whitespace, script registration and the public-header audit passed. No PS5/title execution or GPU validation protocol was run; macOS 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)Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-10-29T14:41:03Z.
Review: APPROVED
Reviewed exact head
7e919d8e01against current mainbb04a4f1ea. The current-main merge-tree and git diff --check are clean. The focused JSON suite passes 2/2 on Windows Python 3.12 and WSL Python 3.12.3. I also probed the numeric machine-readable boundary directly: baseline/candidate snapshots containing NaN, Infinity, or -Infinity percentages are rejected by progress.validate_snapshot before subtraction/serialization; each exits 2 with empty stdout and no traceback. The fixture pins the advertised percentage-point delta, todo-to-done symbol move, and added/removed group semantics while preserving input bytes. Hosted eligibility, conventions, intake, labels, Ubuntu/Windows relinker, Windows and ASan are green; only generic macOS relinker jobs are queued. I found no blocking issue in this read-only progress-diff tool.