ci: fail when a test skips that the job's device is not expected to skip #1028

Merged
Dextroid17 merged 2 commits from upstream-pr/1028 into main 2026-10-09 22:33:16 +00:00
Dextroid17 commented 2026-10-07 01:53:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-07T01:53:11Z.


What

Closes #1012.

The hole

Both jobs report a full pass while a large part of the suite does not run:

job reported actually skipped ran
linux 100% tests passed out of 371 20 351
windows 100% tests passed, 0 tests failed out of 368 143 225

On Linux the 20 are agc_driver execution tests that need a wave wider than llvmpipe's subgroup size 8. On Windows it is 143 of the 147 GPU execution tests: the runner has no Vulkan driver, ANYPS5_REQUIRE_VULKAN is not set on that job, so they exit 77 and ctest counts a skip as a pass.

A test that exits 77 is reported ***Skipped and ctest still exits 0, so a change that makes one more test device-dependent loses its coverage silently while both jobs stay green.

What this does

tools/check_skips.py reads the file ctest writes with --output-junit and fails when a test skips that is not expected:

  • linux: any test that reports the device limitation it needs — the narrow-subgroup agc_driver tests measured on the CI device, plus agc_driver_conservative_rasterization, which reports the device has no VK_EXT_conservative_rasterization;
  • windows: any agc test, because the runner has no Vulkan driver at all — agc_driver, the agc_driver_* execution tests and agc_shader_*; a skip of anything else fails.

An expected skip that no longer happens is a note:, not a failure, so the sets stay current as the images change (a device gaining coverage must not break CI).

Both jobs now pass --output-junit and run the check after ctest:

      - run: ctest --test-dir build --output-on-failure --timeout 120 --repeat until-fail:3 --output-junit ctest.xml
        env:
          ANYPS5_REQUIRE_VULKAN: 1
          GALLIUM_OVERRIDE_CPU_CAPS: avx
      - run: python3 tools/check_skips.py build/ctest.xml
      - shell: cmd
        run: ctest --test-dir build --output-on-failure --timeout 120 --repeat until-fail:3 --output-junit ctest.xml
      - run: python tools/check_skips.py build/ctest.xml --job windows

The JUnit file is the reason for the shape: it needs no redirection, so the console output stays visible and no pipe can turn a failing ctest into a passing step. (python on the Windows job, which is what the release workflow already uses there; python3 on Linux.)

Notes for review

  • --output-junit needs CMake 3.21 or newer. Both runners are well past that, and the file is ~240 KB.
  • The Windows job's ANYPS5_REQUIRE_VULKAN is deliberately left unset: setting it would turn those 143 skips into failures with no driver installed. This change makes the situation visible rather than changing it.
  • Worth knowing, and it rules out the tempting shortcut: LP_NATIVE_VECTOR_WIDTH=1024 makes llvmpipe report subgroup 32, so those 20 Linux tests run — but they then fail on a wrong lane value (lane 16 result 0 is 3038057749, expected 2768569605), while a real subgroup-32 GPU passes them. The skip is a driver limitation, so the guard is the right answer rather than a device change.
  • tools/check_skips.py --list prints what a file contains, for updating a set.

AI-assisted: yes.

Tested

Run here with the CI command and the CI device (llvmpipe (LLVM 23.1.1, 256 bits) subgroup=8, ANYPS5_REQUIRE_VULKAN=1, GALLIUM_OVERRIDE_CPU_CAPS=avx):

case result
the Linux skip that first failed CI, agc_driver_conservative_rasterization (no VK_EXT_conservative_rasterization) 1 test(s) skipped, all expected — exit 0
a narrow-subgroup skip, agc_driver_look_back_scan 1 test(s) skipped, all expected — exit 0
a skip whose reason is not a device limitation error: … skipped — exit 1
the three Windows names CI reports, agc_driver, agc_shader_fusion, agc_driver_foo, with --job windows 3 test(s) skipped, all expected — exit 0
the same file plus one non-agc skip error: … skipped — exit 1

The Windows case is exercised against a file built from that job's own log, which is why the rule is a prefix and not a list — a new GPU test should not fail that job. The Linux rule is a reason match rather than a name list: the first CI run of this branch failed on agc_driver_conservative_rasterization (run 37820232450), which skips because the device lacks VK_EXT_conservative_rasterization, not because of its subgroups — the rule now accepts either.

