Closed
Description
Opening this failed log shows a somewhat confusing error message:
It very much looks like this toolstate error is what makes the build fail. That's wrong though, there is another error hiding inside "Building compiler artifacts", and that is the true error.
Is there a way we can avoid showing errors that are entirely unrelated to the actual problem? Also, is there a way we can avoid hiding the compiler error? AFAIK github doesn't fold a group if the endgroup
is missing, so ideally we'd not emit endgroup
if there was an error that aborts the build.
Cc @rust-lang/bootstrap
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
tgross35 commentedon Jul 18, 2024
I feel like this may be a recent change, I have noticed RLA capturing this output a lot since about last week.
onur-ozkan commentedon Jul 18, 2024
This could be related with one of the
BootstrapCommand
PRs. cc @KobzolRalfJung commentedon Jul 18, 2024
What's RLA?
tgross35 commentedon Jul 18, 2024
Rust log analyzer. Or Rust length array if we come up with safer VLAs :)
Kobzol commentedon Jul 18, 2024
This behavior is specific to the
checktools.sh
script. It essentially ignores errors (set +e
), then it tries to build some tools, and then records the output of the build in the toolstate.So in this case, the actual error that fails the CI job is really
not the previous compiler ICE (that is explicitly allowed by the script).
llvm-bitcode-linker
#127901Kobzol commentedon Jul 18, 2024
To clarify: bootstrap is doing everything correctly here. The compiler build fails, it produces an error, and doesn't end its group. But because
checktools.sh
usesset +e
, it swallows this error, and continues with another bootstrap execution, which opens a new group, which causes GHA to automatically close the previous group containing the error.RalfJung commentedon Jul 18, 2024
Rollup merge of rust-lang#127901 - Kobzol:llvm-bitcode-linker-gha-gro…
Unrolled build for rust-lang#127901
checktools.sh
#1279346 remaining items