ci(sanitizers): list precise_wait as a known failure of the hosted runner #13250
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13250"
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 xXPBSXx on 2026-10-30T07:53:01Z.
What
The nightly Sanitizers workflow reports
precise_waitas a failed test in its runs of 28 October, 29 October and 30 October: the median of a 50 us sleep is 120 us, 117 us and 117 us against the test's bound of 90 us. Therelease.ymlworkflow already leaves this test out of its Linux run (commit20c425aabe); the Release runs of 18 October and 19 October, which are unsanitized builds on a hostedubuntu-latestrunner, failed the same 50 us check at 111 us and 114 us. The Build workflow's Linux job, where the test passes, runs on the self-hosted runners. The three nightly runs contain no sanitizer report forprecise_wait, only the timing lines.This adds one line for
precise_wait(address,undefined) to.github/sanitizer-known-failures.txt, so the sanitizer report lists it as a known failure of the hosted runner. It does not hide a fault of a library: the line names the runner effect. In the three runs the 50 us checks ofPreciseWait.cppend at a stable 117 to 120 us. Its "busy runner" skip, which needs a probe gap above 25 us or a spread above 1 ms, applied toPreciseSleepUs(50)on 29 and 30 October but not toPreciseSleepUntil(+50us), the check that fails. Should the test be adapted instead of listed here?Tested
python -m unittest tools.tests.test_sanitizer_reportpasses with the line (27 tests, 2 skipped) on Windows 10 (Python 3.12.10), and on Ubuntu 24.04 under WSL2 (a virtualised kernel, not bare-metal, Python 3.12.3) with an earlier wording of the line; only its reason text differs from this head (two heads back), and the WSL2 VM did not start for a re-run on this head. With the sanitizer name misspelled, or with the line twice,test_every_entry_parsesfails with aValueErrornaming the line, so the file is checked; after restoring it the tests pass again.precise_waitpasses 10 of 10 runs in an ASan build and 10 of 10 in a TSan build on that Ubuntu under WSL2 (setarch x86_64 -R).check_conventions --base upstream/mainpasses, andgit merge-treeagainstmainis clean.libSceAddressSanitizerbuild), and the plain and the sanitized build measured in one job on a hosted runner.Overlap
I took the changed files of each of the 1480 open PRs from
git diff --name-onlyagainst its merge base: four change.github/sanitizer-known-failures.txt,tools/sanitizer_report.py, its test orPreciseWait.cpp(#12483, #12493, #12872 and #13189), and none of them changes.github/sanitizer-known-failures.txtorPreciseWait.cpp.git merge-treeof this head with each of the four is clean, and so isgit merge-treeof each of them againstmainalone.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)AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-10-30T10:30:34Z.
Review: CHANGES_REQUESTED
The updated runner diagnosis is well supported, but I found a blocking policy issue with encoding this timing flake in sanitizer-known-failures.txt. sanitizer_report treats a known failure purely by test name, not by failure cause or whether a sanitizer report was captured. On current code, summarize('ASan', {'precise_wait':'failed'}, {'precise_wait':'hosted runner timing'}, {'precise_wait':'SUMMARY: AddressSanitizer: heap-buffer-overflow in PreciseWait'}) returns failing=False and prints only the Known failure table; the sanitizer report is omitted. So after this line lands, a future real ASan/UBSan defect inside precise_wait would make the nightly pass as a known hosted-runner timing failure. That directly confirms the masking risk oneandonlydean raised; clarifying that the current three runs contain no sanitizer report does not protect future runs. Please handle the hosted timing behavior at the test/workflow level instead (for example a sanitizer/hosted-runner-aware bound or skip), or change the reporting policy so a known test is still unexpected when a sanitizer report is present, with a regression for that distinction. The evidence that ubuntu-latest itself contributes to the current timing failure looks reasonable; my blocker is only the unsafe suppression mechanism.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-30T13:29:29Z.
Review: CHANGES_REQUESTED
Agree with @oneandonlydean and @malekaifa on the mechanism, and the runner diagnosis itself is well supported. Requested change:
.github/sanitizer-known-failures.txt:9:summarizeintools/sanitizer_report.py(lines 89-90) treats a known failure by test name only, so onceprecise_waitis listed a real ASan/UBSan report inside it would be printed as "Known failure: hosted runner timing" and the nightly would stay green. Please don't encode a timing flake there.PreciseWait.cppalready honoursAPS5_SKIP_TIMING_TESTS(lines 14-19), so set it in the nightly Sanitizers job's test step, or exclude it there withctest -E '^precise_wait$'asrelease.yml:90does, or give the sanitizer/hosted build a wider bound. Then the test is skipped, not listed, and any sanitizer report from it still fails the run.tools/sanitizer_report.py, which overlaps #12483, #12493, #12872 and #13189).Pull request closed