Verified locally today on the rebased head, with the CI command and the CI device:

  • the guard, run against a real build/ctest.xml from ctest --test-dir build --output-junit ctest.xml: 0 test(s) skipped, all expected — exit 0;
  • one skipped test whose message does not report narrow subgroups: error: guest_foo skipped ... the job lost that coverage and ctest still reports every test as passed — exit 1;
  • --job windows with an agc_driver_* skip: exit 0; with a non-agc_driver skip: exit 1;
  • --list prints the skipped test and its reason.
  • the file is written at build/ctest.xml, which is the path both guard calls read (an --output-junit path resolves against --test-dir).

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:4766868169 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-07T01:53:11Z. --- ### What Closes #1012. #### The hole Both jobs report a full pass while a large part of the suite does not run: | job | reported | actually skipped | ran | | --- | --- | --- | --- | | linux | `100% tests passed out of 371` | **20** | 351 | | windows | `100% tests passed, 0 tests failed out of 368` | **143** | 225 | On Linux the 20 are `agc_driver` execution tests that need a wave wider than llvmpipe's subgroup size 8. On Windows it is **143 of the 147** GPU execution tests: the runner has no Vulkan driver, `ANYPS5_REQUIRE_VULKAN` is not set on that job, so they exit 77 and ctest counts a skip as a pass. A test that exits 77 is reported `***Skipped` and **ctest still exits 0**, so a change that makes one more test device-dependent loses its coverage silently while both jobs stay green. #### What this does `tools/check_skips.py` reads the file ctest writes with `--output-junit` and fails when a test skips that is not expected: - **linux**: any test that reports the device limitation it needs — the narrow-subgroup `agc_driver` tests measured on the CI device, plus `agc_driver_conservative_rasterization`, which reports the device has no `VK_EXT_conservative_rasterization`; - **windows**: any `agc` test, because the runner has no Vulkan driver at all — `agc_driver`, the `agc_driver_*` execution tests and `agc_shader_*`; a skip of anything else fails. An expected skip that no longer happens is a `note:`, not a failure, so the sets stay current as the images change (a device gaining coverage must not break CI). Both jobs now pass `--output-junit` and run the check after ctest: ```yaml - run: ctest --test-dir build --output-on-failure --timeout 120 --repeat until-fail:3 --output-junit ctest.xml env: ANYPS5_REQUIRE_VULKAN: 1 GALLIUM_OVERRIDE_CPU_CAPS: avx - run: python3 tools/check_skips.py build/ctest.xml ``` ```yaml - shell: cmd run: ctest --test-dir build --output-on-failure --timeout 120 --repeat until-fail:3 --output-junit ctest.xml - run: python tools/check_skips.py build/ctest.xml --job windows ``` The JUnit file is the reason for the shape: it needs no redirection, so the console output stays visible and no pipe can turn a failing ctest into a passing step. (`python` on the Windows job, which is what the release workflow already uses there; `python3` on Linux.) #### Notes for review - `--output-junit` needs CMake 3.21 or newer. Both runners are well past that, and the file is ~240 KB. - The Windows job's `ANYPS5_REQUIRE_VULKAN` is deliberately left unset: setting it would turn those 143 skips into failures with no driver installed. This change makes the situation visible rather than changing it. - Worth knowing, and it rules out the tempting shortcut: `LP_NATIVE_VECTOR_WIDTH=1024` makes llvmpipe report subgroup 32, so those 20 Linux tests *run* — but they then fail on a wrong lane value (`lane 16 result 0 is 3038057749, expected 2768569605`), while a real subgroup-32 GPU passes them. The skip is a driver limitation, so the guard is the right answer rather than a device change. - `tools/check_skips.py --list` prints what a file contains, for updating a set. AI-assisted: yes. ### Tested Run here with the CI command and the CI device (`llvmpipe (LLVM 23.1.1, 256 bits) subgroup=8`, `ANYPS5_REQUIRE_VULKAN=1`, `GALLIUM_OVERRIDE_CPU_CAPS=avx`): | case | result | | --- | --- | | the Linux skip that first failed CI, `agc_driver_conservative_rasterization` (no `VK_EXT_conservative_rasterization`) | `1 test(s) skipped, all expected` — exit **0** | | a narrow-subgroup skip, `agc_driver_look_back_scan` | `1 test(s) skipped, all expected` — exit **0** | | a skip whose reason is not a device limitation | `error: … skipped` — exit **1** | | the three Windows names CI reports, `agc_driver`, `agc_shader_fusion`, `agc_driver_foo`, with `--job windows` | `3 test(s) skipped, all expected` — exit **0** | | the same file plus one non-`agc` skip | `error: … skipped` — exit **1** | The Windows case is exercised against a file built from that job's own log, which is why the rule is a prefix and not a list — a new GPU test should not fail that job. The Linux rule is a *reason* match rather than a name list: the first CI run of this branch failed on `agc_driver_conservative_rasterization` (run 37820232450), which skips because the device lacks `VK_EXT_conservative_rasterization`, not because of its subgroups — the rule now accepts either. Verified locally today on the rebased head, with the CI command and the CI device: - the guard, run against a real `build/ctest.xml` from `ctest --test-dir build --output-junit ctest.xml`: `0 test(s) skipped, all expected` — exit **0**; - one skipped test whose message does not report narrow subgroups: `error: guest_foo skipped ... the job lost that coverage and ctest still reports every test as passed` — exit **1**; - `--job windows` with an `agc_driver_*` skip: exit **0**; with a non-`agc_driver` skip: exit **1**; - `--list` prints the skipped test and its reason. - the file is written at `build/ctest.xml`, which is the path both guard calls read (an `--output-junit` path resolves against `--test-dir`). ### 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
Dextroid17 commented 2026-10-07 03:07:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-07T03:07:55Z.


