-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only golden arches #114225
Only golden arches #114225
Conversation
Slightly more complicated: also give them appropriate names that somewhat describe the cases they are trying to cover, using information from PR chatter in rust-lang#47158
(rustbot has picked a reviewer for you, use r? to override) |
Combining revisions with only-arch allows specifying that a test only applies to a handful of targets. This allows removing a large amount of repetition in the test suite for tests that do not benefit. The revisions are suboptimal for this for some tests, so they aren't preferred in those cases.
55d79ab
to
20ebbf4
Compare
Huh, I didn't know |
@ChrisDenton It is not. This pattern requires the use of revisions. The revision only applies a directive for that revision, and reruns the test (including ignoring it) for each revision. |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (03b8b50): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 653.862s -> 652.303s (-0.24%) |
Do multiple "only" not have the semantics "test runs if any of the architectures match"? That is the semantics I would expect (and it is what the ui-test crate does). |
Hmm, when I talked with someone who knows more about |
Ah, seems like I was wrong for ui_test The revisions are a clever trick. :) |
A number of tests in the test suite have applied the somewhat comedic practice of ignoring every single target architecture that rustc has ever supported. This is silly, when they are clearly tests built around certain assumptions, primarily of the x86-64 architecture, or in one case when they are only relevant for a handful of 32-bit targets. This has even resulted, in one case, in the same architecture being ignored twice!
Document these better, and use a "revision + only-arch" idiom in the test headers to denote the "golden arches" that actually pass these tests.