ci(sanitizers): replace the fixed known failures with the current ones #15165

Merged
ljkx merged 2 commits from upstream-pr/15165 into main 2026-11-12 20:29:43 +00:00
ljkx commented 2026-11-02 19:37:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ljkx on 2026-11-02T19:37:37Z.


What

.github/sanitizer-known-failures.txt lists eight tests. The nightly Sanitizers run of 2026-11-11 (42954663888) passes six of them, whose fixes have merged (#11555, #9240, #11059, #11480; agc_driver_pm4 by #10973; guest_getrlimit now skips under ASan). This removes them.

agc_driver_graphics and agc_driver_graphics_maps_fallback still fail there, but no longer on CopyGuestBytes: they stop on the test's check that guest heap memory lies below 1 << 40 (guest heap memory is beyond the 40-bit PS4 GPU address space), because the ASan build maps the guest arena above 1 TiB (#16813). Their entries stay, with that reason and sanitizer address.

The seven entries an earlier revision added (agc_frame_limit, guest_np_common_runtime, guest_webrtc_vad, nkwebkit_wtf, pad_identify_*) pass in that run (#14438, #14995, #14996, #15003, #15927) and are not added.

Tested

Windows 11, Python 3.12: python3 -m unittest tools.tests.test_sanitizer_report passes, including RepositoryKnownFailuresTests. git diff --check against main is clean (LF line endings). python3 tools/sanitizer_report.py ctest.xml --known .github/sanitizer-known-failures.txt --sanitizer address --sanitizer undefined on the sanitizer-tests artifact of run 42954663888 reports 4823 tests: 3766 passed, 1042 skipped, 15 failed (2 known). and no entry under "Listed as known but passed". The other 13 failures of that run are not listed here; #16813 maps each to an open fix. No sanitizer build was run locally.

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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5126282150 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15165). Originally posted by [ljkx](https://github.com/ljkx) on 2026-11-02T19:37:37Z. --- ### What `.github/sanitizer-known-failures.txt` lists eight tests. The nightly Sanitizers run of 2026-11-11 ([42954663888](https://github.com/boykopovar/AnyPS5/actions/runs/42954663888)) passes six of them, whose fixes have merged (#11555, #9240, #11059, #11480; `agc_driver_pm4` by #10973; `guest_getrlimit` now skips under ASan). This removes them. `agc_driver_graphics` and `agc_driver_graphics_maps_fallback` still fail there, but no longer on `CopyGuestBytes`: they stop on the test's check that guest heap memory lies below 1 << 40 (`guest heap memory is beyond the 40-bit PS4 GPU address space`), because the ASan build maps the guest arena above 1 TiB (#16813). Their entries stay, with that reason and sanitizer `address`. The seven entries an earlier revision added (`agc_frame_limit`, `guest_np_common_runtime`, `guest_webrtc_vad`, `nkwebkit_wtf`, `pad_identify_*`) pass in that run (#14438, #14995, #14996, #15003, #15927) and are not added. ### Tested Windows 11, Python 3.12: `python3 -m unittest tools.tests.test_sanitizer_report` passes, including `RepositoryKnownFailuresTests`. `git diff --check` against `main` is clean (LF line endings). `python3 tools/sanitizer_report.py ctest.xml --known .github/sanitizer-known-failures.txt --sanitizer address --sanitizer undefined` on the `sanitizer-tests` artifact of run 42954663888 reports `4823 tests: 3766 passed, 1042 skipped, 15 failed (2 known).` and no entry under "Listed as known but passed". The other 13 failures of that run are not listed here; #16813 maps each to an open fix. No sanitizer build was run locally. ### 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 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-11-02 19:45:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T19:45:24Z.

Review: APPROVED


Reviewed — looks good

The replacement list matches the sanitizer reports: seven sanitizer failures are listed, while ngs2_filter remains a separate bit-exact failure.

What I ran

Reviewed exact head 08c1d42fb93b890a3fdd01bb093825b746ac7ab1 against base a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8; the isolated merge preview was clean. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. I did not build AnyPS5 or run a sanitizer build locally.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15165
python3 -m unittest tools.tests.test_sanitizer_report
git diff --check a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8...08c1d42fb93b890a3fdd01bb093825b746ac7ab1
gh run download 41384606155 -R boykopovar/AnyPS5 --name sanitizer-tests --dir /tmp/anyps5-sanitizer-41384606155
gh run download 41270298089 -R boykopovar/AnyPS5 --name sanitizer-tests --dir /tmp/anyps5-sanitizer-41270298089
gh run download 41165638390 -R boykopovar/AnyPS5 --name sanitizer-tests --dir /tmp/anyps5-sanitizer-41165638390
python3 tools/sanitizer_report.py /tmp/anyps5-sanitizer-41384606155/ctest.xml --known /tmp/anyps5-sanitizer-known-15165.txt --sanitizer address --sanitizer undefined

The last command uses the PR's exact allowlist extracted from head 08c1d42. I also ran the same report against the Oct 31 and Nov 1 artifacts using the allowlist from each run's own head.

Results

Check Result Note
Diff check failed The final added row has a CRLF terminator.
Conventions and template passed Exact head.
Sanitizer report unit tests passed 28 tests.
Nightly artifact reconciliation passed Seven new entries match; ngs2_filter is a separate failure.
Hosted build jobs not run Linux and Windows jobs were skipped for this file-only change.
Test-quality heuristic not run Its helper was absent from the isolated snapshot; it does not apply to this text-only change.
Commands and unedited output

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15165

/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15165-08c1d42fb93b/report.md
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15165-08c1d42fb93b/report.json
Conclusion: checks failed

Precheck output for the failed diff check:

.github/sanitizer-known-failures.txt:7: trailing whitespace.
+pad_identify_rumble address Heap use after free in SDL_GameControllerClose: the test's PadInput outlives SDL_QuitSubSystem, which has already freed its controller; #14438 destroys the pad input first.

The precheck's conventions command printed:

All conventions checks passed.

Its test-quality helper was absent in the isolated snapshot:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15165-08c1d42fb93b/head-08c1d42fb93b-156c0660/tools/pr_test_quality.py': [Errno 2] No such file or directory

python3 -m unittest tools.tests.test_sanitizer_report

............................
----------------------------------------------------------------------
Ran 28 tests in 0.380s

OK

Latest artifact summary (run 41384606155, head 926f7dd492b0b432d9287f4d6faaaf1c9d3c86c5):

3152 tests: 2334 passed, 810 skipped, 8 failed (7 known).
| `ngs2_filter` |
| `agc_frame_limit` | Runs past its 30 s ctest TIMEOUT in the sanitizer build (timed out at 30.06 s); without sanitizers it takes about 1 s. Every check builds its failure message before checking, and each of those allocations is instrumented; #14995 builds the message only when a check fails. |
| `guest_np_common_runtime` | UBSan stops at Strings.cpp:670 (libSceNpCommon), where sceNpUtilParseJid passes the null data() of an empty JID piece to memcpy with size 0; #14996 copies the pieces with std::copy. |
| `guest_webrtc_vad` | The bundled libfvad left-shifts a negative value (3rdparty/libfvad/src/signal_processing/resample_by_2_internal.c:141); upstream libfvad has the same code. |
| `nkwebkit_wtf` | The test expects null from WTF::tryFastMalloc for an impossible size, but the ASan allocator aborts with allocation-size-too-big (libSceNKWebKit/src/Bmalloc.cpp:34) because allocator_may_return_null is 0; #15003 sets it for this test. |
| `pad_identify_connect` | Heap use after free in SDL_GameControllerClose: the test's PadInput outlives SDL_QuitSubSystem, which has already freed its controller; #14438 destroys the pad input first. |
| `pad_identify_off` | Heap use after free in SDL_GameControllerClose: the test's PadInput outlives SDL_QuitSubSystem, which has already freed its controller; #14438 destroys the pad input first. |
| `pad_identify_rumble` | Heap use after free in SDL_GameControllerClose: the test's PadInput outlives SDL_QuitSubSystem, which has already freed its controller; #14438 destroys the pad input first. |

The Nov 1 and Oct 31 reports each listed the previous eight entries as “Listed as known but passed.” The Nov 2 raw ctest.log says NGS2 check failed at line 235 for ngs2_filter, with no sanitizer diagnostic for that test.

Negative control: remove only guest_webrtc_vad from a temporary copy of the allowlist, then run the same reporter on the Nov 2 artifact:

3152 tests: 2334 passed, 810 skipped, 8 failed (6 known).
| `guest_webrtc_vad` | /home/runner/work/AnyPS5/AnyPS5/3rdparty/libfvad/src/signal_processing/resample_by_2_internal.c:141:37: runtime error: left shift of negative value -32490 |

Hosted checks on the PR head:

edge-watch	skipping
linux	skipping
register-context	skipping
relinker	skipping
relinker-asan	skipping
windows	skipping
write-watch	skipping
conventions	pass
eligibility	pass
intake	pass
labels	pass

Negative control

Assertion Change made Outcome
Each listed sanitizer failure is classified as known. Removed guest_webrtc_vad from a temporary allowlist copy. The report surfaced it as an unlisted sanitizer failure, as expected.

Findings

Blocking

None found.

Non-blocking

The precheck flags the final added row's CRLF terminator as trailing whitespace. Normalizing that row to LF would make git diff --check clean; it does not change the report's classification.

Sources

Not verified

I did not run a local ASan/UBSan build or console tests. The scheduled sanitizer evidence is from the linked Ubuntu GitHub Actions runs. All PR build jobs were skipped for this change.

To get this to a good state

No behavior change is requested. If the final line ending is normalized, I will rerun git diff --check, the sanitizer report unit tests, and the artifact-to-allowlist comparison on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5742373473 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15165#pullrequestreview-5742373473). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T19:45:24Z. **Review:** APPROVED --- # Reviewed — looks good The replacement list matches the sanitizer reports: seven sanitizer failures are listed, while `ngs2_filter` remains a separate bit-exact failure. ## What I ran Reviewed exact head `08c1d42fb93b890a3fdd01bb093825b746ac7ab1` against base `a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8`; the isolated merge preview was clean. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. I did not build AnyPS5 or run a sanitizer build locally. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15165 python3 -m unittest tools.tests.test_sanitizer_report git diff --check a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8...08c1d42fb93b890a3fdd01bb093825b746ac7ab1 gh run download 41384606155 -R boykopovar/AnyPS5 --name sanitizer-tests --dir /tmp/anyps5-sanitizer-41384606155 gh run download 41270298089 -R boykopovar/AnyPS5 --name sanitizer-tests --dir /tmp/anyps5-sanitizer-41270298089 gh run download 41165638390 -R boykopovar/AnyPS5 --name sanitizer-tests --dir /tmp/anyps5-sanitizer-41165638390 python3 tools/sanitizer_report.py /tmp/anyps5-sanitizer-41384606155/ctest.xml --known /tmp/anyps5-sanitizer-known-15165.txt --sanitizer address --sanitizer undefined ``` The last command uses the PR's exact allowlist extracted from head `08c1d42`. I also ran the same report against the Oct 31 and Nov 1 artifacts using the allowlist from each run's own head. ## Results | Check | Result | Note | |---|---|---| | Diff check | failed | The final added row has a CRLF terminator. | | Conventions and template | passed | Exact head. | | Sanitizer report unit tests | passed | 28 tests. | | Nightly artifact reconciliation | passed | Seven new entries match; `ngs2_filter` is a separate failure. | | Hosted build jobs | not run | Linux and Windows jobs were skipped for this file-only change. | | Test-quality heuristic | not run | Its helper was absent from the isolated snapshot; it does not apply to this text-only change. | <details><summary>Commands and unedited output</summary> `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15165` ```text /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15165-08c1d42fb93b/report.md /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15165-08c1d42fb93b/report.json Conclusion: checks failed ``` Precheck output for the failed diff check: ```text .github/sanitizer-known-failures.txt:7: trailing whitespace. +pad_identify_rumble address Heap use after free in SDL_GameControllerClose: the test's PadInput outlives SDL_QuitSubSystem, which has already freed its controller; #14438 destroys the pad input first. ``` The precheck's conventions command printed: ```text All conventions checks passed. ``` Its test-quality helper was absent in the isolated snapshot: ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15165-08c1d42fb93b/head-08c1d42fb93b-156c0660/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` `python3 -m unittest tools.tests.test_sanitizer_report` ```text ............................ ---------------------------------------------------------------------- Ran 28 tests in 0.380s OK ``` Latest artifact summary (run `41384606155`, head `926f7dd492b0b432d9287f4d6faaaf1c9d3c86c5`): ```text 3152 tests: 2334 passed, 810 skipped, 8 failed (7 known). | `ngs2_filter` | | `agc_frame_limit` | Runs past its 30 s ctest TIMEOUT in the sanitizer build (timed out at 30.06 s); without sanitizers it takes about 1 s. Every check builds its failure message before checking, and each of those allocations is instrumented; #14995 builds the message only when a check fails. | | `guest_np_common_runtime` | UBSan stops at Strings.cpp:670 (libSceNpCommon), where sceNpUtilParseJid passes the null data() of an empty JID piece to memcpy with size 0; #14996 copies the pieces with std::copy. | | `guest_webrtc_vad` | The bundled libfvad left-shifts a negative value (3rdparty/libfvad/src/signal_processing/resample_by_2_internal.c:141); upstream libfvad has the same code. | | `nkwebkit_wtf` | The test expects null from WTF::tryFastMalloc for an impossible size, but the ASan allocator aborts with allocation-size-too-big (libSceNKWebKit/src/Bmalloc.cpp:34) because allocator_may_return_null is 0; #15003 sets it for this test. | | `pad_identify_connect` | Heap use after free in SDL_GameControllerClose: the test's PadInput outlives SDL_QuitSubSystem, which has already freed its controller; #14438 destroys the pad input first. | | `pad_identify_off` | Heap use after free in SDL_GameControllerClose: the test's PadInput outlives SDL_QuitSubSystem, which has already freed its controller; #14438 destroys the pad input first. | | `pad_identify_rumble` | Heap use after free in SDL_GameControllerClose: the test's PadInput outlives SDL_QuitSubSystem, which has already freed its controller; #14438 destroys the pad input first. | ``` The Nov 1 and Oct 31 reports each listed the previous eight entries as “Listed as known but passed.” The Nov 2 raw `ctest.log` says `NGS2 check failed at line 235` for `ngs2_filter`, with no sanitizer diagnostic for that test. Negative control: remove only `guest_webrtc_vad` from a temporary copy of the allowlist, then run the same reporter on the Nov 2 artifact: ```text 3152 tests: 2334 passed, 810 skipped, 8 failed (6 known). | `guest_webrtc_vad` | /home/runner/work/AnyPS5/AnyPS5/3rdparty/libfvad/src/signal_processing/resample_by_2_internal.c:141:37: runtime error: left shift of negative value -32490 | ``` Hosted checks on the PR head: ```text edge-watch skipping linux skipping register-context skipping relinker skipping relinker-asan skipping windows skipping write-watch skipping conventions pass eligibility pass intake pass labels pass ``` </details> ## Negative control | Assertion | Change made | Outcome | |---|---|---| | Each listed sanitizer failure is classified as known. | Removed `guest_webrtc_vad` from a temporary allowlist copy. | The report surfaced it as an unlisted sanitizer failure, as expected. | ## Findings ### Blocking None found. ### Non-blocking The precheck flags the final added row's CRLF terminator as trailing whitespace. Normalizing that row to LF would make `git diff --check` clean; it does not change the report's classification. ## Sources - [Allowlist at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/08c1d42fb93b890a3fdd01bb093825b746ac7ab1/.github/sanitizer-known-failures.txt#L1-L7) - [Nov 2 sanitizer run, head `926f7dd492b0b432d9287f4d6faaaf1c9d3c86c5`](https://github.com/boykopovar/AnyPS5/actions/runs/41384606155) - [Nov 1 sanitizer run, head `5d3ad2112f60f35d463dc2c9d96d1c9d35871015`](https://github.com/boykopovar/AnyPS5/actions/runs/41270298089) - [Oct 31 sanitizer run, head `de824c2919ca65086c6324a1e0388866a7327eea`](https://github.com/boykopovar/AnyPS5/actions/runs/41165638390) - [Sanitizer report classifier at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8/tools/sanitizer_report.py) ## Not verified I did not run a local ASan/UBSan build or console tests. The scheduled sanitizer evidence is from the linked Ubuntu GitHub Actions runs. All PR build jobs were skipped for this change. ## To get this to a good state No behavior change is requested. If the final line ending is normalized, I will rerun `git diff --check`, the sanitizer report unit tests, and the artifact-to-allowlist comparison on the new head.
mashingaan commented 2026-11-02 20:33:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mashingaan on 2026-11-02T20:33:04Z.

Review: APPROVED


Reviewed head 08c1d42fb9. The replacement list distinguishes the seven reported sanitizer failures from the separate bit-exact ngs2_filter failure, removes eight resolved or skipped cases, and keeps reasons tied to fixes or upstream behavior. The exact-head Hosted CI conventions, intake and labels checks pass. A separate review records comparison with the three nightly sanitizer reports and the focused report test.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5742930871 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15165#pullrequestreview-5742930871). Originally posted by [mashingaan](https://github.com/mashingaan) on 2026-11-02T20:33:04Z. **Review:** APPROVED --- Reviewed head 08c1d42fb93b890a3fdd01bb093825b746ac7ab1. The replacement list distinguishes the seven reported sanitizer failures from the separate bit-exact ngs2_filter failure, removes eight resolved or skipped cases, and keeps reasons tied to fixes or upstream behavior. The exact-head Hosted CI conventions, intake and labels checks pass. A separate review records comparison with the three nightly sanitizer reports and the focused report test.
mashingaan commented 2026-11-02 20:33:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mashingaan on 2026-11-02T20:33:16Z.

Review: DISMISSED


Correction to my earlier approval: the independent exact-head review reports that git diff --check fails because the final added row in .github/sanitizer-known-failures.txt has a CRLF terminator. Please normalize that row to LF. My earlier approval missed this whitespace failure.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5742933508 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15165#pullrequestreview-5742933508). Originally posted by [mashingaan](https://github.com/mashingaan) on 2026-11-02T20:33:16Z. **Review:** DISMISSED --- Correction to my earlier approval: the independent exact-head review reports that git diff --check fails because the final added row in .github/sanitizer-known-failures.txt has a CRLF terminator. Please normalize that row to LF. My earlier approval missed this whitespace failure.
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!15165
No description provided.