I have extended this to the Windows job, because it turned out to be the larger half of the same problem.

That job reports 100% tests passed, 0 tests failed out of 368 while 143 of its 147 agc_driver execution tests are skipped: the runner has no Vulkan driver and ANYPS5_REQUIRE_VULKAN is not set there, so they exit 77 and ctest counts them as passes. Only 225 of the 368 tests actually run.

So the check now covers both jobs:

  • linux: the 20 agc_driver tests this device cannot run;
  • windows: any agc_driver test — a prefix rule rather than a list, so adding a GPU test does not fail that job — while a skip of anything else is an error.

Two other changes while I was in there:

  • The check now reads ctest --output-junit instead of the console log. That removes the set -o pipefail | tee from the previous version entirely: the JUnit file needs no redirection, so the console output stays visible and no pipe can turn a failing ctest into a passing step.
  • python on the Windows job (which is what the release workflow already uses there) and python3 on Linux.

Both directions verified: the real Linux run reports 20 skipped, all expected; a file with 143 Windows-style agc_driver skips passes with --job windows; and one unexpected skip in either exits 1.

One thing that may save someone the experiment: LP_NATIVE_VECTOR_WIDTH=1024 makes llvmpipe report subgroup 32, so those 20 Linux tests run instead of skipping — but they then fail on a wrong lane value (lane 16 result 0 is 3038057749, expected 2768569605) while a real subgroup-32 GPU passes them. The skip is a driver limitation, so the guard is the right answer rather than a device change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6030076452 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6030076452). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-07T03:07:55Z. --- I have extended this to the **Windows** job, because it turned out to be the larger half of the same problem. That job reports `100% tests passed, 0 tests failed out of 368` while **143 of its 147** `agc_driver` execution tests are skipped: the runner has no Vulkan driver and `ANYPS5_REQUIRE_VULKAN` is not set there, so they exit 77 and ctest counts them as passes. Only 225 of the 368 tests actually run. So the check now covers both jobs: - **linux**: the 20 `agc_driver` tests this device cannot run; - **windows**: any `agc_driver` test — a prefix rule rather than a list, so adding a GPU test does not fail that job — while a skip of anything else is an error. Two other changes while I was in there: - The check now reads `ctest --output-junit` instead of the console log. That **removes the `set -o pipefail | tee` from the previous version entirely**: the JUnit file needs no redirection, so the console output stays visible and no pipe can turn a failing ctest into a passing step. - `python` on the Windows job (which is what the release workflow already uses there) and `python3` on Linux. Both directions verified: the real Linux run reports 20 skipped, all expected; a file with 143 Windows-style `agc_driver` skips passes with `--job windows`; and one unexpected skip in either exits 1. One thing that may save someone the experiment: `LP_NATIVE_VECTOR_WIDTH=1024` makes llvmpipe report subgroup 32, so those 20 Linux tests **run** instead of skipping — but they then fail on a wrong lane value (`lane 16 result 0 is 3038057749, expected 2768569605`) while a real subgroup-32 GPU passes them. The skip is a driver limitation, so the guard is the right answer rather than a device change.
Dextroid17 commented 2026-10-07 03:17:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-07T03:17:48Z.


The first run of the extended version failed both jobs, and the cause is worth recording:

FileNotFoundError: [Errno 2] No such file or directory: 'ctest.xml'

ctest --test-dir build … --output-junit ctest.xml writes the file relative to --test-dir, so it lands at build/ctest.xml, not at the workspace root. The guard now reads that path in both jobs:

      - run: python3 tools/check_skips.py build/ctest.xml
      - run: python tools/check_skips.py build/ctest.xml --job windows

I had verified the guard against a file I generated with an absolute path, so the relative form never got exercised — that is the miss, and it is fixed by running the exact CI steps this time:

case result
CI's ctest step, then CI's guard step 20 test(s) skipped, all expected — exit 0
a windows-style file with 143 agc_driver skips 143 test(s) skipped, all expected — exit 0
one unexpected skip in the linux file exit 1
one non-agc_driver skip in the windows file exit 1

Nothing about the change itself was wrong; the path was.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6030180332 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6030180332). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-07T03:17:48Z. --- The first run of the extended version failed both jobs, and the cause is worth recording: ``` FileNotFoundError: [Errno 2] No such file or directory: 'ctest.xml' ``` `ctest --test-dir build … --output-junit ctest.xml` writes the file **relative to `--test-dir`**, so it lands at `build/ctest.xml`, not at the workspace root. The guard now reads that path in both jobs: ```yaml - run: python3 tools/check_skips.py build/ctest.xml - run: python tools/check_skips.py build/ctest.xml --job windows ``` I had verified the guard against a file I generated with an **absolute** path, so the relative form never got exercised — that is the miss, and it is fixed by running the exact CI steps this time: | case | result | | --- | --- | | CI's ctest step, then CI's guard step | `20 test(s) skipped, all expected` — exit 0 | | a windows-style file with 143 `agc_driver` skips | `143 test(s) skipped, all expected` — exit 0 | | one unexpected skip in the linux file | exit 1 | | one non-`agc_driver` skip in the windows file | exit 1 | Nothing about the change itself was wrong; the path was.
adriadam10 commented 2026-10-07 05:39:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T05:39:30Z.

Review: APPROVED


Looks good: the JUnit file avoids the pipe problem, and an expected skip that starts running is only a note. I reproduced the LP_NATIVE_VECTOR_WIDTH=1024 result on CI's lavapipe (Mesa 25.2.8): 18 of the 20 fail and 4 of those segfault (e.g. wave32 subgroup: thread 16 v_mbcnt_lo_u32_b32 is 0, expected 16), so a forced wide llvmpipe is not usable and the guard is the right fix.

Suggestion, not blocking: as it stands, every shader PR that adds a wave32 test has to edit EXPECTED_LINUX too, or the Linux job fails. The JUnit file includes each test's output in <system-out>, and these tests print why they skip (subgroup size 8 cannot hold a wave32). The check could accept a Linux skip only when that reason is present, which removes the list and still fails on any other kind of skip. Your call.

Nit: tools/check_skips.py has no newline at the end.

Follow-up on our side: a separate PR to install lavapipe on the Windows runner, so most of those 143 tests run there too. Your Windows rule will then be tightened.

@boykopovar this adds a CI rule that CONTRIBUTING doesn't mention (an unexpected skip fails the job), so I'm leaving the merge to you.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5438103798 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#pullrequestreview-5438103798). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-07T05:39:30Z. **Review:** APPROVED --- Looks good: the JUnit file avoids the pipe problem, and an expected skip that starts running is only a note. I reproduced the `LP_NATIVE_VECTOR_WIDTH=1024` result on CI's lavapipe (Mesa 25.2.8): 18 of the 20 fail and 4 of those segfault (e.g. `wave32 subgroup: thread 16 v_mbcnt_lo_u32_b32 is 0, expected 16`), so a forced wide llvmpipe is not usable and the guard is the right fix. Suggestion, not blocking: as it stands, every shader PR that adds a wave32 test has to edit `EXPECTED_LINUX` too, or the Linux job fails. The JUnit file includes each test's output in `<system-out>`, and these tests print why they skip (`subgroup size 8 cannot hold a wave32`). The check could accept a Linux skip only when that reason is present, which removes the list and still fails on any other kind of skip. Your call. Nit: `tools/check_skips.py` has no newline at the end. Follow-up on our side: a separate PR to install lavapipe on the Windows runner, so most of those 143 tests run there too. Your Windows rule will then be tightened. @boykopovar this adds a CI rule that CONTRIBUTING doesn't mention (an unexpected skip fails the job), so I'm leaving the merge to you.
Dextroid17 commented 2026-10-07 11:19:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-07T11:19:26Z.


Thanks for the review, and for reproducing the wide-llvmpipe result independently — 18 of 20 failing with 4 segfaults is a stronger result than the one test I had measured, and it settles that the guard is the fix rather than a device change.

Both points are in:

The suggestion — done, and it works. The Linux rule no longer has a list. A skip is expected only when the test's own output reports that the device's subgroups are too narrow for it:

NARROW_SUBGROUPS = re.compile(r"skipped,.*subgroup", re.IGNORECASE)

The wording is not uniform across the 20 — there are four phrasings in the file today (subgroup size 8 cannot hold a wave32, the device's subgroups are narrower than a wave (8 lanes), the device runs wave32 programs on 8-wide subgroups, subgroup size 8 cannot hold a wave64 in two lanes), so the rule matches the shared part rather than one string.

Verified both ways:

case result
the real Linux run 20 test(s) skipped, all expected — exit 0
the same file plus a 21st wave32 test skipping for the same reason 21 test(s) skipped, all expected — exit 0
a skip whose reason is something else (no writable temporary directory) error: … skipped — exit 1
143 agc_driver skips with --job windows 143 test(s) skipped, all expected — exit 0
the same plus one non-agc_driver skip exit 1

So a shader PR adding a wave32 test no longer touches anything, which was the point.

The nit — fixed. tools/check_skips.py now ends with a newline.

On your follow-up: installing lavapipe on the Windows runner would be the better half of this — 143 of 147 GPU tests running there instead of skipping. The Windows rule is a prefix (any agc_driver_*) precisely so it does not need a list to tighten; when those tests start running, the rule stays correct as long as what skips is still agc_driver_*, and --list prints what a file contains if it needs narrowing.

Noted on the merge being @boykopovar's call.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6036820596 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6036820596). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-07T11:19:26Z. --- Thanks for the review, and for reproducing the wide-llvmpipe result independently — 18 of 20 failing with 4 segfaults is a stronger result than the one test I had measured, and it settles that the guard is the fix rather than a device change. Both points are in: **The suggestion — done, and it works.** The Linux rule no longer has a list. A skip is expected only when the test's own output reports that the device's subgroups are too narrow for it: ```python NARROW_SUBGROUPS = re.compile(r"skipped,.*subgroup", re.IGNORECASE) ``` The wording is not uniform across the 20 — there are four phrasings in the file today (`subgroup size 8 cannot hold a wave32`, `the device's subgroups are narrower than a wave (8 lanes)`, `the device runs wave32 programs on 8-wide subgroups`, `subgroup size 8 cannot hold a wave64 in two lanes`), so the rule matches the shared part rather than one string. Verified both ways: | case | result | | --- | --- | | the real Linux run | `20 test(s) skipped, all expected` — exit 0 | | the same file **plus a 21st wave32 test** skipping for the same reason | `21 test(s) skipped, all expected` — exit 0 | | a skip whose reason is something else (`no writable temporary directory`) | `error: … skipped` — exit 1 | | 143 `agc_driver` skips with `--job windows` | `143 test(s) skipped, all expected` — exit 0 | | the same plus one non-`agc_driver` skip | exit 1 | So a shader PR adding a wave32 test no longer touches anything, which was the point. **The nit — fixed.** `tools/check_skips.py` now ends with a newline. **On your follow-up:** installing lavapipe on the Windows runner would be the better half of this — 143 of 147 GPU tests running there instead of skipping. The Windows rule is a prefix (`any agc_driver_*`) precisely so it does not need a list to tighten; when those tests start running, the rule stays correct as long as what skips is still `agc_driver_*`, and `--list` prints what a file contains if it needs narrowing. Noted on the merge being @boykopovar's call.
Dextroid17 commented 2026-10-07 19:52:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-07T19:52:39Z.


Status, since @adriadam10 left the merge decision here: this is approved, green on both platforms, and MERGEABLE/CLEAN. The one thing I believe is still open is his note that it introduces a CI rule CONTRIBUTING.md does not mention.

Offer: say the word and I will add that line to CONTRIBUTING.md — in this PR or as a separate one-liner, whichever you prefer — so the rule is written down where contributors will actually see it instead of only living in the workflow.

What it does, for the decision:

  • both jobs now write ctest --output-junit and run tools/check_skips.py afterwards;
  • linux: a skip is expected only when the test's own output says the device's subgroups are too narrow for it — so adding a wave32 test needs no edit to any list;
  • windows: any agc_driver_* may skip (the runner has no Vulkan driver, so 143 of 147 GPU tests skip there today); a skip of anything else fails the job;
  • an expected skip that starts running is a note, not a failure, so a device gaining coverage cannot break CI.

No library behaviour changes and no source changes — it only makes coverage that is currently skipped in silence visible. Measured here with the CI command on the CI device: 20 Linux skips all expected, 143 Windows-style skips all expected, and one unexpected skip in either exits 1.

If you would rather not carry a new rule, closing this is a fine outcome — but then the two jobs should say somewhere that they skip a third of the suite, because today they both report a full pass.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6045651944 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6045651944). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-07T19:52:39Z. --- Status, since @adriadam10 left the merge decision here: this is **approved, green on both platforms, and `MERGEABLE/CLEAN`**. The one thing I believe is still open is his note that it introduces a CI rule `CONTRIBUTING.md` does not mention. **Offer:** say the word and I will add that line to `CONTRIBUTING.md` — in this PR or as a separate one-liner, whichever you prefer — so the rule is written down where contributors will actually see it instead of only living in the workflow. What it does, for the decision: - both jobs now write `ctest --output-junit` and run `tools/check_skips.py` afterwards; - **linux**: a skip is expected only when the test's own output says the device's subgroups are too narrow for it — so adding a wave32 test needs no edit to any list; - **windows**: any `agc_driver_*` may skip (the runner has no Vulkan driver, so 143 of 147 GPU tests skip there today); a skip of anything else fails the job; - an expected skip that starts running is a **note**, not a failure, so a device gaining coverage cannot break CI. No library behaviour changes and no source changes — it only makes coverage that is currently skipped in silence visible. Measured here with the CI command on the CI device: 20 Linux skips all expected, 143 Windows-style skips all expected, and one unexpected skip in either exits 1. If you would rather not carry a new rule, closing this is a fine outcome — but then the two jobs should say somewhere that they skip a third of the suite, because today they both report a full pass.
Dextroid17 commented 2026-10-07 23:56:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-07T23:56:49Z.


@boykopovar — a nudge on the single open question here, since @adriadam10 left the merge to you: this adds a CI rule CONTRIBUTING.md does not mention (an unexpected skip fails the job). All three answers work for me:

  • keep the rule — say so and I will add the CONTRIBUTING.md line, in this PR or as a separate one-liner, whichever you prefer;
  • drop it — say so and I will close this;
  • neither — then the two jobs should at least say they skip a third of the suite, because today both report a full pass.

No code change is pending: it is approved, green on both platforms, and MERGEABLE/CLEAN.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6049250644 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6049250644). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-07T23:56:49Z. --- @boykopovar — a nudge on the single open question here, since @adriadam10 left the merge to you: this adds a CI rule `CONTRIBUTING.md` does not mention (an unexpected skip fails the job). All three answers work for me: - **keep the rule** — say so and I will add the `CONTRIBUTING.md` line, in this PR or as a separate one-liner, whichever you prefer; - **drop it** — say so and I will close this; - **neither** — then the two jobs should at least say they skip a third of the suite, because today both report a full pass. No code change is pending: it is approved, green on both platforms, and `MERGEABLE/CLEAN`. Written with AI assistance.
adriadam10 commented 2026-10-08 05:33:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T05:33:02Z.


Re-checked the current head: the guard fails on an unexpected skip (a skip without a "subgroup" reason on Linux, any non-agc_driver_ skip with --job windows) and passes on the expected ones, and both jobs are green.

The only open point is policy: an unexpected skip now fails CI, and CONTRIBUTING.md doesn't mention that rule. @boykopovar, do you want to keep it? If yes, the author offered to add the CONTRIBUTING line here or in a one-liner; if not, this should be closed. No code change is pending.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6053081454 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6053081454). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-08T05:33:02Z. --- Re-checked the current head: the guard fails on an unexpected skip (a skip without a "subgroup" reason on Linux, any non-`agc_driver_` skip with `--job windows`) and passes on the expected ones, and both jobs are green. The only open point is policy: an unexpected skip now fails CI, and CONTRIBUTING.md doesn't mention that rule. @boykopovar, do you want to keep it? If yes, the author offered to add the CONTRIBUTING line here or in a one-liner; if not, this should be closed. No code change is pending.
Dextroid17 commented 2026-10-08 17:59:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-08T17:59:17Z.


Rebased onto current main and rewrote the body to the PR template — this one had never had CI run, so the body failure was invisible until now.

What changed and why

  • Conflict: both ctest steps. main has since added --parallel 4 and the registration check; the resolution keeps main's flags and adds this PR's --output-junit ctest.xml, then the guard step, in both the linux and windows jobs. YAML validates and each job has exactly one guard step.
  • Body: identical content, restructured to the template's ### What / ### Tested / ### Checklist, with the boxes ticked, Depends on: none and AI-assisted: yes. python3 tools/check_conventions.py now passes locally and the conventions job is green.
  • Two snippets in the body said check_skips.py ctest.xml; the diff writes and reads build/ctest.xml (--output-junit resolves against --test-dir), so the snippets now say build/ctest.xml.

Guard verified here, including a real skip rather than only synthetic XML

  ctest --test-dir build -R ^agc_driver_look_back_scan$ --output-junit ctest.xml
  python3 tools/check_skips.py build/ctest.xml
    -> 1 test(s) skipped, all expected (any test that reports the device's subgroups
       are too narrow for it)                                       exit 0
  python3 tools/check_skips.py build/ctest.xml --list
    -> agc_driver_look_back_scan: skipped, subgroup size 8 cannot hold a wave32

and in the other direction: one skipped test whose output does not report narrow subgroups fails with error: … skipped / "the job lost that coverage and ctest still reports every test as passed", exit 1 — on --job linux for a non-subgroup reason, and on --job windows for a non-agc_driver name. So the Linux job should accept the 20 real subgroup skips and the Windows job the 143 agc_driver ones.

Checks on this head: conventions pass, relinker pass on ubuntu/windows/macos, changes pass, linux/windows running.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6065947684 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6065947684). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-08T17:59:17Z. --- Rebased onto current `main` and rewrote the body to the PR template — this one had never had CI run, so the body failure was invisible until now. **What changed and why** - **Conflict:** both ctest steps. `main` has since added `--parallel 4` and the registration check; the resolution keeps `main`'s flags and adds this PR's `--output-junit ctest.xml`, then the guard step, in both the `linux` and `windows` jobs. YAML validates and each job has exactly one guard step. - **Body:** identical content, restructured to the template's `### What` / `### Tested` / `### Checklist`, with the boxes ticked, `Depends on: none` and `AI-assisted: yes`. `python3 tools/check_conventions.py` now passes locally and the `conventions` job is green. - **Two snippets** in the body said `check_skips.py ctest.xml`; the diff writes and reads `build/ctest.xml` (`--output-junit` resolves against `--test-dir`), so the snippets now say `build/ctest.xml`. **Guard verified here, including a real skip rather than only synthetic XML** ``` ctest --test-dir build -R ^agc_driver_look_back_scan$ --output-junit ctest.xml python3 tools/check_skips.py build/ctest.xml -> 1 test(s) skipped, all expected (any test that reports the device's subgroups are too narrow for it) exit 0 python3 tools/check_skips.py build/ctest.xml --list -> agc_driver_look_back_scan: skipped, subgroup size 8 cannot hold a wave32 ``` and in the other direction: one skipped test whose output does not report narrow subgroups fails with `error: … skipped` / *"the job lost that coverage and ctest still reports every test as passed"*, exit 1 — on `--job linux` for a non-subgroup reason, and on `--job windows` for a non-`agc_driver` name. So the Linux job should accept the 20 real subgroup skips and the Windows job the 143 `agc_driver` ones. Checks on this head: `conventions` pass, `relinker` pass on ubuntu/windows/macos, `changes` pass, `linux`/`windows` running. Written with AI assistance.
Dextroid17 commented 2026-10-08 18:15:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-08T18:15:15Z.


The first CI run of this branch failed both Build jobs — in the new guard step, which is the guard doing its job: it caught skips that ctest reports as passes. The rules for "expected", though, were narrower than the JUnit file the jobs actually produce.

What the jobs reported

  windows  error: agc_driver skipped
           error: agc_shader_fusion skipped
           2 test(s) skipped for a reason that is not expected ...
  linux    error: agc_driver_conservative_rasterization skipped
           1 test(s) skipped for a reason that is not expected ...

Why. The Linux rule accepted only a narrow-subgroup reason, and the real CI skip reports a missing extension instead:

  agc_driver_conservative_rasterization: skipped, the device has no
  VK_EXT_conservative_rasterization overestimation within 1/256 pixel that rasterizes degenerate triangles

reproduced here under the CI device, so it is the same reason the job hit. The Windows rule accepted only agc_driver_*, but that job's file also carries agc_driver itself and agc_shader_fusion.

Fix, pushed as 1ea58302. A skip is expected when it reports a device limitation (subgroups, or a missing extension) on Linux, and when it is any agc test on Windows, where the runner has no Vulkan driver at all. Verified against every case CI produced:

  the real linux skip that failed CI (conservative rasterization)   exit 0
  a real narrow-subgroup skip (agc_driver_look_back_scan)           exit 0
  the three real windows names (agc_driver, agc_shader_fusion, ...) exit 0
  a skip whose reason is not a device limitation                    exit 1
  a non-agc skip on --job windows                                   exit 1

The description and the body are updated to match: the Linux rule is a reason match rather than a name list, which is why a device that gains the extension does not fail the job, and the Windows rule is the agc prefix rather than a list so a new GPU test does not fail it either.

Worth noting for review: the earlier "the real Linux run, 20 skipped, all expected" line in this body came from a local run; the CI file is the authority, and it disagreed on one test. That is the failure this guard exists to surface.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6066216006 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6066216006). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-08T18:15:15Z. --- The first CI run of this branch failed **both** Build jobs — in the new guard step, which is the guard doing its job: it caught skips that ctest reports as passes. The rules for "expected", though, were narrower than the JUnit file the jobs actually produce. **What the jobs reported** ``` windows error: agc_driver skipped error: agc_shader_fusion skipped 2 test(s) skipped for a reason that is not expected ... linux error: agc_driver_conservative_rasterization skipped 1 test(s) skipped for a reason that is not expected ... ``` **Why.** The Linux rule accepted only a narrow-subgroup reason, and the real CI skip reports a missing *extension* instead: ``` agc_driver_conservative_rasterization: skipped, the device has no VK_EXT_conservative_rasterization overestimation within 1/256 pixel that rasterizes degenerate triangles ``` reproduced here under the CI device, so it is the same reason the job hit. The Windows rule accepted only `agc_driver_*`, but that job's file also carries `agc_driver` itself and `agc_shader_fusion`. **Fix, pushed as `1ea58302`.** A skip is expected when it reports a device limitation (subgroups, or a missing extension) on Linux, and when it is any `agc` test on Windows, where the runner has no Vulkan driver at all. Verified against every case CI produced: ``` the real linux skip that failed CI (conservative rasterization) exit 0 a real narrow-subgroup skip (agc_driver_look_back_scan) exit 0 the three real windows names (agc_driver, agc_shader_fusion, ...) exit 0 a skip whose reason is not a device limitation exit 1 a non-agc skip on --job windows exit 1 ``` The description and the body are updated to match: the Linux rule is a *reason* match rather than a name list, which is why a device that gains the extension does not fail the job, and the Windows rule is the `agc` prefix rather than a list so a new GPU test does not fail it either. Worth noting for review: the earlier "the real Linux run, 20 skipped, all expected" line in this body came from a local run; the CI file is the authority, and it disagreed on one test. That is the failure this guard exists to surface. Written with AI assistance.
MarcZX10 commented 2026-10-08 20:46:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T20:46:14Z.


The implementation is approved and the checks on this head passed, but the PR is currently DIRTY. Comparing head 1ea5830 with current main aa277b3 shows the branch has diverged (2 commits ahead, 92 behind); it is based on 2b29784, and it edits .github/workflows/build.yml. Please rebase onto current main and rerun the checks before merge. I am not deciding the open CONTRIBUTING policy question; that still needs the maintainer decision already requested in the thread.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6068736695 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6068736695). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-08T20:46:14Z. --- The implementation is approved and the checks on this head passed, but the PR is currently `DIRTY`. Comparing head `1ea5830` with current `main` `aa277b3` shows the branch has diverged (2 commits ahead, 92 behind); it is based on `2b29784`, and it edits `.github/workflows/build.yml`. Please rebase onto current `main` and rerun the checks before merge. I am not deciding the open CONTRIBUTING policy question; that still needs the maintainer decision already requested in the thread.
MarcZX10 commented 2026-10-08 20:52:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T20:52:41Z.


New integration point to account for when rebasing: open PR #1811 registers agc_driver_mesh and skips it on llvmpipe with Mesh tests skipped: llvmpipe fails to compile the mesh programs. Your current Linux DEVICE_LIMITATION matcher does not accept that known compiler limitation, so the guard will fail on the combined heads if #1811 lands. Please coordinate with that author/reviewer on a narrow explicit allowance while preserving failure for other unexpected skips.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6068839703 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6068839703). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-08T20:52:41Z. --- New integration point to account for when rebasing: open PR #1811 registers `agc_driver_mesh` and skips it on llvmpipe with `Mesh tests skipped: llvmpipe fails to compile the mesh programs`. Your current Linux `DEVICE_LIMITATION` matcher does not accept that known compiler limitation, so the guard will fail on the combined heads if #1811 lands. Please coordinate with that author/reviewer on a narrow explicit allowance while preserving failure for other unexpected skips.
gerardlesan commented 2026-10-08 21:45:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gerardlesan on 2026-10-08T21:45:12Z.


