Repository navigation
tests: add toggle, missing_at, and 6 mutation controls to startup_compute_builder_gate - #3871
Conversation
…ntrols Remove the duplicate compute_builder_gate_unit suite (PR R0Y00#3871 review): the startup_compute_builder_gate fixture already covers the module matching, disabled gate, allow/refuse decisions, note_pso fill, repeated creation, note_failed latch and capacity latch, and its assertions already catch four of the six mutations. The fixture gains only the non-overlapping pins: mixed-slash and UNC module paths, the too-short name, the repeated real toggle moving with_pso both ways, the note_pso no-op on an already-real pipeline, the missing_at walk on a partial set, and the exact builder_gate_reason strings. Six WILL_FAIL TRUE controls build the same fixture against a mutated header copy. Refs R0Y00#1149.
R0Y00
left a comment
There was a problem hiding this comment.
Reviewed e36f069. The toggle, missing-index and decision assertions extend the existing fixture. No production source changed. Independent Windows/MSVC Debug ctest --preset dev --no-tests=error -j 1 -R '^startup_compute_builder_gate' --output-on-failure passed 9/9, including six mutation tests, the existing runtime fixture and the WARP request case.
R0Y00
left a comment
There was a problem hiding this comment.
Revalidated 3212666 after GitHub Update branch brought #3883 into the baseline. The files changed by this PR are unchanged from e36f069. Independent Windows/MSVC Debug ctest --preset dev --no-tests=error -j 1 -R '^startup_compute_builder_gate' --output-on-failure passed 9/9, including six mutation controls, the runtime fixture and WARP request publication. The hosted checks still need to finish on this revision.
R0Y00
left a comment
There was a problem hiding this comment.
Revalidated 9e508ad after GitHub Update branch brought #3885 into this PR. The owned files are unchanged. Independent Windows/MSVC Debug ctest --preset dev --no-tests=error -j 1 -R '^startup_compute_builder_gate' --output-on-failure passed 9/9, including the six mutation tests, runtime fixture and WARP request publication. The export catalog check passed all 476 checks including all six mutations.
Refs #1149.
Rework per review: the duplicate
compute_builder_gate_unitsuite is removed in full (all 5 files gone) and the existingtests/startup_compute_builder_gate_check.cppfixture carries the mutation controls instead, following the PR #3866 / #3870 rework pattern. Zero edits toCMakeLists.txtorsrc/; the branch diff vsorigin/mainis 5 files, +680/-0. Merged withorigin/main(beac8b20).Only non-overlapping additions
tests/startup_compute_builder_gate_check.cppgains 26 cases (106 -> 132); every earlier assertion is untouched:C:\Games/Sub\XboxBvhBuilder.dll) and UNC path (\\server\share\XboxBvhBuilder.dll) match, too-short name (bvh.dll) rejected, default-constructedstd::wstring_viewhas no basename;note_pipelinereal -> missing dropswith_pso()(else --with_pso_;) and the set refuses again, back to real restores it and allows again; repeatednote_psoon an already-real pipeline leaveswith_pso()unchanged;missing_aton a partial set: a missing entry yields its pointer, a real entry yieldsnullptr, index== trackedand a runtime-derived out-of-range index yieldnullptr; afternote_psothe filled entry stops being reported;builder_gate_reasonexact strings for all 4 decisions plus the"unknown"default for an invalid cast value.tests/cmake/startup_compute_builder_gate.cmakekeeps all existing targets/tests intact and adds the 6WILL_FAIL TRUEcontrols, each building the same fixture.cppagainst a configure-time mutated header copy (BEFORE PRIVATE,cxx_std_17, configureFATAL_ERRORif an anchor is missing,TIMEOUT 60) and running the whole fixture with no arguments — the fixture exits 1 loudly on anyFAILline, so no--casefilter is needed.New files:
tests/startup_compute_builder_gate_meta_check.py(mirrors the 6 CMake controls 1:1,g+++clsupport),tests/checks/python-linux/startup_compute_builder_gate.txt,docs/experiments/startup-compute-builder-gate-mutation-controls.md.Note: the note is named
startup-compute-builder-gate-mutation-controls.mdbecausedocs/experiments/startup-compute-builder-gate.mdalready exists onmain(#2920, the runtime gate experiment note).Spec mismatch flagged, not followed silently
is_compute_builder_module(nullptr)cannot be added as specified: the parameter is astd::wstring_view, whose pointer constructor is nonnull, so passingnullptris undefined behaviour —g++ -std=c++17 -O2 -Werrorrejects the call with-Werror=nonnull(verified on this host), and at runtime it would read through a null pointer inwcslen. The fixture pins the closest well-defined equivalent instead (default-constructed empty view -> false); the empty path was already covered.Linux verification (this host, g++ 13.3.0)
Scratch CMake + CTest (
^startup_compute_builder_gate): 7/7 (startup_compute_builder_gate+ 6WILL_FAILcontrols).git diff --checkclean;git merge-treeagainstorigin/mainexits 0. Full Python Linux suite not run locally; GitHub Actions runs it on push. No mingw/MSVC on this host, so no Windows compile check; WIN-VERIFY is the arbiter.Windows Verification (
e36f0693)git merge-tree --write-tree upstream/main HEADandgit diff --check.dev:cmake --preset dev,ctest --preset dev --no-tests=error -R '^startup_compute_builder_gate(_.*_mut)?$' --output-on-failurepassed7/7(0.83s); full familyctest --preset dev --no-tests=error -R '^startup_compute_builder_gate' --output-on-failure(including_runtimeand_request_warp) passed9/9(4.26s); directstartup_compute_builder_gate_check.exeprintedstartup_compute_builder_gate: 132 case(s), 0 failure(s).release:cmake --preset release,ctest --preset release --no-tests=error -R '^startup_compute_builder_gate(_.*_mut)?$' --output-on-failurepassed7/7(0.70s).clmeta check:python -B tests/startup_compute_builder_gate_meta_check.pyprintedPASS: startup_compute_builder_gate: 132 cases, 6/6 mutations killed (cl).tests/docs_links_check.py(251 files, 954 links) andtests/bidi_controls_check.py(2988 files) passed.AI-assisted.