ci: run the native control, IR and DXIL checks in the pr preset #3646

Manually merged
github merged 2 commits from github-bot/gh-3644 into main 2026-12-01 00:25:17 +00:00 AGit
Owner

@⁠KelboLive on GitHub · 2026-11-30 20:01 UTC · original
KelboLive:ci/pr-preset-native-controls → main · +3 −2 · 1 files · 2 commits · merged 2026-12-01 00:21 UTC

Change

Add startup_triage_run and native_.*_(ir|dxil|controls) to testPresets.pr.filter.include.

The pr preset is a smoke selection, so these checks run for the first time on main. Three times in five
days a pull request merged green and left main red because of it:

When PR main failed with
Nov 27 (#3052) ΓÇö native_sdwa_f16_*, native_cvt_pk_u8_hardware
Today #3473 startup_triage_run: a refusal literal added without a COMPUTE_DISPATCH_REASONS entry
Today #3472 native_cvt_f16_i16_*, native_sdwa_profiles_*: stale SDWA refusal expectations

Today's four remaining main failures were all in this set too ΓÇö native_direct_mesh,
startup_image_sample_b_flow_warp, startup_image_get_lod_flow_warp and startup_gfx2hlsl_cvt_off_f32_i4_warp
ΓÇö and none of them could be seen before merge.

Cost

Measured here, --parallel 4, in-box dev preset:

Set Tests Time
Current pr preset 86 20.6 s
With this change 238 52.2 s

Both counts moved with the base since the measurement: #3608 and later merges added checks to the same list, taking the pr preset from 86 to 95 tests. The added subset is unchanged.

The added subset alone, at the current head:

ctest --preset pr -R '^(native_.*_(ir|dxil|controls)|startup_triage_run)$' -j 4
149 passed, 0 skipped, 0 failed, 37.4 s

All CPU-side: they drive the compiler and the Python fixtures, so they add no GPU or driver requirement to
the PR job. The Windows job spends far longer than that on configure and build.

Why the wider subset

The minimum that covers today is three tests (startup_triage_run, native_cvt_f16_i16_controls,
native_sdwa_profiles_ir) at about 4 seconds. This sends the whole native_*_(ir|dxil|controls) family
instead, because that is the family that keeps breaking: #3052's two failures and three of today's four are
inside it, and _dxil matters as well as _ir ΓÇö native_sdwa_profiles_dxil was one of today's four while a
subset with only _ir and _controls missed it.

If the maintainers prefer the smaller change, it is a one-line difference and I will send that instead.

Refs #3556, #3052.

The build preset needs the tools too

The first CI run failed with 38 Not Run tests, which is the change working as intended: the pr test
filter selected them, but the pr build preset only lists 36 targets and none of the four tools these
tests drive.

2658 - native_cvt_norm_f16_ir (Not Run)
2671 - native_cvt_pknorm_f32_ir (Not Run)
2693 - native_execz_join_mask_controls (Not Run)
...
85% tests passed, 38 tests failed out of 247

So the build preset gains native_compute_ir_dump, native_pixel_ir_dump, native_store_replay and
native_raw_buffer_view_check. Checked mechanically: every executable referenced by the 247 selected tests is
now either a listed target or a dependency of one, and the four names resolve under cmake --build --preset pr.

**@⁠KelboLive** on GitHub · 2026-11-30 20:01 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3644) `KelboLive:ci/pr-preset-native-controls` → `main` · +3 −2 · 1 files · 2 commits · merged 2026-12-01 00:21 UTC ## Change Add `startup_triage_run` and `native_.*_(ir|dxil|controls)` to `testPresets.pr.filter.include`. The `pr` preset is a smoke selection, so these checks run for the first time on `main`. Three times in five days a pull request merged green and left `main` red because of it: | When | PR | `main` failed with | |---|---|---| | Nov 27 (#3052) | ╬ô├ç├╢ | `native_sdwa_f16_*`, `native_cvt_pk_u8_hardware` | | Today | #3473 | `startup_triage_run`: a refusal literal added without a `COMPUTE_DISPATCH_REASONS` entry | | Today | #3472 | `native_cvt_f16_i16_*`, `native_sdwa_profiles_*`: stale SDWA refusal expectations | Today's four remaining `main` failures were all in this set too ╬ô├ç├╢ `native_direct_mesh`, `startup_image_sample_b_flow_warp`, `startup_image_get_lod_flow_warp` and `startup_gfx2hlsl_cvt_off_f32_i4_warp` ╬ô├ç├╢ and none of them could be seen before merge. ## Cost Measured here, `--parallel 4`, in-box dev preset: | Set | Tests | Time | |---|---|---| | Current `pr` preset | 86 | 20.6 s | | With this change | 238 | 52.2 s | Both counts moved with the base since the measurement: #3608 and later merges added checks to the same list, taking the ``pr`` preset from 86 to 95 tests. The added subset is unchanged. The added subset alone, at the current head: ``` ctest --preset pr -R '^(native_.*_(ir|dxil|controls)|startup_triage_run)$' -j 4 149 passed, 0 skipped, 0 failed, 37.4 s ``` All CPU-side: they drive the compiler and the Python fixtures, so they add no GPU or driver requirement to the PR job. The Windows job spends far longer than that on configure and build. ## Why the wider subset The minimum that covers today is three tests (`startup_triage_run`, `native_cvt_f16_i16_controls`, `native_sdwa_profiles_ir`) at about 4 seconds. This sends the whole `native_*_(ir|dxil|controls)` family instead, because that is the family that keeps breaking: #3052's two failures and three of today's four are inside it, and `_dxil` matters as well as `_ir` ╬ô├ç├╢ `native_sdwa_profiles_dxil` was one of today's four while a subset with only `_ir` and `_controls` missed it. If the maintainers prefer the smaller change, it is a one-line difference and I will send that instead. Refs #3556, #3052. ## The build preset needs the tools too The first CI run failed with 38 `Not Run` tests, which is the change working as intended: the `pr` *test* filter selected them, but the `pr` *build* preset only lists 36 targets and none of the four tools these tests drive. ``` 2658 - native_cvt_norm_f16_ir (Not Run) 2671 - native_cvt_pknorm_f32_ir (Not Run) 2693 - native_execz_join_mask_controls (Not Run) ... 85% tests passed, 38 tests failed out of 247 ``` So the build preset gains `native_compute_ir_dump`, `native_pixel_ir_dump`, `native_store_replay` and `native_raw_buffer_view_check`. Checked mechanically: every executable referenced by the 247 selected tests is now either a listed target or a dependency of one, and the four names resolve under `cmake --build --preset pr`.
The pr preset selects 95 tests, so startup_triage_run and the native_* checks run for the first time
on main. Three PRs merged green and left main red in five days because of that: #3471's
unclassified refusal literal, #3470's stale SDWA expectations, and the two failures in #3052.