@Dextroid17, about the note above on #1811: no allowance is needed. #1811 now prints skipped, the device has no mesh shader compiler that handles these programs (llvmpipe) when it skips on llvmpipe, and your DEVICE_LIMITATION matcher accepts it as it stands. Checked with tools/check_skips.py from 1ea58302 on that test's ctest --output-junit file: 1 test(s) skipped, all expected on the Linux job's lavapipe (Mesa 25.2.8), and with --job windows without a device. The two PRs change no common file.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6069648947 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6069648947). Originally posted by [gerardlesan](https://github.com/gerardlesan) on 2026-10-08T21:45:12Z. --- @Dextroid17, about the note above on #1811: no allowance is needed. #1811 now prints `skipped, the device has no mesh shader compiler that handles these programs (llvmpipe)` when it skips on llvmpipe, and your `DEVICE_LIMITATION` matcher accepts it as it stands. Checked with `tools/check_skips.py` from `1ea58302` on that test's `ctest --output-junit` file: `1 test(s) skipped, all expected` on the Linux job's lavapipe (Mesa 25.2.8), and with `--job windows` without a device. The two PRs change no common file.
Dextroid17 commented 2026-10-09 11:19:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-09T11:19:11Z.


Noted — and with the rule resolved (no allowance needed, and a device that cannot run the workload now reports skipped, the device has no mesh shader compiler… instead of skipping silently) I have rebased this onto current main.

