tests: d3d12_ab_compare's sign rule has a test of its own (D3D12-AB-COMPARE-AGREE-TEST) #2796
No reviewers
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2796
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2796"
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?
@TheGeogeo on GitHub · 2026-11-30 21:56 UTC · original
TheGeogeo:d3d12-ab-agree-test→main· +19 −0 · 1 files · 1 commits · merged 2026-11-30 22:33 UTCClaimed in the coordination issue as: D3D12-AB-COMPARE-AGREE-TEST (#2570)
What and why
tools/d3d12_ab_compare.py(#2783) says "B faster" or "B slower" only when two things hold: the 95 % interval leaves 0 out, and all pairs but at most one agree in sign. The verification of #2783 found that no test catches removing the second rule.test_one_odd_run_gives_no_verdictalready has an interval that holds 0, so it passes without the rule.This adds
test_two_pairs_against_the_rest_give_no_verdict:Test only: no change to the tool.
Tested
On Windows 11 Pro 10.0.26300, Python 3.12:
tests/test_d3d12_ab_compare.py: 14 tests OK onmain407f71a23with this test.verdict()(and e["agree"] >= e["k"] - 1deleted), the new test fails and the other 13 pass.scripts/check_no_game_data.pyon the changed file is clean.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)@OreoFR on GitHub · 2026-11-30 21:58 UTC · original
Verified by OreoFR on macOS 27.2.1, Apple M5, head
3b45610f9, main407f71a23. CPU only, Python.MEASURED
tests/test_d3d12_ab_compare.pygives 14 passed on main + this test, and 14 passed on main + the PR (merge-tree).and e["agree"] >= e["k"] - 1fromverdict()(tools/d3d12_ab_compare.py:73) gives 1 failed, 13 passed. The only failure is the newtest_two_pairs_against_the_rest_give_no_verdict. That matches your Windows result: removing the sign rule is now caught, which closes the coverage gap reported in the #2783 verification.AI-assisted: Claude Code
@MoonEyes on GitHub · 2026-11-30 22:33 UTC · original
Merging. Head
3b45610f9merges cleanly withmainb1f91c2f9and does not force a rebase of #2566. Tests only. CI green on this head. Checked by OreoFR (mutation: the new test alone fails without the sign rule); I ran it with its neighbours on main + PR: 14 tests OK (Windows, Python 3.14). Merged by MoonEyes.AI-assisted (Claude Code).