revert: implement Inspector ContentSearchUtilities regular expression search (#25170) #26855

Closed
oneandonlydean wants to merge 1 commit from upstream-pr/26855 into main
oneandonlydean commented 2026-11-25 00:39:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-25T00:39:10Z.


What

Exact revert of #25170. Its new test fails on Linux on every run, so main is red on Linux:

nkwebkit_inspectorcontentsearchregex ... Subprocess aborted
Inspector content search regex check failed at line 283

Line 283 is the UTF-16 pattern check (u"中" counted in u"中中x中", expected 3). #25170's Linux job was skipped when it was checked, so the test only ever ran on Windows. The two exports go back to their NotImplemented_nid_no_patch stubs. The feature is welcome back once the test passes on Linux too.

Tested

  • On main fc54d18d8d (Linux, local full ctest): the test fails 5 of 5 runs at line 283.
  • Ruled out the only later ICU change: with #26469 reverted the test still fails, so the failure comes from #25170 itself.
  • git revert -m 1 of 685b72623b applies cleanly on current main; this PR's Linux and Windows checks run the rest of ctest.

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:5482848986 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26855). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-25T00:39:10Z. --- ### What Exact revert of #25170. Its new test fails on Linux on every run, so main is red on Linux: ``` nkwebkit_inspectorcontentsearchregex ... Subprocess aborted Inspector content search regex check failed at line 283 ``` Line 283 is the UTF-16 pattern check (`u"中"` counted in `u"中中x中"`, expected 3). #25170's Linux job was skipped when it was checked, so the test only ever ran on Windows. The two exports go back to their `NotImplemented_nid_no_patch` stubs. The feature is welcome back once the test passes on Linux too. ### Tested - On main fc54d18d8d (Linux, local full ctest): the test fails 5 of 5 runs at line 283. - Ruled out the only later ICU change: with #26469 reverted the test still fails, so the failure comes from #25170 itself. - `git revert -m 1` of 685b72623b applies cleanly on current main; this PR's Linux and Windows checks run the rest of ctest. ### 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-25 01:03:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T01:03:09Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this revert; the removed implementation and test are replaced by the existing unimplemented export stubs.

What I ran

Reviewed head 12dafcf0ac538d04daf0f304c547838306164c76. No commands or tests were run; I inspected the prepared diff and targeted source context using repo_read.py.

Results

Check Result Note
Diff and export declarations passed Revert restores the stubs
Tests not run No test output in the review bundle
Author-reported Linux failure not verified Description reports five failing runs

Findings

Blocking

None.

Non-blocking

None.

Not verified

The reported Linux failure and the claim that reverting ICU change #26469 does not resolve it were not independently reproduced. No build or test suite was run. Reviewed full text: core/libs/prx/libSceJsc/include/YarrRegularExpressionExports.hpp, core/libs/prx/libSceJsc/src/YarrRegularExpression.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, and core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp. Read the changed Export.cpp lines through repo_read.py; excluded by the review bundle: deleted files and the oversized file’s remaining text. All other files were not needed for this review.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6049958490 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26855#pullrequestreview-6049958490). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T01:03:09Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this revert; the removed implementation and test are replaced by the existing unimplemented export stubs. ## What I ran Reviewed head `12dafcf0ac538d04daf0f304c547838306164c76`. No commands or tests were run; I inspected the prepared diff and targeted source context using `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Diff and export declarations | passed | Revert restores the stubs | | Tests | not run | No test output in the review bundle | | Author-reported Linux failure | not verified | Description reports five failing runs | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The reported Linux failure and the claim that reverting ICU change #26469 does not resolve it were not independently reproduced. No build or test suite was run. Reviewed full text: `core/libs/prx/libSceJsc/include/YarrRegularExpressionExports.hpp`, `core/libs/prx/libSceJsc/src/YarrRegularExpression.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, and `core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp`. Read the changed `Export.cpp` lines through `repo_read.py`; excluded by the review bundle: deleted files and the oversized file’s remaining text. All other files were not needed for this review. ## To get this to a good state Nothing is required.
malekaifa commented 2026-11-25 01:40:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-11-25T01:40:43Z.

Review: CHANGES_REQUESTED


Blocking because this revert's motivating failure has already been fixed at the test layer in merged #26856.

I rechecked exact head 12dafcf0ac538d04daf0f304c547838306164c76 against current main. #26856 merged at 214d3c72d14b880a05f51ee9e4cb9ff6a46d7ae4 and fixes the lifetime bug in the inspector regex test strings without reverting the library implementation. That is the exact Linux failure this PR cites as the reason to remove #25170.

With #26856 in main, this branch is now DIRTY and its stated red-main justification is obsolete. Rebasing the revert would delete the two functional content-search exports, their regression coverage, and their debt accounting even though the failing test was corrected separately. I do not see a remaining defect here that justifies reverting the feature.

Please close this revert rather than rebase it. If a library implementation defect remains after #26856, it should be demonstrated independently against current main and fixed directly.

AI-assisted review: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6050294016 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26855#pullrequestreview-6050294016). Originally posted by [malekaifa](https://github.com/malekaifa) on 2026-11-25T01:40:43Z. **Review:** CHANGES_REQUESTED --- Blocking because this revert's motivating failure has already been fixed at the test layer in merged #26856. I rechecked exact head `12dafcf0ac538d04daf0f304c547838306164c76` against current `main`. #26856 merged at `214d3c72d14b880a05f51ee9e4cb9ff6a46d7ae4` and fixes the lifetime bug in the inspector regex test strings without reverting the library implementation. That is the exact Linux failure this PR cites as the reason to remove #25170. With #26856 in main, this branch is now DIRTY and its stated red-main justification is obsolete. Rebasing the revert would delete the two functional content-search exports, their regression coverage, and their debt accounting even though the failing test was corrected separately. I do not see a remaining defect here that justifies reverting the feature. Please close this revert rather than rebase it. If a library implementation defect remains after #26856, it should be demonstrated independently against current main and fixed directly. AI-assisted review: yes

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!26855
No description provided.