Skip to content

test(agc): give the pending-after-unwatch test 120 s under ASan - #16881

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
kaiffeetasse:contrib/asan-storage-pending-timeout
Nov 12, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
kaiffeetasse:contrib/asan-storage-pending-timeout

Conversation

@kaiffeetasse

@kaiffeetasse kaiffeetasse commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

What

Part of #16813 ("raise the two 30 s limits"): the address-undefined nightly job stops agc_storage_pending_after_unwatch at its 30 s ctest limit. Across the last five nightly jobs the test takes 22.6-30.2 s: 29.84 s (11-03), timeout at 30.15 s (11-04), 29.52 s (11-05), 22.60 s (11-06), timeout at 30.16 s (11-07). The test prints no sanitizer report; it is killed at the limit, so the nightly reports a timeout instead of a pass.

This gives that one test 120 s when ANYPS5_ENABLE_ASAN is on, the way agc_performance_overlay is set in agc_pad_status_overlay_tests.cmake:86-88 and agc_driver_recorder in #15441; a build without the sanitizer keeps 30 s. The sibling agc_driver_recorder limit is deliberately left to #15441.

File: core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake (+3).

Tested

A ctest property, not code: the timeout was checked in both configures, and the binary was built and run under ASan.

  • cmake -S . -B build-asan on 8f7c957ed0 with -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_ASAN=ON (Ubuntu, GCC): ctest --show-only=json-v1 reports TIMEOUT 120.0 for agc_storage_pending_after_unwatch and 30.0 for agc_driver_recorder.
  • A fresh configure of the same branch with -DANYPS5_ENABLE_ASAN=OFF reports TIMEOUT 30.0 for both.
  • Merged with test(agc): raise the driver recorder test limit only in ASan builds #15441's head 95f01f3601 (git merge-tree --write-tree): clean, and the merged file carries both timeouts.
  • python3 tools/check_conventions.py --base origin/main passes.
  • Built tests/agc_driver_recorder_tests in that ASan configure (931 targets, GCC 13.3) and ran ctest -R '^agc_storage_pending_after_unwatch$': passed in 12.20 s against the 120 s limit (i5-8500T, Intel UHD 630 iGPU, /dev/udmabuf not readable so the copy path ran). The nightly runners report 22.6-30.2 s for the same binary, so the limit now sits above the observed spread.
  • The durations are read from the nightly job logs: 41573880531 (job 125712822689), 41768893283 (126373686835), 41963336767 (127034561116), 42158260477 (127697483867), 42335320996 (128290831290).

Not tested: the two 30.15 s / 30.16 s nightly timeouts themselves were not reproduced here, since this machine runs the test faster (12.20 s); the next nightly run is the real check that the limit is no longer hit.

Overlap

python3 tools/pr_overlap.py --branch contrib/asan-storage-pending-timeout lists the open PRs that change this file; 15 of them already conflict with main, so it could not compare them and failed closed. I read the patch of each of those 15 for this file: none adds a timeout for agc_storage_pending_after_unwatch or touches an ANYPS5_ENABLE_ASAN block. #15441 adds 120 s for agc_driver_recorder at L352; the merge test above shows the two changes do not conflict.

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 (part of Sanitizers nightly: the five load-sensitive failures and the stable ngs2_filter abort (11-03 to 11-07 runs) #16813, which stays open for its other points)
  • Unblocks: none
  • GPUs tested: n/a (ctest limit only; no AGC, shader recompiler or VideoOut behaviour changed)
  • AI-assisted: yes

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6186 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 7642 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 9289 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 10193 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13251 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13809 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13863 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13920 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13928 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13929 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 15570 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 18075 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 18076 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 18082 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 18173 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 18369 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 18515 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake

@gabichuuuuu gabichuuuuu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read 441c7cacb6. The override sits right after the test's own set_tests_properties(... TIMEOUT 30) (agc_driver_recorder_tests.cmake:201-204), so under ANYPS5_ENABLE_ASAN the 120 s wins, and nothing later in the file sets TIMEOUT on it again (the following WIN32 block only sets ENVIRONMENT_MODIFICATION). Without ASan it stays at 30 s. With the nightly times in the description (22.6-30.2 s, two timeouts at 30.15 s), 120 s gives about 4x headroom, the same as agc_performance_overlay. Looks right.

AI-assisted: yes.

@adriadam10 adriadam10 self-assigned this Nov 11, 2026
@oneandonlydean
oneandonlydean merged commit 6d170ba into boykopovar:main Nov 12, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants