Repository navigation
ci: run the native control, IR and DXIL checks in the pr preset - #3644
Conversation
bf34f79 to
bb8969c
Compare
lukaslw-lab
left a comment
There was a problem hiding this comment.
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/_controlssuffix. 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 addingnative_direct_meshto 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 namednative_*tests plus the templated ones, andnative_compile_dxil_{refusals,rekey,watch}correctly stay out._hardwareand_warpstay 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 reportNot Run, as your first CI run showed. - The PR merges cleanly onto current main (MERGEABLE/CLEAN;git merge-treehas no conflict), despite today's other edits to the filter line. - It is a preset change only, with no workflow file touched.
- The anchored
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.
|
NIT taken: No extra build target is needed — its command uses You are right that it should have been there from the start: it was one of the four tests red on |
d58adc3 to
ace5329
Compare
Leyukaka
left a comment
There was a problem hiding this comment.
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.
ace5329 to
3d33b0d
Compare
Change
Add
startup_triage_runandnative_.*_(ir|dxil|controls)totestPresets.pr.filter.include.The
prpreset is a smoke selection, so these checks run for the first time onmain. Three times in fivedays a pull request merged green and left
mainred because of it:mainfailed withnative_sdwa_f16_*,native_cvt_pk_u8_hardwarestartup_triage_run: a refusal literal added without aCOMPUTE_DISPATCH_REASONSentrynative_cvt_f16_i16_*,native_sdwa_profiles_*: stale SDWA refusal expectationsToday's four remaining
mainfailures were all in this set too ΓÇönative_direct_mesh,startup_image_sample_b_flow_warp,startup_image_get_lod_flow_warpandstartup_gfx2hlsl_cvt_off_f32_i4_warpΓÇö and none of them could be seen before merge.
Cost
Measured here,
--parallel 4, in-box dev preset:prpresetBoth counts moved with the base since the measurement: #3606 and later merges added checks to the same list, taking the
prpreset from 86 to 95 tests. The added subset is unchanged.The added subset alone, at the current head:
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 wholenative_*_(ir|dxil|controls)familyinstead, because that is the family that keeps breaking: #3052's two failures and three of today's four are
inside it, and
_dxilmatters as well as_irΓÇönative_sdwa_profiles_dxilwas one of today's four while asubset with only
_irand_controlsmissed 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 Runtests, which is the change working as intended: theprtestfilter selected them, but the
prbuild preset only lists 36 targets and none of the four tools thesetests drive.
So the build preset gains
native_compute_ir_dump,native_pixel_ir_dump,native_store_replayandnative_raw_buffer_view_check. Checked mechanically: every executable referenced by the 247 selected tests isnow either a listed target or a dependency of one, and the four names resolve under
cmake --build --preset pr.