Add startup_triage_run and native_.*_(ir|dxil|controls): 95 -> 243 tests, 20.6 s -> 52.2 s
with --parallel 4 on this host, against a Windows job whose configure and build dominate that.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 20:05:22 +00:00
github-bot force-pushed github-bot/gh-3644 from bf34f797ab to bb8969ceb0 2026-11-30 20:22:37 +00:00 Compare
Author
Owner

@⁠lukaslw-lab on GitHub · 2026-11-30 20:49 UTC · original · approved these changes

Reviewed bb8969ce by reading the diff; not built or run.

Verdict: approve. This closes the gap I kept flagging in my shader reviews today: the native_*_ir / _controls checks of #3632, #3626 and #3636 all had only the author's local run. No MUST.

  • NIT native_direct_mesh, which was among today's red-on-main tests, is not selected: its name has no _ir/_dxil/_controls suffix. It is a CPU-side compile check like the rest of this family, and mesh-frontend PRs (#3635, #3637) also merged without it running on PR CI. Consider adding native_direct_mesh to the alternation, here or in a follow-up.
  • Checked, no finding:
    • The anchored ^(…|native_.*_(ir|dxil|controls)|startup_triage_run)$ selects only suffix matches. I count 147 statically named native_* tests plus the templated ones, and native_compile_dxil_{refusals,rekey,watch} correctly stay out. _hardware and _warp stay out, so no GPU requirement is added.
    • The four added build targets (native_compute_ir_dump, native_pixel_ir_dump, native_store_replay, native_raw_buffer_view_check) are what these tests' $<TARGET_FILE:…> arguments name. Without them they report Not Run, as your first CI run showed. - The PR merges cleanly onto current main (MERGEABLE/CLEAN; git merge-tree has no conflict), despite today's other edits to the filter line.
    • It is a preset change only, with no workflow file touched.

