feat(progress): add GuestFault_nid_no_patch and count it as implemented #28739
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28739"
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 LeandroLP23 on 2026-12-03T08:41:26Z.
What
Adds
GuestFault_nid_no_patch(name), a second noreturn helper next toNotImplemented_nid_no_patchinlibc/include/General.hpp, as decided on #23391. It is for an input on which the console module itself faults or asserts: there is no behaviour left to implement there, but the host must throw rather than crash.std::runtime_errorlike the stub helper. It does not count inNotImplementedCalls_nid_no_patch()and is not reported as a missing function.tools/progress.pytreats a call to it like a plainthrow, so it does not make a definition pending. A definition that still callsNotImplemented_nid_no_patchstays pending, and a local wrapper around the new helper doesn't make its callers pending. Three tests intools/tests/test_progress.pycover these cases, and the page text anddocs/dev/PROGRESS.mdsay the same.CONTRIBUTING.mdandAGENTS.mdkeepNotImplemented_nid_no_patchfor unknown or unimplemented behaviour. They require every use of the new helper to name, in the pull request or the library's debt entry, the input the console module faults on.No call sites move in this PR. Library moves follow as separate PRs, each reviewed on its own sites. #23881 (libcairo matrix pointers) carries a copy of this helper and can drop it once this merges.
The rule keeps to the wording on #23391, the input the console itself would crash on. #23849 also covered upstream undefined behaviour. I left that clause out, since the decision on the issue does not include it.
Carried forward from #23849 by monika-runtime (closed by its author, not after a review), who is credited as co-author.
Tested
python -m unittest tools.tests.test_progress, 118 tests OK, the four new ones included (one added after review).python tools/check_conventions.py: all checks passed.libctarget on this branch.python tools/pr_overlap.py --branch: the only overlap is #23881, which contains this helper.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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T08:43:40Z.
Review: COMMENTED
All 117 progress tests passed on this commit, including a direct guest-fault call, a wrapper, and a mixed path that still calls NotImplemented. I also compiled the patched libc source on Linux and exercised both the macro and the callable symbol. Both threw a runtime_error, the macro included the source location, and the NotImplemented counter stayed unchanged.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-03T08:49:39Z.
Review: COMMENTED
Actionable comments
tools/progress.py, lines869· 🎯 Functional Correctness · ⚡ Quick winGuestFault_nid_no_patch, the call does not matchBARE_THROW. The comparison therefore omits its behaviourally empty warning, although a direct throw receives it. Recognize this call as a throw in the inert-body classification.4f690cc4-239b-431f-b9a4-7c6ff3cfdd17Reviewing files that changed from the base of the PR and between
b97867d3ceandfe80e36532.AGENTS.mdCONTRIBUTING.mdcore/libs/prx/libc/include/General.hppcore/libs/prx/libc/src/General.cppdocs/dev/PROGRESS.mdtools/progress.pytools/tests/test_progress.pyIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T08:56:29Z.
Review: COMMENTED
All 118
test_progress.pycases passed onf55bd863a1cb. The new case verifies that an unconditionalGuestFault_nid_no_patchbody stays counted as implemented and is identified as inert. It also distinguishes a guarded fault followed by a real result. This retest covered the Python classifier change in the latest commit.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T09:04:51Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
f55bd863a1cb96795e0ed641bdc571a076759137from the prepared diff and full changed-file texts. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Runtime behavior on a PS5 console was not verified. The author-reported Python tests, convention check, and libc build were not independently run. All files listed under
reviewedinfiles.jsonwere read;files.jsonlists no excluded files.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T14:11:08Z.
Review: APPROVED
I read the diff at
f55bd863a1. Windows 11, Python 3.13.7, merged intomainat6c6b29320fetogether with other open PRs (so not an isolated tree).tools.tests.test_progress: 119 tests pass. The C++ part builds with GCC 15.2 on Windows and GCC 13.3 on Linux as part oflibc.tools/progress.pytaken out):test_guest_fault_only_bodies_are_marked_inertfails.Not checked: a run of the new helper, which nothing calls yet.
AI-assisted: yes (Claude Code)