test(agc): register the recorder's flag-scoped runs with ctest #8445
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8445"
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 juanpimg on 2026-10-20T12:43:41Z.
What
Registers the
agc_driver_recorder_testsflag-scoped runs that no ctest entry reached, plusagc_driver_store_idle_results_tests --idle-epoch-wake.agc_driver_recorder_testsimplements--completion-labels-only,--cmask-onlyand--cube-only, and every ctest entry of that executable was flag-scoped, so the code behind those three modes never ran in CI:completionCountTests,afterRecordedWorkTests,directCompletionLabelTests,labelTests,lateLabelTests,largeLabelTests,cmaskPassTestsandsingleCubeTestswere all dead.agc_driver_store_idle_results_tests --idle-epoch-wakenever took the wake branch.This is the remaining open item of issue #1532, whose last update records that the two sections it once reported as failing are resolved on
mainby #3103 and #3226. The no-argument full run and the two benchmark modes are left out: the full run is about forty test groups on a live device, and the benchmarks add runtime without coverage.Tested
CachyOS Linux, kernel 7.2.9-2-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build,
BUILD_TESTING=ON.Every mode was run directly on both devices before it was registered:
agc_driver_recorder_tests --completion-labels-onlyagc_driver_recorder_tests --cmask-onlyagc_driver_recorder_tests --cube-onlyagc_driver_store_idle_results_tests --idle-epoch-wakeThe focused tests were then run on
mainand on the change from the same machine and GPU withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, usingctest --test-dir build -R "agc_recorder|agc_driver_store_idle_results" -V:main7 passed, change 11 passed.VUID-errors: 0 before, 0 after.main7 passed, change 11 passed.VUID-errors: 0 before, 0 after.The four new tests run in 0.13 s to 0.36 s under the validation layer, well inside the 30 s budget.
cmake --build build --parallel, no error.ctest --test-dir build --output-on-failure -j4: 1699 of 1700 pass.guest_sysmodulefails identically onorigin/main, so it is a pre-existing failure and not a regression.python3 tools/check_conventions.py --base origin/main: all conventions checks passed.python3 tools/check_test_registration.py build: 1124 test executables, none unregistered.GPUs: NVIDIA GeForce RTX 4060 Laptop GPU, driver 615.78.08, CachyOS Linux 7.2.9-2-cachyos; Intel Iris Xe Graphics, Mesa 26.2.4 ANV, CachyOS Linux 7.2.9-2-cachyos.
No title was run: the contributor has no PS5 and no game dumps.
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)Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-21T17:46:05Z.
Review: CHANGES_REQUESTED
Thanks for measuring every mode. One point to fix:
core/libs/prx/libSceAgcDriver/CMakeLists.txt:2038-2041:agc_driver_stencil_ref_export_unused_keepand_invertare already covered. TheagcTestloop atCMakeLists.txt:2273registers a no-argument ctest entry for every executable built fromtests/execution/*.cpp, and the no-argument path ofStencilRefExportUnused.cpp:241-244runsIndependentReference(false)andIndependentReference(true), which is what--case keepand--case invertrun. SoDependentReference()was never the only thing missing there, and these two entries only duplicate a run. Please drop them (and theirWIN32PATHline) and correct the PR body, which says those cases never ran.The three
agc_driver_recorder_testsflag runs andagc_driver_store_idle_results_tests --idle-epoch-wakeare new coverage (no no-argument run reaches those branches) and look right: flags exist,SKIP_RETURN_CODE 77, timeout and the WindowsPATHare in place.Imported from boykopovar/AnyPS5. Originally posted by juanpimg on 2026-10-21T20:19:37Z.
You are right, and the duplication is gone.
The
agcTestloop already registers a no-argument entry for every executable built fromtests/execution/*.cpp, and the no-argument path ofStencilRefExportUnused.cpprunsIndependentReference(false)andIndependentReference(true), which is what--case keepand
--case invertrun. Both registrations only repeated that entry, so they and theirWIN32PATHline are dropped.What is left is the four runs that no no-argument entry reaches:
agc_driver_recorder_tests --completion-labels-onlyagc_driver_recorder_tests --cmask-onlyagc_driver_recorder_tests --cube-onlyagc_driver_store_idle_results_tests --idle-epoch-wakeThe PR body is corrected: it no longer claims the two stencil cases never ran, it states
that the no-argument entry already covers them, and the comparison against
mainwasmeasured again with the four registrations in place, so the counts read
main7 passed andchange 11 passed on both the NVIDIA and the Intel device, with 0
VUID-errors before andafter and no "was not found but was requested by env var VK_INSTANCE_LAYERS" in either log.
The six failing stencil cases stay out: they exit 1 on
mainwith "a dependent referencewithout native stencil export was admitted", on both devices, so registering them would put
a red job in CI. The driver is untouched. That failure is still worth a decision of its
own, and the details are in the comment I left on issue #4276.