-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Revert "tidy: validate LLVM component names in tests" #125949
Conversation
Ideally we'd document this somewhere. Is there a place that we document the meaning of all the ui-test annotations? For |
cc #125706 rustc-dev-guide has some non-exhaustive description of various UI test directives and annotations, but AFAIK we don't have an exhaustive list of descriptions. |
@Hoverbear what do you think? would you have wanted to wait until after your PR was r+'d? |
Which other PR are you referring to?
|
@workingjubilee I do not believe this impacts me, go for it. :) |
Opened rust-lang/rustc-dev-guide#1990 to add |
hmm. I realize this caused a bit of issues but I don't think it really doesn't pull its weight? I think what the troubles point to is a need for a more centralized way in the repo of describing "this is the list of components we want to build LLVM with, generally speaking". |
the troubles, after all, did also lead to us reenabling a test. |
The test was disabled because of a confusing a error message in the "all components must be available" check, and because that check erroneously ran on a build of LLVM that does not have all components. Not sure if this is a good argument to keep the new tidy check around: the actually relevant point is that someone looked into whether there is a "csky" component. Having to maintain yet another list in tidy better come with sufficient benefits for this extra paperwork. I am not convinced that is the case here. |
That's the thing that I think is the actual problem: tidy shouldn't have even one single list that is just "the list of things we're feeding into rustc's build anyways". That's a file that can be shared between crates, so it should be somewhere it can be shared. |
...like, why does every single test that specifies a if we want to talk about duplication... |
@erikdesjardins @workingjubilee what's the status on this? thanks |
Could someone elaborate what the "root" thing the llvm component checks are trying to address? rust/src/bootstrap/src/core/build_steps/test.rs Lines 1943 to 1961 in df4ca44
bootstrap knows which (local) llvm components are available via rust/src/tools/compiletest/src/header.rs Lines 1473 to 1491 in df4ca44
But frankly, I don't quite understand what these things together are trying to check. In particular, what is Note that just using a |
See #125710: it makes a missing LLVM component into a test failure, rather than ignoring the test. |
Ah, thanks for clarifying, that makes sense. |
So I'm inclined to drop this tidy check, in favor of something like proper |
Yeah, that was basically some of what I was thinking of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that we want to move towards //@ cross-compile-target
, I'm inclined to drop this tidy check.
@bors r+ |
@bors ping |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (23e7ecb): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (primary 1.2%, secondary -2.8%)This 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 787.86s -> 789.761s (0.24%) |
This reverts #125472.
This has already caused a bit of trouble, and I was mistaken about the original motivation--incorrect component names will be detected by a full CI run.
I no longer think it pulls its weight.
r? @workingjubilee