fix(tools): preserve progress history cache inputs #26736
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/26736"
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 cookie42073-cmd on 2026-11-24T18:21:57Z.
What
Reject nonregular progress history cache files and accept both supported Git object ID lengths when reusing cached measurements.
Tested
The 51-test progress history suite completed on Linux Python 3.12 and 3.14 and Windows Python 3.13. Linux passed 50 and Windows passed 49. The remaining cases were platform or symlink skips. The project overlap scan checked 2,469 open pull requests and reported no unresolved overlap for these files. Conventions and whitespace checks 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 kripotker on 2026-11-24T19:08:35Z.
Review: APPROVED
Review: fix(tools): preserve progress history cache inputs
Approve.
What I checked
load_cacherefuses a cache path thatstat()s as anything but a regular file before reading it. A missing cache still returns{}.save_cacherefuses to replace a non-regular target. It now reuses thestatresult it already has for the POSIXchmod, instead of the earlierexists()+stat()pair.statis already imported (tools/progress_history.py:7).git merge-treeof the two heads merges cleanly.What I ran
Windows 11, Python 3.14, PR head
76855003d8:main'sprogress_history.py, both new tests fail (the SHA-256 reuse and the non-regular cache), so they cover the change.check_conventions.py:All conventions checks passed.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T17:11:56Z.
Review: COMMENTED
Reviewed — no blocking findings
The cache validation and Git object ID handling are supported by the changed code and tests; I found no verified blocking defect.
What I ran
Reviewed head
76855003d850bdc90a6b6a506b22299430b09a04usingrepo_read.pyto inspect the prepared diff and changed code. No test commands were run.Results
files/contents were exposed by the readerFindings
Blocking
None.
Non-blocking
None.
Not verified
The author reports 51 suite cases on Linux Python 3.12 and 3.14 and Windows Python 3.13; those runs were not independently verified. I read
tools/progress_history.pylines 125–220 andtools/tests/test_progress_history.pylines 230–275. The review bundle’s preparedfiles/contents and any excluded-file list were not accessible through the reader, so full-file review was not verified.To get this to a good state
Nothing is required.
Pull request closed