test(agc): isolate flat store execution #1717

Closed
Sanjaysrinivas wants to merge 1 commit from upstream-pr/1717 into main
Sanjaysrinivas commented 2026-10-08 17:34:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Sanjaysrinivas on 2026-10-08T17:34:37Z.


Superseded by merged #1715, which applies the same RUN_SERIAL property on main. Closing this duplicate draft; the successful CI evidence below remains applicable.

What

Run agc_driver_flat_store in isolation with CTest's RUN_SERIAL property. Other tests retain parallel scheduling. This follows the existing isolation of the expensive agc_driver_constant_store cases.

The full Linux check on #1690 compiled successfully but timed out in this unchanged GPU test after CI switched to --parallel 4 in #1697. Recorded timings show very little headroom for its first execution under the existing 120-second limit:

Run Scheduling First execution Later executions
#1690 before parallel CI Serial, three repetitions 73.10 s 6.93 s, 6.93 s
Main 7995d657 Four parallel tests, three repetitions 117.11 s 10.17 s, 8.12 s
#1690 at b8940e8d Four parallel tests, three repetitions Timeout at 120.09 s Not reached
This PR at 158ae1ff Four parallel tests; flat store runs in isolation 56.91 s 7.40 s, 7.38 s

The slow first execution and much faster repeats are consistent with cold software-GPU compilation, amplified by concurrent jobs. This is an inference from the timings, not a proven driver deadlock diagnosis. The failed log identifies llvmpipe LLVM 20.1.2 and reports waiting for a recorded GPU batch. The test and driver sources are unchanged between main 7995d657 and #1690's failed head.

The change reserves execution time for this test while keeping its byte assertions, all three dispatches (wave32, wave64, read-only), three CI repetitions, Vulkan requirement, and 120-second timeout. It changes test scheduling only.

Refs #1669. Separate from #1690's relinker work to keep one topic per PR. #1690 will include this prerequisite while its Linux check is validated.

Tested

  • Ubuntu 24.04/WSL2, GCC 13.3 Release, Mesa lavapipe 25.2.8, GALLIUM_OVERRIDE_CPU_CAPS=avx, Vulkan required: six existing flat-memory test programs, each repeated ten times under ctest --parallel 4 --timeout 30, passed (60 executions, 56.37 s total). This local baseline build has ANYPS5_ENABLE_SPIRV_TOOLS=OFF; it does not reproduce the CI's optimizer-enabled configuration or exact llvmpipe version.
  • GitHub CI at 158ae1ffb0b6769d7d837c07c26e00469bef1d06, Release, ctest --output-on-failure --timeout 120 --repeat until-fail:3 --parallel 4: Linux with SPIRV-Tools enabled reports zero failures out of 467 tests (capability-based skips retained); Windows reports zero failures out of 458. All applicable checks pass. The complete #1690 stack is validated separately.
  • python tools/check_conventions.py --base origin/main and git diff --check pass.

Checklist

  • Based on current main (17350cf5fd54ad5c79ee495ed8e8615f4663bbd6); no open PR implements this scheduling change
  • One topic per PR
  • No comments added to code
  • No investigation reports or new documentation files added to the repository
  • Generic test scheduling; no title-specific behavior
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4790559951 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1717). Originally posted by [Sanjaysrinivas](https://github.com/Sanjaysrinivas) on 2026-10-08T17:34:37Z. --- Superseded by merged #1715, which applies the same RUN_SERIAL property on main. Closing this duplicate draft; the successful CI evidence below remains applicable. ### What Run `agc_driver_flat_store` in isolation with CTest's [`RUN_SERIAL`](https://cmake.org/cmake/help/latest/prop_test/RUN_SERIAL.html) property. Other tests retain parallel scheduling. This follows the existing isolation of the expensive `agc_driver_constant_store` cases. The full Linux check on #1690 compiled successfully but timed out in this unchanged GPU test after CI switched to `--parallel 4` in #1697. Recorded timings show very little headroom for its first execution under the existing 120-second limit: | Run | Scheduling | First execution | Later executions | | --- | --- | --- | --- | | [#1690 before parallel CI](https://github.com/boykopovar/AnyPS5/actions/runs/37810493337/job/113426256115) | Serial, three repetitions | 73.10 s | 6.93 s, 6.93 s | | [Main `7995d657`](https://github.com/boykopovar/AnyPS5/actions/runs/37814041230/job/113438409178) | Four parallel tests, three repetitions | 117.11 s | 10.17 s, 8.12 s | | [#1690 at `b8940e8d`](https://github.com/boykopovar/AnyPS5/actions/runs/37815696616/job/113443681971) | Four parallel tests, three repetitions | Timeout at 120.09 s | Not reached | | [This PR at `158ae1ff`](https://github.com/boykopovar/AnyPS5/actions/runs/37817642461/job/113450299876) | Four parallel tests; flat store runs in isolation | 56.91 s | 7.40 s, 7.38 s | The slow first execution and much faster repeats are consistent with cold software-GPU compilation, amplified by concurrent jobs. This is an inference from the timings, not a proven driver deadlock diagnosis. The failed log identifies llvmpipe LLVM 20.1.2 and reports waiting for a recorded GPU batch. The test and driver sources are unchanged between main `7995d657` and #1690's failed head. The change reserves execution time for this test while keeping its byte assertions, all three dispatches (wave32, wave64, read-only), three CI repetitions, Vulkan requirement, and 120-second timeout. It changes test scheduling only. Refs #1669. Separate from #1690's relinker work to keep one topic per PR. #1690 will include this prerequisite while its Linux check is validated. ### Tested - Ubuntu 24.04/WSL2, GCC 13.3 Release, Mesa lavapipe 25.2.8, `GALLIUM_OVERRIDE_CPU_CAPS=avx`, Vulkan required: six existing flat-memory test programs, each repeated ten times under `ctest --parallel 4 --timeout 30`, passed (60 executions, 56.37 s total). This local baseline build has `ANYPS5_ENABLE_SPIRV_TOOLS=OFF`; it does not reproduce the CI's optimizer-enabled configuration or exact llvmpipe version. - GitHub CI at `158ae1ffb0b6769d7d837c07c26e00469bef1d06`, Release, `ctest --output-on-failure --timeout 120 --repeat until-fail:3 --parallel 4`: [Linux with SPIRV-Tools enabled](https://github.com/boykopovar/AnyPS5/actions/runs/37817642461/job/113450299876) reports zero failures out of 467 tests (capability-based skips retained); [Windows](https://github.com/boykopovar/AnyPS5/actions/runs/37817642461/job/113450299764) reports zero failures out of 458. All applicable checks pass. The complete #1690 stack is validated separately. - `python tools/check_conventions.py --base origin/main` and `git diff --check` pass. ### Checklist - [x] Based on current `main` (`17350cf5fd54ad5c79ee495ed8e8615f4663bbd6`); no open PR implements this scheduling change - [x] One topic per PR - [x] No comments added to code - [x] No investigation reports or new documentation files added to the repository - [x] Generic test scheduling; no title-specific behavior - [x] Depends on: none - [x] AI-assisted: yes

Pull request closed

Sign in to join this conversation.
No reviewers
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!1717
No description provided.