Repository navigation
test(agc): register the recorder's flag-scoped runs with ctest - #8445
Conversation
|
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.
|
5ee159b to
322eb1d
Compare
c0251e5 to
aba9a7e
Compare
adriadam10
left a comment
There was a problem hiding this comment.
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_tests flag runs and agc_driver_store_idle_results_tests --idle-epoch-wake are new coverage (no no-argument run reaches those branches) and look right: flags exist, SKIP_RETURN_CODE 77, timeout and the Windows PATH are in place.
aba9a7e to
9454ace
Compare
9454ace to
2020177
Compare
…sting run The agcTest loop already registers a no-argument ctest entry for every executable built from tests/execution/*.cpp, and the no-argument path of StencilRefExportUnused.cpp runs IndependentReference(false) and IndependentReference(true), which is what --case keep and --case invert run. A registration for either of them would only repeat an existing run.
|
You are right, and the duplication is gone. The What is left is the four runs that no no-argument entry reaches:
The PR body is corrected: it no longer claims the two stencil cases never ran, it states The six failing stencil cases stay out: they exit 1 on |
|
Checked the interdiff: the two stencil registrations are gone, the four remaining runs reach branches no no-argument entry covers (flags at |
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)