ci: warn about tests that take more than 30 s #1744

Merged
adriadam10 merged 1 commit from upstream-pr/1744 into main 2026-10-08 18:41:49 +00:00
adriadam10 commented 2026-10-08 18:19:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T18:19:12Z.


What

Adds a time limit for tests. CONTRIBUTING now says each test finishes in 30 s on the CI runners, counting the first run with no shader cache. CI reports every test over 30 s as a warning annotation on the pull request.

Since #1697, ctest runs with --parallel 4. A slow test competes for the 4 cores and passes or times out depending on the run: agc_driver_flat_store (#1715) and now agc_driver_buffer_format, which takes 78-117 s per run on Linux since #639 (0.6 s before) and timed out on #1701 and other PRs. ctest writes its output to ctest.log (--output-log), and a step that runs even when ctest fails takes each test's slowest run from it.

The 120 s --timeout is unchanged. Lowering it now would fail every run on the tests that are already slow. They get fixed separately.

Tested

Ran the awk step on a local ctest log of main (CI's lavapipe, --repeat until-fail:3 --parallel 4). It reports agc_driver_buffer_format 120.0 s, agc_driver_flat_store 120.1 s, agc_driver_global_vcc_base 72.2 s and agc_driver_sdwa_move_selectors 31.5 s, and nothing else. This PR changes build.yml, so both jobs run it here.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4791042778 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1744). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-08T18:19:12Z. --- ### What Adds a time limit for tests. CONTRIBUTING now says each test finishes in 30 s on the CI runners, counting the first run with no shader cache. CI reports every test over 30 s as a warning annotation on the pull request. Since #1697, ctest runs with `--parallel 4`. A slow test competes for the 4 cores and passes or times out depending on the run: `agc_driver_flat_store` (#1715) and now `agc_driver_buffer_format`, which takes 78-117 s per run on Linux since #639 (0.6 s before) and timed out on #1701 and other PRs. ctest writes its output to `ctest.log` (`--output-log`), and a step that runs even when ctest fails takes each test's slowest run from it. The 120 s `--timeout` is unchanged. Lowering it now would fail every run on the tests that are already slow. They get fixed separately. ### Tested Ran the awk step on a local ctest log of `main` (CI's lavapipe, `--repeat until-fail:3 --parallel 4`). It reports `agc_driver_buffer_format` 120.0 s, `agc_driver_flat_store` 120.1 s, `agc_driver_global_vcc_base` 72.2 s and `agc_driver_sdwa_move_selectors` 31.5 s, and nothing else. This PR changes `build.yml`, so both jobs run it here. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
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!1744
No description provided.