Repository navigation
tests: d3d12_ab_compare's sign rule has a test of its own (D3D12-AB-COMPARE-AGREE-TEST) - #2796
Merged
Merged
Conversation
…OMPARE-AGREE-TEST) "B faster" or "B slower" needs the interval to leave 0 out and all pairs but at most one to agree in sign. No test caught removing the sign part (the verification of ProjectLeonida#2783 found it): the odd-run test's interval already held 0. Eight pairs, two against the rest, now give no verdict, and one against the rest still does.
Collaborator
|
Verified by OreoFR on macOS 27.2.1, Apple M5, head MEASURED
AI-assisted: Claude Code |
Collaborator
|
Merging. Head AI-assisted (Claude Code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: D3D12-AB-COMPARE-AGREE-TEST (#2570 (comment))
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 onmain407f71a 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)