Tests: the Windows job at this head passed with the wider set. Your measurement of +149 tests at ~37 s with -j 4 is small next to the job's configure and build time.

**@⁠lukaslw-lab** on GitHub · 2026-11-30 20:49 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3644#pullrequestreview-6120318912) · **approved these changes** Reviewed `bb8969ce` by reading the diff; not built or run. **Verdict: approve.** This closes the gap I kept flagging in my shader reviews today: the `native_*_ir` / `_controls` checks of #3632, #3626 and #3636 all had only the author's local run. No MUST. - **NIT** `native_direct_mesh`, which was among today's red-on-main tests, is not selected: its name has no `_ir`/`_dxil`/`_controls` suffix. It is a CPU-side compile check like the rest of this family, and mesh-frontend PRs (#3635, #3637) also merged without it running on PR CI. Consider adding `native_direct_mesh` to the alternation, here or in a follow-up. - Checked, no finding: - The anchored `^(…|native_.*_(ir|dxil|controls)|startup_triage_run)$` selects only suffix matches. I count 147 statically named `native_*` tests plus the templated ones, and `native_compile_dxil_{refusals,rekey,watch}` correctly stay out. `_hardware` and `_warp` stay out, so no GPU requirement is added. - The four added build targets (`native_compute_ir_dump`, `native_pixel_ir_dump`, `native_store_replay`, `native_raw_buffer_view_check`) are what these tests' `$<TARGET_FILE:…>` arguments name. Without them they report `Not Run`, as your first CI run showed. - The PR merges cleanly onto current main (`MERGEABLE`/`CLEAN`; `git merge-tree` has no conflict), despite today's other edits to the filter line. - It is a preset change only, with no workflow file touched. Tests: the Windows job at this head passed with the wider set. Your measurement of +149 tests at ~37 s with `-j 4` is small next to the job's configure and build time.
native_direct_mesh has no _ir/_dxil/_controls suffix, so the alternation missed it, and it was
one of the four tests red on main today. It is a CPU-side compile check like the rest of the
family and needs no extra build target: compile_dxil is already in the pr build preset.
Author
Owner

@⁠KelboLive on GitHub · 2026-11-30 21:52 UTC · original

NIT taken: native_direct_mesh is in the alternation now.

pr preset: 247 -> 248 tests
native_direct_mesh   Passed   5.72 sec

No extra build target is needed — its command uses compile_dxil, which the pr build preset already lists — and I re-ran the mechanical check over all 248 selected tests: the only executable not named as a target is archive_texture_reader, which is a dependency of one that is.

You are right that it should have been there from the start: it was one of the four tests red on main today, so it was in the evidence I filed and got missed by my own suffix filter.

**@⁠KelboLive** on GitHub · 2026-11-30 21:52 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3644#issuecomment-7293036892) NIT taken: `native_direct_mesh` is in the alternation now. ``` pr preset: 247 -> 248 tests native_direct_mesh Passed 5.72 sec ``` No extra build target is needed — its command uses `compile_dxil`, which the `pr` build preset already lists — and I re-ran the mechanical check over all 248 selected tests: the only executable not named as a target is `archive_texture_reader`, which is a dependency of one that is. You are right that it should have been there from the start: it was one of the four tests red on `main` today, so it was in the evidence I filed and got missed by my own suffix filter.
Author
Owner

@⁠Leyukaka on GitHub · 2026-12-01 00:04 UTC · original · approved these changes

Checked at ace53297, diff only. Test names ending in _warp or _hardware cannot match the new native_.*_(ir|dxil|controls) alternation (CMakePresets.json:53), so the wider set adds no WARP or hardware test to the pr job. The Windows job at this head passed with the wider set.

**@⁠Leyukaka** on GitHub · 2026-12-01 00:04 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3644#pullrequestreview-6122774000) · **approved these changes** Checked at `ace53297`, diff only. Test names ending in `_warp` or `_hardware` cannot match the new `native_.*_(ir|dxil|controls)` alternation (`CMakePresets.json:53`), so the wider set adds no WARP or hardware test to the `pr` job. The Windows job at this head passed with the wider set.
github-bot force-pushed github-bot/gh-3644 from ace532971a to 3d33b0d95a 2026-12-01 00:19:12 +00:00 Compare
github manually merged commit a3bfd01962 into main 2026-12-01 00:25:17 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.