tests: d3d12_ab_compare's sign rule has a test of its own (D3D12-AB-COMPARE-AGREE-TEST) #2796
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2796
Loading…
Reference in a new issue
No description provided.
Delete branch "d3d12-ab-agree-test"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: D3D12-AB-COMPARE-AGREE-TEST (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7293095106)
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 onmain407f71a23 with 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)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
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).