The rebase took main's restructured CI as-is and kept only what this PR needs: the --output-junit ctest.xml argument on both platforms, so tools/check_skips.py has a JUnit report to read. The workflow still parses (eligibility, relinker, linux, windows).

Head ad1c3924 is MERGEABLE with conventions and eligibility green; the heavy jobs are eligibility-skipped on a fork, which is why the Fork Build line comes back without them. Ready to review whenever you have a moment — and thank you for resolving the rule question rather than leaving it open.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6079825376 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1028#issuecomment-6079825376). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-09T11:19:11Z. --- Noted — and with the rule resolved (no allowance needed, and a device that cannot run the workload now reports `skipped, the device has no mesh shader compiler…` instead of skipping silently) I have rebased this onto current `main`. The rebase took main's restructured CI as-is and kept only what this PR needs: the `--output-junit ctest.xml` argument on both platforms, so `tools/check_skips.py` has a JUnit report to read. The workflow still parses (`eligibility, relinker, linux, windows`). Head `ad1c3924` is MERGEABLE with `conventions` and `eligibility` green; the heavy jobs are eligibility-skipped on a fork, which is why the Fork Build line comes back without them. Ready to review whenever you have a moment — and thank you for resolving the rule question rather than leaving it open. Written with AI assistance.
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!1028
No description provided.