Skip to content

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

Merged
R0Y00 merged 2 commits into
R0Y00:mainfrom
KelboLive:ci/pr-preset-native-controls
Dec 1, 2026
Merged

R0Y00 merged 2 commits into
R0Y00:mainfrom
KelboLive:ci/pr-preset-native-controls

Conversation

@KelboLive

@KelboLive KelboLive commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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.

@KelboLive
KelboLive force-pushed the ci/pr-preset-native-controls branch 2 times, most recently from bf34f79 to bb8969c Compare November 30, 2026 20:17

@lukaslw-lab lukaslw-lab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

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
KelboLive force-pushed the ci/pr-preset-native-controls branch from d58adc3 to ace5329 Compare November 30, 2026 21:53

@Leyukaka Leyukaka left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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: R0Y00#3471's
unclassified refusal literal, R0Y00#3470's stale SDWA expectations, and the two failures in R0Y00#3052.

Add startup_triage_run and native_.*_(ir|dxil|controls) to the test filter (95 -> 247), and
the four tools those tests drive to the build preset (native_compute_ir_dump,
native_pixel_ir_dump, native_store_replay, native_raw_buffer_view_check), without which the
added tests report Not Run.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants