Skip to content

Commit dd5797a

Browse files
committed
Add GHA log groups for tool tests
1 parent d634f26 commit dd5797a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/bootstrap/test.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ impl Step for RustAnalyzer {
415415
cargo.env("SKIP_SLOW_TESTS", "1");
416416

417417
cargo.add_rustc_lib_path(builder, compiler);
418+
builder.msg_sysroot_tool(Kind::Test, compiler.stage, "rust-analyzer", host, host);
418419
run_cargo_test(cargo, &[], &[], "rust-analyzer", compiler, host, builder);
419420
}
420421
}
@@ -464,6 +465,7 @@ impl Step for Rustfmt {
464465

465466
cargo.add_rustc_lib_path(builder, compiler);
466467

468+
builder.msg_sysroot_tool(Kind::Test, compiler.stage, "rustfmt", host, host);
467469
run_cargo_test(cargo, &[], &[], "rustfmt", compiler, host, builder);
468470
}
469471
}
@@ -556,6 +558,13 @@ impl Miri {
556558
cargo.env("RUST_BACKTRACE", "1");
557559

558560
let mut cargo = Command::from(cargo);
561+
let _guard = builder.msg(
562+
Kind::Build,
563+
compiler.stage + 1,
564+
"miri sysroot",
565+
compiler.host,
566+
compiler.host,
567+
);
559568
builder.run(&mut cargo);
560569

561570
// # Determine where Miri put its sysroot.
@@ -633,6 +642,8 @@ impl Step for Miri {
633642
SourceType::InTree,
634643
&[],
635644
);
645+
let _guard = builder.msg_sysroot_tool(Kind::Test, compiler.stage, "miri", host, host);
646+
636647
cargo.add_rustc_lib_path(builder, compiler);
637648

638649
// miri tests need to know about the stage sysroot
@@ -801,6 +812,8 @@ impl Step for Clippy {
801812
cargo.env("BLESS", "Gesundheit");
802813
}
803814

815+
builder.msg_sysroot_tool(Kind::Test, compiler.stage, "clippy", host, host);
816+
804817
if builder.try_run(&mut cargo).is_ok() {
805818
// The tests succeeded; nothing to do.
806819
return;
@@ -1056,6 +1069,13 @@ impl Step for RustdocGUI {
10561069
}
10571070

10581071
let _time = util::timeit(&builder);
1072+
let _guard = builder.msg_sysroot_tool(
1073+
Kind::Test,
1074+
self.compiler.stage,
1075+
"rustdoc-gui",
1076+
self.compiler.host,
1077+
self.target,
1078+
);
10591079
crate::render_tests::try_run_tests(builder, &mut cmd, true);
10601080
}
10611081
}

0 commit comments

Comments
 (0)