feat(libSceIcu): implement Unicode decimal digit helpers #15346

Merged
AasishDairelSahayaGrinspan merged 3 commits from upstream-pr/15346 into main 2026-11-07 03:01:49 +00:00
AasishDairelSahayaGrinspan commented 2026-11-03 02:06:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AasishDairelSahayaGrinspan on 2026-11-03T02:06:31Z.


What

Implement libSceIcu's Unicode decimal-digit helpers, replacing the two unconditional stubs with generic decimal-range lookup and radix-aware ASCII letter handling. Add deterministic coverage for BMP, supplementary-plane, invalid, and radix-boundary inputs.

Tested

macOS: direct C++20 build and execution of CharacterDigits.cpp plus tests/CharacterDigits.cpp; python3 tools/check_conventions.py --base origin/main. Full CMake/CTest was not run because this checkout has missing third-party submodules (SDL2, FFmpeg, FreeType, libusb, zstd, Opus, mimalloc, glslang) and an incomplete pre-existing LibAtrac9 submodule.

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
  • 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
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5130645621 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15346). Originally posted by [AasishDairelSahayaGrinspan](https://github.com/AasishDairelSahayaGrinspan) on 2026-11-03T02:06:31Z. --- ### What Implement libSceIcu's Unicode decimal-digit helpers, replacing the two unconditional stubs with generic decimal-range lookup and radix-aware ASCII letter handling. Add deterministic coverage for BMP, supplementary-plane, invalid, and radix-boundary inputs. ### Tested macOS: direct C++20 build and execution of CharacterDigits.cpp plus tests/CharacterDigits.cpp; python3 tools/check_conventions.py --base origin/main. Full CMake/CTest was not run because this checkout has missing third-party submodules (SDL2, FFmpeg, FreeType, libusb, zstd, Opus, mimalloc, glslang) and an incomplete pre-existing LibAtrac9 submodule. ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/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 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-03 02:35:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T02:35:43Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

At head d662d75334e8a548d30dd36580acc835d1aaba08, u_digit omits ICU’s fullwidth Latin digit ranges, and the debt file still describes the two implemented functions as throwing stubs.

What I ran

  • Read all five changed files against base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8.
  • Environment: Debian 12 x86_64, Linux 6.1.0-54-amd64, Python 3.11.2, GCC/G++ 12.2.0.
  • The PR reports an author-run macOS direct C++20 build/test and conventions check; I did not run that build.
  • Ran the repository no-build precheck, diff/convention checks, the ABI audit and stack preview. I also read ICU’s pinned u_digit implementation at the source permalink below.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15346 --output-dir /tmp/anyps5-pr-precheck/15346-20261103
git diff --check refs/review/main-15346-20261103...refs/review/pr15346-20261103
python3 tools/check_conventions.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head d662d75334e8a548d30dd36580acc835d1aaba08 --title 'feat(libSceIcu): implement Unicode decimal digit helpers' --body /tmp/anyps5-pr-precheck/15346-20261103/pr-body.md
python3 tools/pr_abi_audit.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head d662d75334e8a548d30dd36580acc835d1aaba08 --json
python3 /marc/AnyPS5/tools/pr_stack_check.py 15346 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/15346-20261103/stack
gh pr checks 15346 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed No whitespace or convention findings
ABI audit passed No findings; lexical check only
Merge preview passed Clean against current main
Hosted checks passed Windows and applicable checks passed; specialized jobs skipped
Local build and CTest not run PR author reports a macOS direct test run
Precheck helpers failed Optional ABI and test-quality scripts absent from isolated snapshot
Precheck and command output
# PR precheck report — checks failed
Head: d662d75334e8a548d30dd36580acc835d1aaba08
Base: 7feb37ee3e30e10139b483fb4df689d5b5b69ab8
diff_check | passed
conventions_and_pr_template | passed
changed_export_abi_audit | failed
live_dependency_and_mergeability_check | passed
build_dependent_cpp_tests | not_applicable
test_quality_heuristics | failed
negative_controls | not_applicable

The helper launch errors were:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15346-20261103/head-d662d75334e8-c0a9da4a/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15346-20261103/head-d662d75334e8-c0a9da4a/tools/pr_test_quality.py': [Errno 2] No such file or directory

Filtered ABI audit output:

ABI audit: passed
limit: This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation.
limit: An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects.

NID/hash assertions from tools/nid_names.py:

New names checked: 13
NID database matches: 13
Mismatches: []

Hosted check output:

conventions	pass	24s	https://github.com/boykopovar/AnyPS5/actions/runs/41564212554/job/125681695621
labels	pass	11s	https://github.com/boykopovar/AnyPS5/actions/runs/41564212534/job/125682999412
windows	pass	10m51s	https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683272389
edge-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683274435
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683273862
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683274032
relinker	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683274076
relinker-asan	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683274757
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683274033
eligibility	pass	5s	https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125681704727
library-portability	pass	1m23s	https://github.com/boykopovar/AnyPS5/actions/runs/41564215354/job/125681698919
report	pass	58s	https://github.com/boykopovar/AnyPS5/actions/runs/41564215313/job/125681698514

Negative control

Not run. The added C++ test requires a built exact-head binary; I did not build or run it.

Findings

Blocking

  • CharacterDigits.cpp, u_digit: after decimal lookup, the implementation recognizes only ASCII A-Z and a-z. ICU also maps fullwidth Latin letters. Thus U+FF21 at radix 16 and U+FF5A at radix 36 return -1 here instead of 10 and 35. Add both ranges and regression assertions, including rejection when the fullwidth letter’s value equals the radix.
    if (value < 0 && character >= 0xFF21 && character <= 0xFF3A) value = character - 0xFF17;
    if (value < 0 && character >= 0xFF41 && character <= 0xFF5A) value = character - 0xFF37;

Non-blocking

  • docs/dev/debt/libSceIcu.md still says the affected functions are no-argument throwing stubs and reports 93/73 stub counts. Update the counts and describe the new implementation’s ICU source and Unicode data revision, while retaining the stated limits on console ABI, firmware compatibility and runtime behavior.

Sources

Not verified

  • No local C++ build, CTest run, console run, or firmware behavior test was performed.
  • ABI audit does not establish console calling convention or runtime compatibility.
  • The PR author’s macOS results were read from the PR description, not reproduced here.

To get this to a good state

Add both fullwidth ranges and focused assertions, update the debt entry/counts with the source and Unicode data revision, then rerun python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15346 and ctest --test-dir build -R guest_icu_character_digits --output-on-failure on the new head. I will recheck the exact SHA and applicable checks after the update.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5746548040 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15346#pullrequestreview-5746548040). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T02:35:43Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested At head `d662d75334e8a548d30dd36580acc835d1aaba08`, `u_digit` omits ICU’s fullwidth Latin digit ranges, and the debt file still describes the two implemented functions as throwing stubs. ## What I ran - Read all five changed files against base `7feb37ee3e30e10139b483fb4df689d5b5b69ab8`. - Environment: Debian 12 x86_64, Linux 6.1.0-54-amd64, Python 3.11.2, GCC/G++ 12.2.0. - The PR reports an author-run macOS direct C++20 build/test and conventions check; I did not run that build. - Ran the repository no-build precheck, diff/convention checks, the ABI audit and stack preview. I also read ICU’s pinned `u_digit` implementation at the source permalink below. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15346 --output-dir /tmp/anyps5-pr-precheck/15346-20261103 git diff --check refs/review/main-15346-20261103...refs/review/pr15346-20261103 python3 tools/check_conventions.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head d662d75334e8a548d30dd36580acc835d1aaba08 --title 'feat(libSceIcu): implement Unicode decimal digit helpers' --body /tmp/anyps5-pr-precheck/15346-20261103/pr-body.md python3 tools/pr_abi_audit.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head d662d75334e8a548d30dd36580acc835d1aaba08 --json python3 /marc/AnyPS5/tools/pr_stack_check.py 15346 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/15346-20261103/stack gh pr checks 15346 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | | - | - | - | | Diff and conventions | passed | No whitespace or convention findings | | ABI audit | passed | No findings; lexical check only | | Merge preview | passed | Clean against current main | | Hosted checks | passed | Windows and applicable checks passed; specialized jobs skipped | | Local build and CTest | not run | PR author reports a macOS direct test run | | Precheck helpers | failed | Optional ABI and test-quality scripts absent from isolated snapshot | <details> <summary>Precheck and command output</summary> ```text # PR precheck report — checks failed Head: d662d75334e8a548d30dd36580acc835d1aaba08 Base: 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 diff_check | passed conventions_and_pr_template | passed changed_export_abi_audit | failed live_dependency_and_mergeability_check | passed build_dependent_cpp_tests | not_applicable test_quality_heuristics | failed negative_controls | not_applicable ``` The helper launch errors were: ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15346-20261103/head-d662d75334e8-c0a9da4a/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15346-20261103/head-d662d75334e8-c0a9da4a/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` Filtered ABI audit output: ```text ABI audit: passed limit: This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation. limit: An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects. ``` NID/hash assertions from `tools/nid_names.py`: ```text New names checked: 13 NID database matches: 13 Mismatches: [] ``` Hosted check output: ```text conventions pass 24s https://github.com/boykopovar/AnyPS5/actions/runs/41564212554/job/125681695621 labels pass 11s https://github.com/boykopovar/AnyPS5/actions/runs/41564212534/job/125682999412 windows pass 10m51s https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683272389 edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683274435 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683273862 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683274032 relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683274076 relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683274757 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125683274033 eligibility pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41564215364/job/125681704727 library-portability pass 1m23s https://github.com/boykopovar/AnyPS5/actions/runs/41564215354/job/125681698919 report pass 58s https://github.com/boykopovar/AnyPS5/actions/runs/41564215313/job/125681698514 ``` </details> ## Negative control Not run. The added C++ test requires a built exact-head binary; I did not build or run it. ## Findings ### Blocking - `CharacterDigits.cpp`, `u_digit`: after decimal lookup, the implementation recognizes only ASCII `A-Z` and `a-z`. ICU also maps fullwidth Latin letters. Thus U+FF21 at radix 16 and U+FF5A at radix 36 return `-1` here instead of 10 and 35. Add both ranges and regression assertions, including rejection when the fullwidth letter’s value equals the radix. ```suggestion if (value < 0 && character >= 0xFF21 && character <= 0xFF3A) value = character - 0xFF17; if (value < 0 && character >= 0xFF41 && character <= 0xFF5A) value = character - 0xFF37; ``` ### Non-blocking - `docs/dev/debt/libSceIcu.md` still says the affected functions are no-argument throwing stubs and reports 93/73 stub counts. Update the counts and describe the new implementation’s ICU source and Unicode data revision, while retaining the stated limits on console ABI, firmware compatibility and runtime behavior. ## Sources - [`u_digit` implementation at this PR head](https://github.com/boykopovar/AnyPS5/blob/d662d75334e8a548d30dd36580acc835d1aaba08/core/libs/prx/libSceIcu/CharacterDigits.cpp#L44-L49) - [Tests at this PR head](https://github.com/boykopovar/AnyPS5/blob/d662d75334e8a548d30dd36580acc835d1aaba08/core/libs/prx/libSceIcu/tests/CharacterDigits.cpp#L24-L28) - [Stale debt entry at this PR head](https://github.com/boykopovar/AnyPS5/blob/d662d75334e8a548d30dd36580acc835d1aaba08/docs/dev/debt/libSceIcu.md#L48-L51) - [ICU `u_digit` behavior at pinned commit](https://github.com/unicode-org/icu/blob/049e0d6a420629ac7db77256987d083a563287b5/icu4c/source/common/uchar.cpp#L449-L468) ## Not verified - No local C++ build, CTest run, console run, or firmware behavior test was performed. - ABI audit does not establish console calling convention or runtime compatibility. - The PR author’s macOS results were read from the PR description, not reproduced here. ## To get this to a good state Add both fullwidth ranges and focused assertions, update the debt entry/counts with the source and Unicode data revision, then rerun `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15346` and `ctest --test-dir build -R guest_icu_character_digits --output-on-failure` on the new head. I will recheck the exact SHA and applicable checks after the update.
MarcZX10 commented 2026-11-03 08:19:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T08:19:06Z.

Review: APPROVED


Re-checked — new head, approved

The new head adds the missing fullwidth Latin cases and regression assertions; the current-base preview and all applicable hosted checks pass.

What I ran

Reviewed all six changed files in PR #15346 at head de56b01de9449a5383d1b2bda1b32785adb142be against PR base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8. The latest stack check previewed this head cleanly against current main 4f41f4c375f5abb487dbd184fbc150f31994d762. Environment: Debian 12 x86_64, Python 3.11.2, Git 2.39.5, GCC 12.2.0; I did not compile locally. The author reports a direct C++20 build and run of the new test at this exact head; that is author-reported evidence, not a run I performed.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15346
python3 tools/pr_abi_audit.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head de56b01de9449a5383d1b2bda1b32785adb142be
python3 /marc/AnyPS5/tools/pr_test_quality.py --root /tmp/anyps5-pr15346-exact-i0q0mus6 --json core/libs/prx/libSceIcu/tests/CharacterDigits.cpp
python3 tools/pr_stack_check.py 15346 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-15346-latest
git diff --check 7feb37ee3e30e10139b483fb4df689d5b5b69ab8..de56b01de9449a5383d1b2bda1b32785adb142be
gh pr checks 15346 --repo boykopovar/AnyPS5
gh run view 41590168612 --repo boykopovar/AnyPS5 --job 125767039528 --log

Results

Check Result Note
Source, diff and conventions passed Corrections address both earlier findings; no new blocker found.
ABI audit passed No lexical declaration/definition findings.
Test registration passed CMake registers guest_icu_character_digits.
Test-quality heuristic failed Registration warning is a false positive, confirmed in CMake.
Current-main preview passed Clean against current main.
Hosted Windows and policy checks passed All applicable checks completed successfully.
New test execution passed Author-reported exact-head C++20 run; not independently reproduced.
Local build and CTest not run No local compilation was performed.
Relevant unedited check output

The precheck report's overall status was:

Conclusion: checks failed

Its optional ABI/test-quality scripts were absent from the isolated PR snapshot, and its first stack preview became stale while main advanced. I ran the ABI audit from the review workspace and reran the stack check; the latter reports a fresh, clean preview. The exact-head test-quality heuristic output was:

{
  "findings": [
    {
      "path": "core/libs/prx/libSceIcu/tests/CharacterDigits.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}

The relevant CMake lines explicitly register the target:

14:    add_test_executable(guest_icu_character_digits_tests ${CMAKE_CURRENT_SOURCE_DIR}/tests/CharacterDigits.cpp)
18:    add_test(NAME guest_icu_character_digits COMMAND guest_icu_character_digits_tests)

Exact hosted check summary:

conventions	pass	26s	https://github.com/boykopovar/AnyPS5/actions/runs/41590165781/job/125764831277
labels	pass	8s	https://github.com/boykopovar/AnyPS5/actions/runs/41590165923/job/125764831428
library-portability	pass	1m23s	https://github.com/boykopovar/AnyPS5/actions/runs/41590168411/job/125764837525
report	pass	33s	https://github.com/boykopovar/AnyPS5/actions/runs/41590168308/job/125764837473
windows	pass	10m54s	https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767039528
edge-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041376
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041286
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041378
relinker	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041554
relinker-asan	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041731
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041299
eligibility	pass	5s	https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125764838491

Negative control

I did not alter the implementation or run this test against the base revision. The author-reported run exercises the new test but is not a negative control.

Findings

Blocking

None found in the reviewed head.

Non-blocking

The Windows job log could not be retrieved through gh, so I cannot independently confirm from that log that the new target ran there. The author reports a direct C++20 build and execution of the exact-head test. Console behavior and firmware-specific Unicode data remain unverified, as the debt entry states.

Sources

Not verified

I did not run a local C++ build, CTest, or negative control, and I did not verify behavior on console hardware. The hosted Windows log was unavailable through the CLI; Linux and specialized jobs were skipped. The standalone C++20 result is reported by the PR author.

To get this to a good state

No further change is needed for this head. If it changes, I will inspect the new diff and rerun the same no-build checks and relevant tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5748989860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15346#pullrequestreview-5748989860). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T08:19:06Z. **Review:** APPROVED --- # Re-checked — new head, approved The new head adds the missing fullwidth Latin cases and regression assertions; the current-base preview and all applicable hosted checks pass. ## What I ran Reviewed all six changed files in PR #15346 at head `de56b01de9449a5383d1b2bda1b32785adb142be` against PR base `7feb37ee3e30e10139b483fb4df689d5b5b69ab8`. The latest stack check previewed this head cleanly against current `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`. Environment: Debian 12 x86_64, Python 3.11.2, Git 2.39.5, GCC 12.2.0; I did not compile locally. The author reports a direct C++20 build and run of the new test at this exact head; that is author-reported evidence, not a run I performed. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15346 python3 tools/pr_abi_audit.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head de56b01de9449a5383d1b2bda1b32785adb142be python3 /marc/AnyPS5/tools/pr_test_quality.py --root /tmp/anyps5-pr15346-exact-i0q0mus6 --json core/libs/prx/libSceIcu/tests/CharacterDigits.cpp python3 tools/pr_stack_check.py 15346 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-15346-latest git diff --check 7feb37ee3e30e10139b483fb4df689d5b5b69ab8..de56b01de9449a5383d1b2bda1b32785adb142be gh pr checks 15346 --repo boykopovar/AnyPS5 gh run view 41590168612 --repo boykopovar/AnyPS5 --job 125767039528 --log ``` ## Results | Check | Result | Note | |---|---|---| | Source, diff and conventions | passed | Corrections address both earlier findings; no new blocker found. | | ABI audit | passed | No lexical declaration/definition findings. | | Test registration | passed | CMake registers `guest_icu_character_digits`. | | Test-quality heuristic | failed | Registration warning is a false positive, confirmed in CMake. | | Current-main preview | passed | Clean against current `main`. | | Hosted Windows and policy checks | passed | All applicable checks completed successfully. | | New test execution | passed | Author-reported exact-head C++20 run; not independently reproduced. | | Local build and CTest | not run | No local compilation was performed. | <details> <summary>Relevant unedited check output</summary> The precheck report's overall status was: ```text Conclusion: checks failed ``` Its optional ABI/test-quality scripts were absent from the isolated PR snapshot, and its first stack preview became stale while `main` advanced. I ran the ABI audit from the review workspace and reran the stack check; the latter reports a fresh, clean preview. The exact-head test-quality heuristic output was: ```json { "findings": [ { "path": "core/libs/prx/libSceIcu/tests/CharacterDigits.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` The relevant CMake lines explicitly register the target: ```text 14: add_test_executable(guest_icu_character_digits_tests ${CMAKE_CURRENT_SOURCE_DIR}/tests/CharacterDigits.cpp) 18: add_test(NAME guest_icu_character_digits COMMAND guest_icu_character_digits_tests) ``` Exact hosted check summary: ```text conventions pass 26s https://github.com/boykopovar/AnyPS5/actions/runs/41590165781/job/125764831277 labels pass 8s https://github.com/boykopovar/AnyPS5/actions/runs/41590165923/job/125764831428 library-portability pass 1m23s https://github.com/boykopovar/AnyPS5/actions/runs/41590168411/job/125764837525 report pass 33s https://github.com/boykopovar/AnyPS5/actions/runs/41590168308/job/125764837473 windows pass 10m54s https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767039528 edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041376 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041286 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041378 relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041554 relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041731 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125767041299 eligibility pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41590168612/job/125764838491 ``` </details> ## Negative control I did not alter the implementation or run this test against the base revision. The author-reported run exercises the new test but is not a negative control. ## Findings ### Blocking None found in the reviewed head. ### Non-blocking The Windows job log could not be retrieved through `gh`, so I cannot independently confirm from that log that the new target ran there. The author reports a direct C++20 build and execution of the exact-head test. Console behavior and firmware-specific Unicode data remain unverified, as the debt entry states. ## Sources - [Decimal ranges and digit implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/de56b01de9449a5383d1b2bda1b32785adb142be/core/libs/prx/libSceIcu/CharacterDigits.cpp#L12-L52) - [Fullwidth digit regression cases at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/de56b01de9449a5383d1b2bda1b32785adb142be/core/libs/prx/libSceIcu/tests/CharacterDigits.cpp#L21-L30) - [CTest registration at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/de56b01de9449a5383d1b2bda1b32785adb142be/core/libs/prx/libSceIcu/CMakeLists.txt#L13-L24) - [Pinned ICU `u_digit` reference](https://github.com/unicode-org/icu/blob/049e0d6a420629ac7db77256987d083a563287b5/icu4c/source/common/uchar.cpp#L449-L468) ## Not verified I did not run a local C++ build, CTest, or negative control, and I did not verify behavior on console hardware. The hosted Windows log was unavailable through the CLI; Linux and specialized jobs were skipped. The standalone C++20 result is reported by the PR author. ## To get this to a good state No further change is needed for this head. If it changes, I will inspect the new diff and rerun the same no-build checks and relevant tests.
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!15346
No description provided.