-
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
CI: Bootstrap no longer documents compiler crates #117430
Comments
It regressed in the latest nightly, we have CI tests on docs.rs checking for some of these and the last daily test succeeded. |
If I'm reading the commit history right there were a number of PRs that touched one of CI, bootstrap or rustdoc itself: |
This appears to have regressed in #117328... but I'm pretty confused by that.
|
cc @bjorn3 and also @onur-ozkan maybe you happen to have an idea too |
I don't have a clue how either PR could have affected building docs. |
I would do quick check between the recently merged PRs as there are not many. It seems not to be so hard to find and fix the problem. But I can only do that later tonight.. I don't have access to my computers right now. |
Ok, so the problem is when we use rust/src/bootstrap/src/core/builder.rs Line 1290 in 50be229
we end up with output that doesn't have the compiler documentation. I am currently unsure of the exact reason why cranelift is causing this issue. I will open a temporary fix PR and investigate further once I get more time. |
Temporary fix for rust-lang#117430 Signed-off-by: onur-ozkan <[email protected]>
Temporary fix for rust-lang#117430 Signed-off-by: onur-ozkan <[email protected]>
Indeed the search at https://doc.rust-lang.org/nightly/nightly-rustc/ is completely useless right now. If a fix would take more than a day, reverting the offending PR should also be considered, given that those docs are quite crucial for rustc contributors. |
Fix PR is already open at #117471 |
Yeah I've seen that, but I can't tell if that's the lowest-risk approach. 🤷 Reverting (or un-setting |
I am quite sure that PR contains no risk, but I am fine with reverting codegen environment variable updates in the runner containers |
#117471 did fix it locally, but seems didn't fix it on actual environment.. |
To fix this, we can either disable cranelift on the gh action step which we build nightly documentation or revert #117328 until we find out and fix the problem of compiler documentations with cranelift. |
Which one is that? |
I guess (never worked on the infra side before) these ones Lines 537 to 542 in 2429818
Lines 661 to 666 in 2429818
Lines 160 to 165 in 2429818
|
Those steps just do the uploading, the docs are most likely created before. We need to figure out which runner is doing this and disable cranelift there. |
It's done in multiple place(creating and uploading). I think the question is which one is getting deployed to https://doc.rust-lang.org/nightly/nightly-rustc/index.html. |
It's been 3 days without docs, clearly this is not entirely trivial to fix. Let's revert. |
Revert "Auto merge of rust-lang#117328 - lqd:cranelift-rocket, r=Mark-Simulacrum" This reverts commit 1dfb6b1, reversing changes made to bcb5798. That commit broke generating nightly rustc docs. Revert it until we can figure out how to have both, cranelift and docs. Fixes rust-lang#117430
…zkan Revert "bootstrap: do not purge docs on CI environment" This reverts commit 6198e88. ref rust-lang#117430 (comment), rust-lang#117471 (comment)
Rollup merge of rust-lang#117533 - onur-ozkan:revert-117471, r=onur-ozkan Revert "bootstrap: do not purge docs on CI environment" This reverts commit 6198e88. ref rust-lang#117430 (comment), rust-lang#117471 (comment)
The docs are back. |
While the immediate issue is addressed, do we need an issue to track the underlying problem? |
We could. At the same time, @bjorn3 and @onur-ozkan are also still working on this, e.g. in this zulip thread as it's quite important to fix. There's little chance we'll forget about this, and it should hopefully be fixed very soon. |
The underlying problem is that symlinks are being dropped in a wrong way between invocations. I can easily fix this by copying the document outputs instead of linking them, but I would prefer to invest a couple more hours in fixing the linking issue rather than replacing it. |
…g, r=<try> re-enable cranelift on CI First commit addresses the linking issue with compiler crates. Second one ensures that compiler crates are linked correctly, allowing us to detect these hard-to-catch bugs on CI. The remaining three commits cherry-picked from rust-lang#117328 to re-enable the Cranelift backend on CI. More info: rust-lang#117430 cc `@bjorn3` `@RalfJung`
…g, r=<try> re-enable cranelift on CI First commit addresses the linking issue with compiler crates. Second one ensures that compiler crates are linked correctly, allowing us to detect these hard-to-catch bugs on CI. The remaining three commits cherry-picked from rust-lang#117328 to re-enable the Cranelift backend on CI. More info: rust-lang#117430 cc `@bjorn3` `@RalfJung`
…g, r=<try> re-enable cranelift on CI First commit addresses the linking issue with compiler crates. Second one ensures that compiler crates are linked correctly, allowing us to detect these hard-to-catch bugs on CI. The remaining three commits cherry-picked from rust-lang#117328 to re-enable the Cranelift backend on CI. More info: rust-lang#117430 cc `@bjorn3` `@RalfJung`
…g, r=<try> re-enable cranelift on CI First commit addresses the linking issue with compiler crates. Second one ensures that compiler crates are linked correctly, allowing us to detect these hard-to-catch bugs on CI. Following three commits cherry-picked from rust-lang#117328 to re-enable the Cranelift backend on CI. More info: rust-lang#117430 cc `@bjorn3` `@RalfJung`
…g, r=<try> re-enable cranelift on CI First commit addresses the linking issue with compiler crates. Second one ensures that compiler crates are linked correctly, allowing us to detect these hard-to-catch bugs on CI. Following three commits cherry-picked from rust-lang#117328 to re-enable the Cranelift backend on CI. More info: rust-lang#117430 cc `@bjorn3` `@RalfJung`
…g, r=<try> re-enable cranelift on CI First commit addresses the linking issue with compiler crates. Second one ensures that compiler crates are linked correctly, allowing us to detect these hard-to-catch bugs on CI. Following three commits cherry-picked from rust-lang#117328 to re-enable the Cranelift backend on CI. More info: rust-lang#117430 cc `@bjorn3` `@RalfJung`
…g, r=Mark-Simulacrum improve compiler&tool documenting and re-enable cranelift on CI First commit addresses the linking issue with compiler crates. Second one ensures that compiler crates are linked correctly (with later commits we added this check for tools as well), allowing us to detect these hard-to-catch bugs on CI. Following three commits cherry-picked from rust-lang#117328 to re-enable the Cranelift backend on CI. More info: rust-lang#117430 cc `@bjorn3` `@RalfJung`
…-Simulacrum improve compiler&tool documenting and re-enable cranelift on CI First commit addresses the linking issue with compiler crates. Second one ensures that compiler crates are linked correctly (with later commits we added this check for tools as well), allowing us to detect these hard-to-catch bugs on CI. Following three commits cherry-picked from #117328 to re-enable the Cranelift backend on CI. More info: rust-lang/rust#117430 cc `@bjorn3` `@RalfJung`
Bootstrap no longer documents any
rustc_*
/compiler/
crates orrustdoc
in CI.The index now only contains a meager 20 or so crates.
This has to have regressed fairly recently.
The text was updated successfully, but these errors were encountered: