feat(libSceIcu): implement usearch_setAttribute #27182
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27182"
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 Thimo188 on 2026-11-25T10:30:32Z.
What
Implement
usearch_setAttributewith ICU-compatible attribute and value validation for registered string-search handles.USEARCH_ATTRIBUTE_VALUE_COUNTreportsU_ILLEGAL_ARGUMENT_ERROReven with a prefailed status, matching ICU 68.2 and 78.1; other prefailed calls skip handle access.Tested
Current integration validation: Ubuntu 24.04 x86_64 Docker, GCC 13.3, CMake 3.28.3, Ninja, Release, BUILD_TESTING=ON, at
06e17e4070a492b86b2dd66c5c5bce00e80ac973with upstreammain5cf487d16805a9c90a41d153363adac12a1082efmerged. The focused PR CTests passed 3/3. Conventions, debt fragments, diff whitespace, public headers and test-registration audits passed. This update merges upstream main and current declared dependencies without changing the topic implementation. No title or PS5 run.Ubuntu 24.04 x86_64 Docker (
anyps5-dev:24.04), GCC 13.3, Ninja, Release,BUILD_TESTING=ON, after merging upstreammainfc294cbbb539and the refreshed declared dependency: built and ranguest_icu_recovered_signatures,guest_icu_display_keyword_value, andguest_icu_break_iterator; all 3/3 passed.python3 tools/check_conventions.py,python3 tools/debt_fold.py --check, andgit diff --checkpassed. Native-oracle coverage exercises null, forged and live handles, errno, unchanged attributes and read-only status memory. A source-only negative control retained the corrected tests on the previous production source: build passed and the new expected-status assertion failed; restoring the fix passes all 3/3 tests and the exact native oracle. No title or console run.Revalidated on 2026-12-02 at
de6d68c767cbd0c3002afafa2ad3819d7ba3aeabwith upstreammainfc294cbbb539ca1a93570b6bc063fd8e9a5fd97bincluded.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 MarcZX10 on 2026-11-25T10:50:36Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: preserve ICU’s status error behavior when
usearch_setAttributereceives an invalid value alongside an already-failing status.What I ran
Reviewed head
39202bf9c057380fb9cebf14c33d2f8351f55261from the prepared patch and repository reader. No build or tests were run; the Linux and Windows runs in the PR description are author-reported.Results
Findings
Blocking
core/libs/prx/libSceIcu/StringSearch.cpp:179: the sentinel valueAttributeValueCountwritesU_ILLEGAL_ARGUMENT_ERRORbefore checking whether the incoming status is already failing. ICU status convention requires APIs to leave a failing incoming status unchanged; this branch overwrites it. The new tests exercise the invalid value with passing statuses, but do not cover this combination. Check the incoming status before writing the error, and add a regression case with an already-failing status.Non-blocking
None.
Not verified
No build or tests were run. The PR’s reported Linux and Windows test results were not independently confirmed. The complete changed-file set was present in the manifest; reviewed the string-search implementation, its host wrapper and status helper, and relevant tests. Other changed files were not read in full.
To get this to a good state
Preserve a failing incoming status for the invalid-value case and add a regression test; rerun the reported Linux and Windows test checks on the updated head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T15:22:40Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: preserve ICU’s accepted attribute values when validating
usearch_setAttribute.What I ran
Reviewed head
6c697b4009c5cb38f258400dcc6ea372748da514from the prepared diff and repository reader context. No commands or tests were run; the Linux and Windows test results in the description are author-reported.Results
Findings
Blocking
usearch_setAttributerejects only the sentinel valueUSEARCH_ATTRIBUTE_VALUE_COUNT; other out-of-range values are passed to ICU (StringSearch.cpp:180-192). ICU’sUSearchAttributeValuehas valid valuesUSEARCH_DEFAULT,USEARCH_OFF, andUSEARCH_ON; passing values outside that set is invalid and should produceU_ILLEGAL_ARGUMENT_ERROR, rather than relying on ICU internals to validate arbitrary enum casts. Validate the value against the documented set before calling the host adapter, and cover representative invalid values such as-1and100.Non-blocking
None.
Not verified
No tests were run. The author reports Linux x86_64 and Windows x86_64 test runs. I read
review/description.md,review/commits.md,review/manifest.json,review/diff.patch,core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp,core/libs/prx/libSceIcu/RecoveredSignatures.hpp,core/libs/prx/libSceIcu/Status.hpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cpp. Other changed files listed in the manifest were not read in full;review/files.jsonwas not available through the reader, so excluded-file details were not verified.To get this to a good state
Validate
valueagainst the acceptedUSearchAttributeValueenumerators before delegating, and add tests for invalid values beyond the count sentinel. Then rerun the string-search test suite on the updated head.Imported from boykopovar/AnyPS5. Originally posted by Thimo188 on 2026-11-25T16:06:11Z.
Review: COMMENTED
I checked this against the pinned ICU implementation. USEARCH_DEFAULT is -1, and ICU also defines accepted values 2, 3, and 4. The pinned usearch_setAttribute implementation rejects only the exact USEARCH_ATTRIBUTE_VALUE_COUNT sentinel (5); other integers are handled by the selected attribute logic. Rejecting -1 or every value outside 0/1 would therefore diverge from upstream. I added regression coverage for -1, 2, 3, 4, and 100 instead. The focused guest_icu_recovered_signatures test passes on both Linux and the Windows WinLibs Docker build. The existing fix also preserves an incoming failing UErrorCode as upstream requires.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T17:05:49Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the targeted
usearch_setAttributeimplementation forwards valid calls to ICU and preserves its status behavior.What I ran
Reviewed head
bc8b60a5cf5d8ac2c99e89e3dd0965f8752ea95dusing the prepared diff andrepo_read.pyfor targeted source context. No commands or tests were run.Results
Findings
Blocking
None found in the reviewed
usearch_setAttributepath.Non-blocking
None.
Not verified
The review did not cover all 32 changed files or independently verify the author-reported Linux and Windows results. In particular, the broader ICU data, break-iterator, collator, and build changes were not fully audited. No physical-console behavior was verified.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T08:28:14Z.
Review: COMMENTED
Actionable comments posted: 5
6e5b705d-f5af-4c9a-95a9-961874cc7b57Reviewing files that changed from the base of the PR and between
12b4fd5d6aandb41a4d061e..gitignoreCONTRIBUTING.mdcmake/Icu.cmakecmake/IcuData.cmakecmake/IcuDataFilter.jsoncmake/icu-host/CMakeLists.txtcore/libs/prx/libSceIcu/Availability.cppcore/libs/prx/libSceIcu/BreakIterator.cppcore/libs/prx/libSceIcu/BreakIterator.hppcore/libs/prx/libSceIcu/CMakeLists.txtcore/libs/prx/libSceIcu/Collator.cppcore/libs/prx/libSceIcu/CollatorHost.cppcore/libs/prx/libSceIcu/CollatorHost.hppcore/libs/prx/libSceIcu/Configuration.cppcore/libs/prx/libSceIcu/Data.cppcore/libs/prx/libSceIcu/Data.hppcore/libs/prx/libSceIcu/Export.cppcore/libs/prx/libSceIcu/RecoveredInventory.cppcore/libs/prx/libSceIcu/RecoveredInventory.hppcore/libs/prx/libSceIcu/RecoveredSignatures.hppcore/libs/prx/libSceIcu/StringSearch.cppcore/libs/prx/libSceIcu/StringSearchHost.cppcore/libs/prx/libSceIcu/StringSearchHost.hppcore/libs/prx/libSceIcu/include/InventoryExports.hppcore/libs/prx/libSceIcu/libSceIcu.hppcore/libs/prx/libSceIcu/tests/BreakIterator.cppcore/libs/prx/libSceIcu/tests/Collator.cppcore/libs/prx/libSceIcu/tests/Data.cppcore/libs/prx/libSceIcu/tests/StringSearch.cppdocs/dev/BUILD.mddocs/dev/debt/changes/feat-icu-string-search-matched-length.mddocs/dev/debt/changes/feat-icu-string-search-open.mddocs/dev/debt/changes/feat-icu-string-search-reset.mddocs/dev/debt/changes/feat-icu-string-search-set-attribute.mddocs/dev/debt/changes/feat-icu-string-search-set-offset.mddocs/dev/debt/changes/feat-libsceicu-data-break-iterator.mddocs/dev/debt/changes/feat-libsceicu-data-collator.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T08:36:13Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: fix the attribute wrapper’s validation and status handling.
What I ran
Reviewed head
b41a4d061e44e4c1d9d5c0aff6735b9e7b6cd4causing the prepared diff and reader. No build or test commands were run; Linux and Windows test results below are author-reported.Results
Findings
Blocking
usearch_setAttributereturns immediately whensearchis null, before validatingattribute. Thus an invalid attribute with a null handle leaves status unchanged, whereas the wrapper’s new invalid-attribute path setsU_ILLEGAL_ARGUMENT_ERROR. Validate the attribute before the null-handle return, or confirm the intended ICU-compatible null-handle behavior and cover it with a test.core/libs/prx/libSceIcu/StringSearch.cpp:1257Non-blocking
Not verified
guest_icu_recovered_signatures_testspassed on Linux x86_64 Docker and Windows x86_64 Docker under Wine. These results were not independently confirmed.review/description.md,review/commits.md,review/manifest.json,review/diff.patch,core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cpp. All are included in the review bundle; no changed files were excluded according to the manifest/listing.To get this to a good state
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T09:50:31Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: preserve an already-failing ICU status when the attribute value is the sentinel.
What I ran
Reviewed head
d639ee2a238a22928a938144c35cf00c2945bf03; no build or tests were run. Readdescription.md,commits.md,manifest.json, and relevant hunks indiff.patch; inspectedStringSearch.cpp,StringSearchHost.cpp, andtests/StringSearch.cppthroughrepo_read.py.Results
Findings
Blocking
core/libs/prx/libSceIcu/StringSearch.cpp:203: Whenvalue == AttributeValueCount, this branch always copiesIllegalArgumenttostatus, even ifincoming > 0. The function's normal ICU-style behavior returns early for a pre-existing failing status at line 201, and the added test explicitly expects the incoming error to remain unchanged for this sentinel case. Guard this validation with the successful-status condition (or otherwise preserve the original status).Non-blocking
None.
Not verified
Other changed files were not read, including CMake/data-building changes, break iterator and collator implementations, and their tests. They are listed in
manifest.json; none of those files is claimed to be missing. Build/test results are author-reported, not run in this review. Console behavior is unverified.To get this to a good state
Preserve the incoming failure status for the sentinel value, then rerun the string-search tests on the updated head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T10:43:32Z.
Review: COMMENTED
Reviewed — comments
Changes are required before merge: fix
usearch_setAttributeto allow the ICU sentinel value and preserve its status semantics.What I ran
Reviewed head
34df10d6a3ff91f89c3bcaa0ca4b8ab99dca04a3; base ismain. No commands or tests were run in this session.Results
Findings
Blocking
None verified.
Non-blocking
usearch_setAttributerejects value5unconditionally (core/libs/prx/libSceIcu/StringSearch.cpp:209). ICU usesUSEARCH_ATTRIBUTE_VALUE_COUNTas the sentinel for resetting an attribute to its default; the host wrapper delegates values to ICU, whose implementation is expected to process that sentinel. This explicit rejection prevents callers from restoring defaults. Please confirm the intended firmware contract and pass the sentinel through if compatible.Not verified
The review bundle lists 35 changed files; every listed file was included, but this review read only the prepared description, commits, manifest, diff, and selected changed source/test files. In particular, the remaining changed lines in tests, CMake, documentation, and inventory files were not all read.
files.jsonwas not separately inspected. No build, test, console, or cross-platform behavior was verified here. Author-reported Linux and Windows test results were not independently run.To get this to a good state
Nothing is required for merge; the sentinel behavior is optional feedback to confirm against the target firmware.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T10:48:56Z.
Review: COMMENTED
Actionable comments posted: 9
7044584c-1433-417f-abaa-f7f66660b232Reviewing files that changed from the base of the PR and between
d639ee2a23and34df10d6a3.cmake/IcuData.cmakecmake/icu-host/CMakeLists.txtcore/libs/prx/libSceIcu/BreakIterator.cppcore/libs/prx/libSceIcu/Collator.cppcore/libs/prx/libSceIcu/StringSearch.cppcore/libs/prx/libSceIcu/tests/Collator.cppcore/libs/prx/libSceIcu/tests/StringSearch.cppdocs/dev/debt/changes/feat-icu-string-search-open.mdIncluded 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 MarcZX10 on 2026-11-27T11:17:51Z.
Review: COMMENTED
Reviewed — comments
The implementation and targeted tests were inspected at head
23cce4e75035b4363f173e85d6c6d5e3303bdbe6; the review is incomplete, so a formal merge decision is not justified.What I ran
No build or tests were run. Read the prepared description, commits, manifest, and diff, plus
StringSearch.cpp,StringSearchHost.cpp, and the relevantStringSearch.cpptests at the pinned head.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
None.
Not verified
The review did not cover all changed files. Files read:
StringSearch.cpp,StringSearchHost.cpp, andtests/StringSearch.cpp; also read the prepared review description, commits, manifest, and diff. Other changed files listed in the manifest were not read, including build and ICU data changes, break iterator and collator implementations, their tests, and documentation. Build and test claims in the PR description were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T12:02:38Z.
Review: COMMENTED
Reviewed — comments
Changes are required before merge: resolve the status handling for the
USEARCH_ATTRIBUTE_VALUE_COUNTsentinel.What I ran
Reviewed head
43fa8192fa97080e312eb75f07f29b71cb8fe6e7. I did not run commands or tests; the build and test runs in the PR description are author-reported.Results
Findings
Blocking
None verified.
Non-blocking
StringSearch.cpp:216handles the sentinel by calling ICU, then copying ICU's output status unconditionally. ICU error statuses are positive, so if the caller enters with a pre-existing positive status, this path may overwrite it. Nearby error handling generally preserves an incoming failure status. Please confirm the intended status precedence and add a test for the sentinel with an already-failing status if ICU behavior supports that expectation.Not verified
The review folder’s
files.jsonwas not available through the reader, so I could not determine which changed files were reviewed versus excluded. I read the PR description, commits, manifest, and diff, plusStringSearch.cpp,StringSearchHost.cpp, and the relevant test changes. I did not read the other changed files or run the reported test commands; console behavior is also unverified. The reported runs are not independently confirmed.To get this to a good state
Nothing is required. Optional: add coverage for the sentinel path with an incoming positive status, and clarify whether that status should be preserved or replaced.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T14:18:32Z.
Review: COMMENTED
Reviewed — no blocking findings
The search attribute wrapper and its focused tests were reviewed at head
2096f384ba744206153db85526f5fb8f6fc91024; I did not run checks, and the rest of the changed files were not read.What I ran
No commands or tests were run. I read the prepared description, commits, manifest, diff, and targeted source and test context through the review reader.
Results
Findings
Blocking
None in the targeted implementation reviewed.
Non-blocking
None.
Not verified
The complete PR was not reviewed. Of 43 changed files listed in the review folder, I inspected added lines in
core/libs/prx/libSceIcu/StringSearch.cppandcore/libs/prx/libSceIcu/tests/StringSearch.cpp, plus context fromcore/libs/prx/libSceIcu/StringSearchHost.cppandcore/libs/prx/libSceIcu/Status.hpp. The other changed files were not read. The prepared diff excluded files by rule, but the excluded-file listing was unavailable. Build and test claims in the description are author-reported and were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T16:00:50Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
f28ada288097b2051c4a43baae3e5b5114b49bdc. No commands or tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full diff spans many areas. Targeted reading covered the string-search implementation, its host adapter, relevant tests, signature declarations, and the changed attribute hunk. Other changed code, including ICU data generation, break iterators, collators, and build configuration, was not verified. Per the review bundle manifest, all changed files are marked included; the full text of files not read was not inspected. No runtime behavior or test results were independently verified.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T20:36:15Z.
Review: COMMENTED
Reviewed — no blocking findings
The targeted
usearch_setAttributeimplementation and its tests show no verified blocking defect, but this review did not cover every changed file, so a formal approval is not justified.What I ran
Reviewed head
dc01d0dd507008f562ab64ac1a1e0529f0589ea8. No commands or tests were run. The PR description reports Linux and Windows test runs; those results were not independently verified.Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Sources
core/libs/prx/libSceIcu/StringSearch.cpp:213— attribute validation, sentinel handling, and delegation.core/libs/prx/libSceIcu/tests/StringSearch.cpp:386— attribute value and error status coverage.Not verified
Read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch(targeted sections),review/README.md,core/libs/prx/libSceIcu/StringSearch.cpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cpp(targeted ranges). The other changed files listed in the review manifest were not read, including the ICU build/data changes, break iterator and collator implementations, other tests, and documentation. Tests and console behavior were not independently verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T15:31:53Z.
Review: COMMENTED
Reviewed — no blocking findings
The review materials were not accessible through the available tools, so the change could not be verified.
What I ran
No reader commands were available in this session.
Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
The PR description, commits, diff, changed file contents, and reviewed-file manifest were not read.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T10:22:47Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: preserve a pre-failed status when the attribute value is the sentinel.
What I ran
Reviewed head
01353883db0ddf409c52e125edf3f87c6ca892a8. I inspected the prepared description, commit list, manifest, diff, and targeted string-search implementation and tests. No commands or tests were run.Results
Findings
Blocking
core/libs/prx/libSceIcu/StringSearch.cpp:227: Forvalue == AttributeValueCount, invalid or unregistered handles causeIllegalArgumentto be written unconditionally. This overwrites a pre-existing positive ICU status, although the function returns immediately for such statuses at line 216 on the ordinary path. The test specifically expects incoming failure status to remain unchanged (core/libs/prx/libSceIcu/tests/StringSearch.cpp:211and:284in the changed test context). Return early whenincoming > 0before sentinel handling, consistent with the normal path.Non-blocking
None.
Not verified
Tests described in the PR body were author-reported and not run during this review. I read the changed string-search implementation and relevant tests, along with the prepared metadata and diff. The full text of other changed files is available in the review bundle, but I did not inspect every changed file or build behavior.
To get this to a good state
Preserve positive incoming status on the sentinel-value path and add or retain coverage for that case; then rerun the string-search tests.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T10:11:40Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed change implements ICU search attribute setting with input validation and status handling; no concrete blocking defect was verified in the inspected code.
What I ran
Reviewed head
855a64b6da911966c12b2fab61ea7e9a66025ce4. I read the prepared description, commit list, manifest, and relevant diff hunks usingrepo_read.pytools. No checks were run. The description reports Linux and Windows test runs; those results were not independently verified.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The complete 46-file reviewed set in the manifest was not read, so this review is incomplete and does not support approval. In particular, only selected portions of the diff were inspected. The reported Linux and Windows test runs were not rerun.
files.jsonand any exclusions it describes were not available through the reader. The reported console behavior remains unverified.To get this to a good state
Complete review of every changed file before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T19:02:40Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: reject out-of-range attribute values instead of applying them as “off.”
What I ran
Reviewed head
2a6f89db405fe91adfa6e1052892e05e644b839cusingrepo_read.pyto inspect the setter, its host wrapper, and relevant test ranges, plus the prepared diff and review metadata. No tests or builds were run. The PR description reports Linux and Windows test runs; those are author-reported, not runs performed here.Results
Negative control
Not run; no test or code mutation was performed during this review.
Findings
Blocking
core/libs/prx/libSceIcu/StringSearch.cpp:238coerces values below-1or at least5to0, so an invalid value such as100silently changes the attribute to off and reports success. The added test also expects100to succeed (core/libs/prx/libSceIcu/tests/StringSearch.cpp:408-412). Return an illegal-argument status for out-of-range values, preserving only documented sentinel behavior. Setter at the reviewed commit · Test at the reviewed commitNon-blocking
None.
Sources
Not verified
The prepared manifest lists 48 reviewed files and no excluded files. I read the full
StringSearch.cppandStringSearchHost.cpptexts, relevant ranges fromStringSearch.cpptests, and the change bundle metadata and relevant diff sections. I did not read the full text of the other changed files or inspect all diff hunks. Console behavior and the reported test runs were not independently verified.To get this to a good state
Reject out-of-range values with an illegal-argument status and update the test that currently expects
100to succeed. Rerun the relevant string-search tests on the new head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T01:25:31Z.
Review: COMMENTED
Reviewed — no blocking findings
No defect was verified in the inspected
usearch_setAttributepath, but most changed files were not inspected, so this review is incomplete.What I ran
Inspected head
94417a61f51d19aef9368144e31af72bc0675122withrepo_read.py; no tests, builds, or static checks were run.Results
Negative control
Not run; no test or source mutation was performed.
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Sources
Not verified
Read the PR description, commits, manifest, file list, and the relevant
StringSearch.cppdiff hunk. Read the three source files listed above throughrepo_read.py. The manifest lists 48 reviewed files; 45 changed files were not inspected in full. No files were excluded by the supplied rule. Tests reported in the PR description were not run by this review, and console behavior was not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T12:03:56Z.
Review: COMMENTED
Reviewed — no blocking findings
The
usearch_setAttributewrapper and its tests were inspected at headf6fa9bd49c8959f010ef3cee9b0174d15657d51f; the wider change set was not fully reviewed.What I ran
No tests or builds were run. I used the pinned
repo_read.pyreader to inspect the changedStringSearchimplementation and tests. The reader printed the requested ranges, then reported that it could not append its read log in the read-only run folder. No merged preview was run. The PR description reports separate author-run checks; those were not run by me.Results
Negative control
Not run; no test was changed to confirm it would fail against the reported behavior.
Findings
Blocking
None in the inspected paths.
Non-blocking
core/libs/prx/libSceIcu/StringSearch.cpp:215, the early return for a pre-failed status occurs before theUSEARCH_ATTRIBUTE_VALUE_COUNThandling. ICU 78.1 setsU_ILLEGAL_ARGUMENT_ERRORfor that sentinel even when the incoming status is already failing; this wrapper preserves the incoming status instead. The test atcore/libs/prx/libSceIcu/tests/StringSearch.cpp:258expects that difference. Since this only affects a call that already carries an error, confirm that preserving the status is the intended console behavior.Sources
usearch.cppat its pinned release commitNot verified
I read
description.md,commits.md,manifest.json, and the targetedStringSearchhunks indiff.patch. At the pinned head, I readStringSearch.cpp,StringSearchHost.cpp,StringSearchHost.hpp,tests/StringSearch.cpp, and a relevant range ofcore/libs/prx/libSceIcu/CMakeLists.txt.files.jsonlists all changed files as reviewed and none as excluded by rule; I did not read the other files in that reviewed list, so their behavior and the rest of the diff are not verified. No tests, builds, host platforms, or console behavior were confirmed by me.To get this to a good state
Nothing is required. Optionally confirm the pre-failed-status sentinel behavior against the console.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T16:09:56Z.
Review: COMMENTED
Reviewed — no blocking findings
This is a partial review of head
de6d68c767cbd0c3002afafa2ad3819d7ba3aeab; the inspected string-search changes show no verified blocking defect, but the full 49-file change was not reviewed.What I ran
Inspected the prepared description, commits, manifest, diff, and files for string search, its host adapter, tests, signatures, and debt note. Used
repo_read.py searchfor string-search references; a subsequent search could not log because the run folder is read-only. No tests or builds were run. The reported Ubuntu checks are author-reported, not checks I ran.Results
Negative control
Not run; no test was executed.
Findings
Blocking
None in the inspected string-search changes.
Non-blocking
None.
Sources
The inspected implementation delegates registered handles to ICU and includes explicit handling for sentinel values and prior failure status. StringSearch.cpp at the reviewed head · StringSearchHost.cpp at the reviewed head · StringSearch tests at the reviewed head
Not verified
The other changed files were not inspected, including ICU data generation, break iteration, collation, build configuration, and their tests. The manifest lists 49 reviewed files and no excluded files; I read the changed portions for
StringSearch.cpp,StringSearchHost.cpp,tests/StringSearch.cpp,RecoveredSignatures.hpp, and the string-search debt note. Console behavior was not verified. The author reports the listed checks passed on Ubuntu 24.04 at a different head.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files before treating this as a full PR review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T19:33:03Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this; the points below are optional, but the accumulated 49-file change was not fully inspected, so this is not a formal approval.
What I ran
Reviewed head
06e17e4070a492b86b2dd66c5c5bce00e80ac973; no merged-preview check. I inspected the prepared diff and usedrepo_read.pyto read theusearch_setAttributeimplementation and its host shim. No build or test command was run.Results
usearch_setAttributepath reviewedNegative control
Not run; the negative control described by the author was not independently repeated.
Findings
Blocking
None verified in the inspected
usearch_setAttributepath.Non-blocking
None.
Sources
usearch_setAttributehandler at the reviewed headNot verified
Read in full:
core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp, andcore/libs/prx/libSceIcu/StringSearchHost.hpp. I also read relevant diff hunks and the focused test range incore/libs/prx/libSceIcu/tests/StringSearch.cpp. The other 46 files listed underreviewedinfiles.jsonwere not read in full; the console listed no files excluded by rule. Build, tests, and console behavior were not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:33:47Z.
Review: COMMENTED
Built the branch’s string-search sources on Linux with ICU 78.1 and ran the fixture’s
CheckIcuStringSearchcases directly. They passed, including the attribute cases.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.