-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Recent pre-nightly builds have "commit-hash: unknown" in their version info #132845
Comments
The latest nightly is still fine
|
That makes the regression range: 59cec72...6689597 |
Maybe 76b6090? Cc @onur-ozkan |
Is this The only situation where I would ever get a
is when I |
No, as I said: "via rustup-toolchain-install-master". |
👍 I did a quick bisect and its indeed #132772 ^^ |
So if we change nothing, the next nightly will also be like this. Should we urgently revert #132772? |
I'll put up a revert for now, we can reland #132772. |
You mean reland it later once we figured out the problem? Yes, sounds good. |
Yes |
Revert rust-lang#132772 to fix unknown git commit hash Reverts rust-lang#132772 to address rust-lang#132845, we seem to have unintentionally omitted commit hash. r? `@onur-ozkan`
Okay, revert is in the queue. We should have sufficient time until the next nightly to get this landed in time. I wonder if there's any way we can have a test for this... we do run a bunch of tests on the dist runners that cover the actually released artifacts, right? |
It turns out we do have a related test: https://github.com/rust-lang/rust/blob/c24e166527cd46d3b4033b0c061d02657e3c3cbf/tests/run-make/version-verbose-commit-hash/rmake.rs But that is conditioned on (And thus it failed during the revert because |
Revert rust-lang#132772 to fix unknown git commit hash Reverts rust-lang#132772 to address rust-lang#132845, we seem to have unintentionally omitted commit hash. r? `@onur-ozkan`
FWIW this reproduces even with
But there was only one |
That would also need a "needs-git-hash"-style gate though. Seems more like the logic for |
I also don't understand why that test passed when the PR was landed but fails now with the revert...? |
Yes. I would consider that problematic to only rely on bootstrap's info on whether the git commit info is expected to be enabled, it should have some kind of |
I think yet another test suite will be just mean more maintenance nightmare. We need to increase the reliability on our existing test suite, not duct-tape around it. It's clearly not very good to ask the system that we want to test whether it is working correctly; compiletest needs to independently check whether a git hash should be present. But, why does this test fail now in the revert? A bunch of other PRs landed since the problematic one. (In fact that PR landed before midnight, we didn't get a nightly last night... maybe due to this bug.) |
When PR #132772 landed, the test could not have failed because
I'll need to double-check why... But I don't think the revert itself is wrong, it's just |
Agreed. |
Is it using a cached rustc rather than a freshly-built one? As I already said in #131658, what we do there right now is quite fragile. So if that's what's causing the test failure here, that is further evidence supporting my case. If anything in |
Yeah, #131831 does that but it's still not landed :/ |
It has to be doing something that like and using some kind of CI rustc, because the test failure is from commit hash being unknown and not hex digits (which should not be the case for a freshly built rustc with the PR reverted). Also |
Closing since the issue is resolved. |
Shouldn't we track somewhere that we had a test designed to catch this very mistake, and it didn't catch it? |
I'm fine with keeping this open, but wouldn't it be better to create a specific issue for that necessary test and reference this issue from there? |
Fair: #132875 |
Revert rust-lang#132772 to fix unknown git commit hash Reverts rust-lang#132772 to address rust-lang#132845, we seem to have unintentionally omitted commit hash. r? `@onur-ozkan`
I noticed this in Miri where we currently use the
668959740f97e7a22ae340742886d330ab63950f
build (via rustup-toolchain-install-master):Something seems very wrong about this?
Cc @rust-lang/compiler (sorry I don't know whom specifically to ping here)
The text was updated successfully, but these errors were encountered: