Sanitizers nightly: the test registration audit step fails in every run, and agc_graphics_profile_draw times out under ASan #16444

Closed
opened 2026-11-06 18:15:58 +00:00 by StepFPV · 0 comments
StepFPV commented 2026-11-06 18:15:58 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by StepFPV on 2026-11-06T18:15:58Z.


What happens

Two things in the address-undefined job of the Sanitizers workflow are red for reasons that are not in the code under test.

1. The "Check that every test executable is registered with ctest" step fails in every nightly run.

error: core/libs/prx/libSceAddressSanitizer/Export.cpp defines APS5_VABI functions but no target compiles it
1 library source(s) are never built: their exports are counted but never exported; list each in its library's add_library or target_sources
##[error]Process completed with exit code 1.

It is in the runs of 11-04, 11-05 and 11-06. core/libs/CMakeLists.txt skips libSceAddressSanitizer on purpose when ANYPS5_ENABLE_ASAN or ANYPS5_ENABLE_TSAN is on (e41323717a), so no target compiles its source in that job, and tools/check_test_registration.py does not know that.

2. agc_graphics_profile_draw is a timeout in the 11-06 run.

2037/4136 Test #1909: agc_graphics_profile_draw ... ***Timeout  60.19 sec

The test came with #11566 (merged 2026-11-05 11:04 UTC), so 11-06 is the first nightly that has it. It runs the whole agc_driver_graphics_tests binary with APS5_PROFILE_DRAW=1 and TIMEOUT 60. In the same run agc_driver_graphics takes 126.89 s and agc_driver_graphics_maps_fallback takes 133.36 s under ASan, and neither has an explicit timeout. On Windows in Release agc_graphics_profile_draw takes 17.6 s.

Proposed changes

  1. In tools/check_test_registration.py, read ANYPS5_ENABLE_ASAN and ANYPS5_ENABLE_TSAN from CMakeCache.txt and leave libSceAddressSanitizer out of the never-built check in a build where either is on. The check is unchanged in every other build.
  2. In core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_graphics_tests.cmake, raise the limit to 300 s when ANYPS5_ENABLE_ASAN is on, the way agc_performance_overlay already gets 120 s (#11555). 120 s would not be enough here, because the sibling tests need about 130 s on the runner.

What was checked

Ubuntu 26.04 container with the workflow's flags (GCC 15.2.0, -DANYPS5_ENABLE_ASAN=ON, -g1 -fsanitize=undefined -fno-sanitize=vptr, lavapipe, 4 CPUs), main 3de062b62d:

  • The audit exits 1 with the error above on main and exits 0 with change 1 (2078 test executables, every core/libs/prx source compiled). The change comes with four unit tests in tools/tests/test_test_registration.py that fail on main and pass with it.
  • agc_graphics_profile_draw is a timeout at 60.17 s on main and passes in 61.5 s with change 2. That is on an idle 4-CPU container, so the runner needs the larger margin.

Both changes are ready as small local branches. I have not opened pull requests, because the contributor limit allows one open pull request at a time and #15759 is still waiting for review.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6248191861 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/16444). Originally posted by [StepFPV](https://github.com/StepFPV) on 2026-11-06T18:15:58Z. --- ### What happens Two things in the `address-undefined` job of the Sanitizers workflow are red for reasons that are not in the code under test. **1. The "Check that every test executable is registered with ctest" step fails in every nightly run.** ``` error: core/libs/prx/libSceAddressSanitizer/Export.cpp defines APS5_VABI functions but no target compiles it 1 library source(s) are never built: their exports are counted but never exported; list each in its library's add_library or target_sources ##[error]Process completed with exit code 1. ``` It is in the runs of 11-04, 11-05 and 11-06. `core/libs/CMakeLists.txt` skips `libSceAddressSanitizer` on purpose when `ANYPS5_ENABLE_ASAN` or `ANYPS5_ENABLE_TSAN` is on (e41323717a), so no target compiles its source in that job, and `tools/check_test_registration.py` does not know that. **2. `agc_graphics_profile_draw` is a timeout in the 11-06 run.** ``` 2037/4136 Test #1909: agc_graphics_profile_draw ... ***Timeout 60.19 sec ``` The test came with #11566 (merged 2026-11-05 11:04 UTC), so 11-06 is the first nightly that has it. It runs the whole `agc_driver_graphics_tests` binary with `APS5_PROFILE_DRAW=1` and `TIMEOUT 60`. In the same run `agc_driver_graphics` takes 126.89 s and `agc_driver_graphics_maps_fallback` takes 133.36 s under ASan, and neither has an explicit timeout. On Windows in Release `agc_graphics_profile_draw` takes 17.6 s. ### Proposed changes 1. In `tools/check_test_registration.py`, read `ANYPS5_ENABLE_ASAN` and `ANYPS5_ENABLE_TSAN` from `CMakeCache.txt` and leave `libSceAddressSanitizer` out of the never-built check in a build where either is on. The check is unchanged in every other build. 2. In `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_graphics_tests.cmake`, raise the limit to 300 s when `ANYPS5_ENABLE_ASAN` is on, the way `agc_performance_overlay` already gets 120 s (#11555). 120 s would not be enough here, because the sibling tests need about 130 s on the runner. ### What was checked Ubuntu 26.04 container with the workflow's flags (GCC 15.2.0, `-DANYPS5_ENABLE_ASAN=ON`, `-g1 -fsanitize=undefined -fno-sanitize=vptr`, lavapipe, 4 CPUs), `main` `3de062b62d`: - The audit exits 1 with the error above on `main` and exits 0 with change 1 (2078 test executables, every `core/libs/prx` source compiled). The change comes with four unit tests in `tools/tests/test_test_registration.py` that fail on `main` and pass with it. - `agc_graphics_profile_draw` is a timeout at 60.17 s on `main` and passes in 61.5 s with change 2. That is on an idle 4-CPU container, so the runner needs the larger margin. Both changes are ready as small local branches. I have not opened pull requests, because the contributor limit allows one open pull request at a time and #15759 is still waiting for review. AI-assisted: yes
Sign in to join this conversation.
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#16444
No description provided.