Bootstrap tests fail when git_merge_commit_email
in src/stage0
contains square brackets
#140669
Labels
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Summary
What the title says. This was found when integrating recent Rust changes into Ferrocene.
Command used
Change the
git_merge_commit_email
entry insrc/stage0
. For example$ ./x test bootstrap -- ci_rustc failures: core::builder::tests::ci_rustc_if_unchanged_do_not_invalidate_on_library_changes_outside_ci core::builder::tests::ci_rustc_if_unchanged_do_not_invalidate_on_tool_changes
Expected behaviour
The tests should pass.
Actual behaviour
The tests fail.
The root of the problem seems to be these two shell invocations of
git rev-list
. The argument of the--author
flag is not a plaintext substring but a regular expression, when square bracket characters are passed unescaped thengit
fails to find the matching commit.Bootstrap configuration (bootstrap.toml)
Note that the repro command will not build LLVM but
llvm.download-ci-llvm = true
makes bootstrap fail for a different reason that's not a bug.Operating system
Ubuntu 22.04
HEAD
efcbb94
Additional context
Build Log
I'm preparing a PR fixing the issue.
The text was updated successfully, but these errors were encountered: