feat(progress): add GuestFault_nid_no_patch and count it as implemented #23849

Closed
monika-runtime wants to merge 1 commit from upstream-pr/23849 into main
monika-runtime commented 2026-11-19 19:16:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by monika-runtime on 2026-11-19T19:16:42Z.


What

Adds GuestFault_nid_no_patch next to NotImplemented_nid_no_patch in libc/include/General.hpp, with the same At_ file/line variant and macro. It throws for an input on which the console module faults or asserts, or for which upstream behaviour is undefined, so that such an export is not counted as unfinished forever. It does not increment NotImplementedCalls_nid_no_patch and does not report the function as missing, so the runtime report and the overlay keep naming only real gaps.

tools/progress.py treats a call to the new helper as a plain throw: a definition whose only remaining throw is a GuestFault_nid_no_patch call counts as implemented. The counting rules in docs/dev/PROGRESS.md and the progress page say so, and tools/tests/test_progress.py has regressions for the helper alone, for a definition that still calls NotImplemented_nid_no_patch, and for a local helper wrapper.

CONTRIBUTING.md and AGENTS.md state when the new helper applies and that every use names its reason in the pull request or the library's technical debt.

No call sites move in this pull request. Library pull requests follow one at a time, each justifying its own sites; this is part of #23391, which stays open for them.

Tested

Linux x86-64, GCC 16.2.1, relinker-only Release build:

  • python3 -I tools/tests/test_progress.py: 81 tests, OK.
  • python3 -I tools/tests/test_progress_wrappers.py: 13 tests, OK.
  • python3 -I tools/progress.py --module libharfbuzz --json: libharfbuzz 30 of 37 before and after, since no call site moved.
  • ctest --test-dir build-relinker -R '^(progress|tools_progress|progress_history)': 15 tests passed.
  • cmake --build build --target libc: compiles and links libc.prx with the new helper.
  • A host program linked against that libc.prx calls GuestFault_nid_no_patch: it throws sceExample called with an input the console does not define at <file>:<line>, and NotImplementedCalls_nid_no_patch() stays 0.
  • python3 tools/check_conventions.py --base upstream/main: all checks 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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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 (#23391 stays open for the per-library migrations)
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Hermes Agent)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5401360469 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23849). Originally posted by [monika-runtime](https://github.com/monika-runtime) on 2026-11-19T19:16:42Z. --- ### What Adds `GuestFault_nid_no_patch` next to `NotImplemented_nid_no_patch` in `libc/include/General.hpp`, with the same `At_` file/line variant and macro. It throws for an input on which the console module faults or asserts, or for which upstream behaviour is undefined, so that such an export is not counted as unfinished forever. It does not increment `NotImplementedCalls_nid_no_patch` and does not report the function as missing, so the runtime report and the overlay keep naming only real gaps. `tools/progress.py` treats a call to the new helper as a plain throw: a definition whose only remaining throw is a `GuestFault_nid_no_patch` call counts as implemented. The counting rules in `docs/dev/PROGRESS.md` and the progress page say so, and `tools/tests/test_progress.py` has regressions for the helper alone, for a definition that still calls `NotImplemented_nid_no_patch`, and for a local helper wrapper. `CONTRIBUTING.md` and `AGENTS.md` state when the new helper applies and that every use names its reason in the pull request or the library's technical debt. No call sites move in this pull request. Library pull requests follow one at a time, each justifying its own sites; this is part of #23391, which stays open for them. ### Tested Linux x86-64, GCC 16.2.1, relinker-only Release build: - `python3 -I tools/tests/test_progress.py`: 81 tests, OK. - `python3 -I tools/tests/test_progress_wrappers.py`: 13 tests, OK. - `python3 -I tools/progress.py --module libharfbuzz --json`: libharfbuzz 30 of 37 before and after, since no call site moved. - `ctest --test-dir build-relinker -R '^(progress|tools_progress|progress_history)'`: 15 tests passed. - `cmake --build build --target libc`: compiles and links `libc.prx` with the new helper. - A host program linked against that `libc.prx` calls `GuestFault_nid_no_patch`: it throws `sceExample called with an input the console does not define at <file>:<line>`, and `NotImplementedCalls_nid_no_patch()` stays 0. - `python3 tools/check_conventions.py --base upstream/main`: all checks passed. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none (`#23391` stays open for the per-library migrations) - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Hermes Agent)
MarcZX10 commented 2026-11-20 12:26:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T12:26:09Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the behavior and progress-counting updates are supported by the inspected code and regression cases.

What I ran

Inspected head bd05ce5c336c17b24abf6c20565e090c51ec53bf using repo_read.py for the prepared description, commit list, manifest and diff, all changed files, and focused progress-scanner source context. No commands or tests were run in this review; test results below are author-reported.

Results

Check Result Note
Source and diff review passed All seven changed files read
Progress tests not run Reported by author; not independently verified
Build and conventions not run Reported by author; not independently verified

Findings

Blocking

None.

Non-blocking

None.

Not verified

No tests, build, runtime checks, or convention checks were run independently. The author reports successful progress tests, build, runtime helper check, and convention checks in the PR description. No files were excluded from the prepared review bundle; all seven files listed as reviewed in the manifest were read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5992619714 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23849#pullrequestreview-5992619714). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T12:26:09Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the behavior and progress-counting updates are supported by the inspected code and regression cases. ## What I ran Inspected head `bd05ce5c336c17b24abf6c20565e090c51ec53bf` using `repo_read.py` for the prepared description, commit list, manifest and diff, all changed files, and focused progress-scanner source context. No commands or tests were run in this review; test results below are author-reported. ## Results | Check | Result | Note | |---|---|---| | Source and diff review | passed | All seven changed files read | | Progress tests | not run | Reported by author; not independently verified | | Build and conventions | not run | Reported by author; not independently verified | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No tests, build, runtime checks, or convention checks were run independently. The author reports successful progress tests, build, runtime helper check, and convention checks in the PR description. No files were excluded from the prepared review bundle; all seven files listed as reviewed in the manifest were read. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-22 20:11:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T20:11:51Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the author-reported checks support its stated behavior, but I did not run them.

What I ran

Read the prepared diff and all seven changed files at head 780d8ccfcbf040583a567868b2a0b2f8450f487c using repo_read.py. No commands or tests were run. All changed files were included and read: AGENTS.md, CONTRIBUTING.md, core/libs/prx/libc/include/General.hpp, core/libs/prx/libc/src/General.cpp, docs/dev/PROGRESS.md, tools/progress.py, and tools/tests/test_progress.py.

Results

Check Result Note
Diff and changed code review passed All seven changed files read
Author-reported tests and build not run Reported in the PR description
Local tests or build not run No commands run

Findings

Blocking

None.

Non-blocking

None.

Not verified

The tests, build, console behavior, and convention checks listed in the PR description were not run by me. No files were excluded from the review; files.json was not available as a review document, and the reader’s file listing confirmed the seven changed files were included.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6014249855 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23849#pullrequestreview-6014249855). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T20:11:51Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the author-reported checks support its stated behavior, but I did not run them. ## What I ran Read the prepared diff and all seven changed files at head `780d8ccfcbf040583a567868b2a0b2f8450f487c` using `repo_read.py`. No commands or tests were run. All changed files were included and read: `AGENTS.md`, `CONTRIBUTING.md`, `core/libs/prx/libc/include/General.hpp`, `core/libs/prx/libc/src/General.cpp`, `docs/dev/PROGRESS.md`, `tools/progress.py`, and `tools/tests/test_progress.py`. ## Results | Check | Result | Note | |---|---|---| | Diff and changed code review | passed | All seven changed files read | | Author-reported tests and build | not run | Reported in the PR description | | Local tests or build | not run | No commands run | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The tests, build, console behavior, and convention checks listed in the PR description were not run by me. No files were excluded from the review; `files.json` was not available as a review document, and the reader’s file listing confirmed the seven changed files were included. ## To get this to a good state Nothing is required.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!23849
No description provided.