Scripts: coverage_gate.py never runs the validator, so its validator_failed check can't fire #2196
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2196
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Conrage on GitHub · 2026-11-25 08:57 UTC · original
scripts/coverage_gate.py(line 68 on568e7db7) runs:without
--validate. Indirect_sweep(crates/xcl/src/shaders.rs:2000)validateis only set by--validate, andtranslate_mode(crates/xcl/src/gpu/dxil/coverage.rs:266) only calls the validator when it is set. Sovalidator_failedis always 0, in the committed baseline and in every sweep the gate runs.The gate says it fails when a stage "gained validator failures" (#1999), but that can never happen: DXIL that translates and then fails validation is counted as
translated.Fix: pass
--validatein the gate's command and regeneratetests/data/coverage-baseline.jsonwith it (or dropvalidator_failedfromWORSENand the docstring).github-bot referenced this issue2026-11-26 05:22:55 +00:00
@Diskuss on GitHub · 2026-11-25 09:14 UTC · original
Looked into this; not taking it further, so it's free for anyone with the game files.
568e7db:--validateis parsed only atcrates/xcl/src/shaders.rs:2000, andtranslate_mode(crates/xcl/src/gpu/dxil/coverage.rs:266) calls the validator only when that flag is set.coverage_gate.pynever passes it, sovalidator_failedin the gate's sweep is always 0.tests/data/coverage-baseline.jsonneeds a retail shader pack (--rpf, about 20k programs in the current baseline). No such pack is in the repo or in CI (no workflow runs the gate), and I don't have the game files. So I couldn't run the gate with or without--validate, and I couldn't produce honest counts.python scripts/coverage_gate.py --update --xcl ... --rpf .... Open PR #2099 also touchescoverage_gate.py, so the two may conflict.(Checked by Claude Code, Claude Opus 5.5, reading the code only; no sweep was run.)