test(libSceLibreSsl): model error queue interleavings #12774

Merged
StoneDC merged 1 commit from upstream-pr/12774 into main 2026-11-05 11:05:58 +00:00
StoneDC commented 2026-10-29 08:41:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by StoneDC on 2026-10-29T08:41:16Z.


What

Adds a bounded deque model for error push/get/peek/clear and overflow, repeated wraparound and three simultaneously live threads. Each thread executes 12,000 deterministic operations and verifies its own marker across a barrier.

Implementation basis and limits: the canonical current Error.hpp injector and public ERR_* exports, existing 15-entry retained capacity/field masks, and the OpenSSL 1.0.2 error-queue model: https://github.com/openssl/openssl/blob/OpenSSL_1_0_2u/crypto/err/err.c . The oracle uses a deque rather than ring-buffer indices. It excludes file/line metadata additions and non-null thread-ID behavior and makes no new PS5 private-layout assertion.

Integration review: the exact topic head was checked with the repository overlap tool against main 10bec5c322eb581b3e959e6c7e18bcf09e068e96. The tool reported shared CMake registration files in older PRs that already conflict with main: #9446, #9448, #9571, #10448, #10450, #10477, #10478, #10481, #10482, #10483, #10485, #10486, #10488, #10508, #10571, #10834, #10878, #10915, #11003, #11128, #11129, #11138, #11143, #11146, #11151, #11175, #11176, #11359, #11466. Their scoped file diffs were reviewed separately. 15 file comparisons could be projected onto the audit base and then combined with this topic without a new file conflict. 14 peer file changes already conflict with main and are not described as automatically mergeable; their registration changes were inspected directly. These peers do not provide this feature or test matrix. This uses a separate test/registration block and has no functional landing-order dependency. If a shared registration file changes before landing, this branch will need its affected merge and test checks refreshed. All 20 topic commits also merged independently into current validation main 4c7d275bef89d309313d16bc2bc05d37a1b50be2; their combined integration 2a0489dd307a9c98b9b353ea7282b65809db07dd was built and tested. Depends on: none; no other candidate branch is required to build or exercise this change.

Tested

guest_libre_ssl_error_model passed on actual Linux and Windows libraries, no skips. A real Error.cpp mutation returning the newest entry instead of the oldest was caught by the test.

Topic head: a84c9168d93f872f9a0c319c9d9a1da63a92aa77, based on f88c86bf6cdd2c74bcdb31e45ba877d4993e62e5. Local platforms: Ubuntu/WSL GCC 15.2, CMake 4.2.3, Python 3.14.4; Windows MinGW GCC 15.2, CMake 4.3.1, Python 3.14.3. Applicable conventions, whitespace, script registration and current-main three-way merge checks passed. Linux full-product builds and subsequent focused library rebuilds were performed; Windows used the full configuration and the affected library/test targets. The combined 11 system-library CTests passed on both platforms. No game or PS5 measurement is claimed; macOS and hosted full-build CI are not reported as 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
  • 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:5064939457 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12774). Originally posted by [StoneDC](https://github.com/StoneDC) on 2026-10-29T08:41:16Z. --- ### What Adds a bounded deque model for error push/get/peek/clear and overflow, repeated wraparound and three simultaneously live threads. Each thread executes 12,000 deterministic operations and verifies its own marker across a barrier. Implementation basis and limits: the canonical current Error.hpp injector and public ERR_* exports, existing 15-entry retained capacity/field masks, and the OpenSSL 1.0.2 error-queue model: https://github.com/openssl/openssl/blob/OpenSSL_1_0_2u/crypto/err/err.c . The oracle uses a deque rather than ring-buffer indices. It excludes file/line metadata additions and non-null thread-ID behavior and makes no new PS5 private-layout assertion. Integration review: the exact topic head was checked with the repository overlap tool against main `10bec5c322eb581b3e959e6c7e18bcf09e068e96`. The tool reported shared CMake registration files in older PRs that already conflict with main: #9446, #9448, #9571, #10448, #10450, #10477, #10478, #10481, #10482, #10483, #10485, #10486, #10488, #10508, #10571, #10834, #10878, #10915, #11003, #11128, #11129, #11138, #11143, #11146, #11151, #11175, #11176, #11359, #11466. Their scoped file diffs were reviewed separately. 15 file comparisons could be projected onto the audit base and then combined with this topic without a new file conflict. 14 peer file changes already conflict with main and are not described as automatically mergeable; their registration changes were inspected directly. These peers do not provide this feature or test matrix. This uses a separate test/registration block and has no functional landing-order dependency. If a shared registration file changes before landing, this branch will need its affected merge and test checks refreshed. All 20 topic commits also merged independently into current validation main `4c7d275bef89d309313d16bc2bc05d37a1b50be2`; their combined integration `2a0489dd307a9c98b9b353ea7282b65809db07dd` was built and tested. Depends on: none; no other candidate branch is required to build or exercise this change. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> guest_libre_ssl_error_model passed on actual Linux and Windows libraries, no skips. A real Error.cpp mutation returning the newest entry instead of the oldest was caught by the test. Topic head: `a84c9168d93f872f9a0c319c9d9a1da63a92aa77`, based on `f88c86bf6cdd2c74bcdb31e45ba877d4993e62e5`. Local platforms: Ubuntu/WSL GCC 15.2, CMake 4.2.3, Python 3.14.4; Windows MinGW GCC 15.2, CMake 4.3.1, Python 3.14.3. Applicable conventions, whitespace, script registration and current-main three-way merge checks passed. Linux full-product builds and subsequent focused library rebuilds were performed; Windows used the full configuration and the affected library/test targets. The combined 11 system-library CTests passed on both platforms. No game or PS5 measurement is claimed; macOS and hosted full-build CI are not reported as passed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> n/a - [x] AI-assisted: <!-- yes / no --> yes
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!12774
No description provided.