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

Merged
KelboLive merged 2 commits from upstream-pr/3644 into main 2026-12-01 00:21:53 +00:00
KelboLive commented 2026-11-30 20:01:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-30T20:01:48Z.


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 #3471 startup_triage_run: a refusal literal added without a COMPUTE_DISPATCH_REASONS entry
Today #3470 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: #3606 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 #3554, #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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5572784606 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3644). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-30T20:01:48Z. --- ## 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 | #3471 | `startup_triage_run`: a refusal literal added without a `COMPUTE_DISPATCH_REASONS` entry | | Today | #3470 | `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: #3606 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 #3554, #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`.
lukaslw-lab commented 2026-11-30 20:49:53 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T20:49:53Z.

Review: APPROVED


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 #3630, #3624 and #3634 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 (#3633, #3635) 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6120318912 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3644#pullrequestreview-6120318912). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-30T20:49:53Z. **Review:** APPROVED --- 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 #3630, #3624 and #3634 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 (#3633, #3635) 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.
KelboLive commented 2026-11-30 21:52:55 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-30T21:52:55Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7293036892 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3644#issuecomment-7293036892). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-30T21:52:55Z. --- 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.
Leyukaka commented 2026-12-01 00:04:15 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-01T00:04:15Z.

Review: APPROVED


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6122774000 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3644#pullrequestreview-6122774000). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-12-01T00:04:15Z. **Review:** APPROVED --- 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.
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
R0Y00/Xbox2Windows!3644
No description provided.