ci(sanitizers): skip the strict precise_wait bound in the hosted nightly #13325
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13325"
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-30T12:50:55Z.
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. The three runs contain no sanitizer report forprecise_wait, only the timing lines. The unsanitized Release runs of 18 October and 19 October on a hostedubuntu-latestrunner failed the same check at 111 us and 114 us, while the Linux job of the Build workflow, where the test passes, runs on the self-hosted runners. That points to the hosted runner rather than the instrumentation, though the two kinds of run were not measured in one job.PreciseWait.cppalready readsAPS5_SKIP_TIMING_TESTS(documented indocs/dev/ENVIRONMENT.md): when it is set, a median that still misses its bound after three attempts is skipped as on a busy runner. A sleep that returns before its requested duration still fails, and a median within the bound still passes. This sets the variable for the ctest step of the nightly workflow, one line in.github/workflows/sanitizers.yml; nothing is added to the known-failures list and no code changes. The Build workflow and local runs keep the 90 us bound. A sanitizer report in the test still fails it and is reported with its first report like any unlisted test, because the variable only changes the final timing check.This replaces #13250, which listed the test as a known failure and would have hidden such a report.
Tested
PreciseWait.cppcopied with its bound set to 5 us, so that the median check fails at once (Windows 10 Pro, MinGW-w64 GCC 15.2, Release; the file in the repository is unchanged): without the variable the test fails 3 of 3 runs withmedian overslept target bound; withAPS5_SKIP_TIMING_TESTS=1it passes 3 of 3 withSkipping strict median bound ... on busy runner; withAPS5_SKIP_TIMING_TESTS=0it fails 3 of 3. The unchanged test, run in 8 pairs, failed 1 of 8 times without the variable and 0 of 8 with it.envof the step that runs ctest.check_conventions --base upstream/mainpasses, andgit merge-treeagainstmainis clean.PreciseWait.cppwith its bound set to 5 us, in a plain build and in an ASan and UBSan build, fails in 5 of 6 runs without the variable (in the sixth the test's own busy-runner probe skipped the check) and passes in 6 of 6 runs withAPS5_SKIP_TIMING_TESTS=1, printingSkipping strict median bound ... on busy runner. In 12 alternating runs of an unchanged copy that prints its medians, the 50 us sleeps have a median of 50.1 to 50.7 us in both builds, with a highest value of 63 us, so the sanitizers add no measurable time there; the 111 to 120 us of the hosted runner did not appear on that machine.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 1425 open PRs from
git diff --name-onlyagainst its merge base: none changes.github/workflows/sanitizers.ymlorcore/libs/tests/PreciseWait.cpp. 91 changedocs/dev/ENVIRONMENT.md, which this PR does not touch, so no pair of this PR with another open PR can conflict on a file this PR changes. #13250 is the known-failures entry that this PR replaces.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 MarcZX10 on 2026-10-30T13:01:42Z.
Review: APPROVED
Reviewed — looks good
This workflow-only change scopes the timing-tolerance variable to the sanitizer test step, and the existing test still checks that sleeps never return early.
What I ran
Reviewed head
1ceceab40eece374967f44c7921a0b1dee37e68bagainst basef91137142eafd5df646fca6419a1fc4ef61b89d9; the merge preview was clean (tree1002ede91391c663d1453675b6cb9afeadc02c26). Environment: Debian 12 x86-64, Python 3.11.2, Git 2.39.5. I did not build or run C++ tests.Results
cteststep.PreciseWait.cppstill returns failure for sleeps shorter than requested; the variable only affects acceptance of an over-bound median after retries.0, and existing test runs; I did not independently run these C++ tests.Unedited local check output
Sources
Not verified
The hosted sanitizer workflow and C++ tests were not run locally. Hosted CI was still queued at the final refresh.