@@ -117,12 +117,7 @@ impl Step for CrateBootstrap {
117
117
SourceType :: InTree ,
118
118
& [ ] ,
119
119
) ;
120
- builder. info ( & format ! (
121
- "{} {} stage0 ({})" ,
122
- builder. kind. description( ) ,
123
- path,
124
- bootstrap_host,
125
- ) ) ;
120
+ let _group = builder. msg ( Kind :: Test , compiler. stage , path, compiler. host , bootstrap_host) ;
126
121
let crate_name = path. rsplit_once ( '/' ) . unwrap ( ) . 1 ;
127
122
run_cargo_test ( cargo, & [ ] , & [ ] , crate_name, compiler, bootstrap_host, builder) ;
128
123
}
@@ -163,6 +158,15 @@ You can skip linkcheck with --exclude src/tools/linkchecker"
163
158
// Test the linkchecker itself.
164
159
let bootstrap_host = builder. config . build ;
165
160
let compiler = builder. compiler ( 0 , bootstrap_host) ;
161
+
162
+ let self_test_group = builder. msg (
163
+ Kind :: Test ,
164
+ compiler. stage ,
165
+ "linkchecker self tests" ,
166
+ bootstrap_host,
167
+ bootstrap_host,
168
+ ) ;
169
+
166
170
let cargo = tool:: prepare_tool_cargo (
167
171
builder,
168
172
compiler,
@@ -174,6 +178,7 @@ You can skip linkcheck with --exclude src/tools/linkchecker"
174
178
& [ ] ,
175
179
) ;
176
180
run_cargo_test ( cargo, & [ ] , & [ ] , "linkchecker" , compiler, bootstrap_host, builder) ;
181
+ drop ( self_test_group) ;
177
182
178
183
if builder. doc_tests == DocTests :: No {
179
184
return ;
@@ -182,12 +187,14 @@ You can skip linkcheck with --exclude src/tools/linkchecker"
182
187
// Build all the default documentation.
183
188
builder. default_doc ( & [ ] ) ;
184
189
190
+ // Build the linkchecker before calling `msg`, since GHA doesn't support nested groups.
191
+ let mut linkchecker = builder. tool_cmd ( Tool :: Linkchecker ) ;
192
+
185
193
// Run the linkchecker.
194
+ let _guard =
195
+ builder. msg ( Kind :: Test , compiler. stage , "Linkcheck" , bootstrap_host, bootstrap_host) ;
186
196
let _time = util:: timeit ( & builder) ;
187
- try_run (
188
- builder,
189
- builder. tool_cmd ( Tool :: Linkchecker ) . arg ( builder. out . join ( host. triple ) . join ( "doc" ) ) ,
190
- ) ;
197
+ try_run ( builder, linkchecker. arg ( builder. out . join ( host. triple ) . join ( "doc" ) ) ) ;
191
198
}
192
199
193
200
fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
@@ -2669,6 +2676,10 @@ impl Step for Bootstrap {
2669
2676
2670
2677
/// Tests the build system itself.
2671
2678
fn run ( self , builder : & Builder < ' _ > ) {
2679
+ let host = builder. config . build ;
2680
+ let compiler = builder. compiler ( 0 , host) ;
2681
+ let _guard = builder. msg ( Kind :: Test , 0 , "bootstrap" , host, host) ;
2682
+
2672
2683
let mut check_bootstrap = Command :: new ( & builder. python ( ) ) ;
2673
2684
check_bootstrap
2674
2685
. args ( [ "-m" , "unittest" , "bootstrap_test.py" ] )
@@ -2679,8 +2690,6 @@ impl Step for Bootstrap {
2679
2690
// Use `python -m unittest` manually if you want to pass arguments.
2680
2691
try_run ( builder, & mut check_bootstrap) ;
2681
2692
2682
- let host = builder. config . build ;
2683
- let compiler = builder. compiler ( 0 , host) ;
2684
2693
let mut cmd = Command :: new ( & builder. initial_cargo ) ;
2685
2694
cmd. arg ( "test" )
2686
2695
. current_dir ( builder. src . join ( "src/bootstrap" ) )
@@ -2748,7 +2757,13 @@ impl Step for TierCheck {
2748
2757
cargo. arg ( "--verbose" ) ;
2749
2758
}
2750
2759
2751
- builder. info ( "platform support check" ) ;
2760
+ let _guard = builder. msg (
2761
+ Kind :: Test ,
2762
+ self . compiler . stage ,
2763
+ "platform support check" ,
2764
+ self . compiler . host ,
2765
+ self . compiler . host ,
2766
+ ) ;
2752
2767
try_run ( builder, & mut cargo. into ( ) ) ;
2753
2768
}
2754
2769
}
@@ -2796,8 +2811,6 @@ impl Step for RustInstaller {
2796
2811
2797
2812
/// Ensure the version placeholder replacement tool builds
2798
2813
fn run ( self , builder : & Builder < ' _ > ) {
2799
- builder. info ( "test rust-installer" ) ;
2800
-
2801
2814
let bootstrap_host = builder. config . build ;
2802
2815
let compiler = builder. compiler ( 0 , bootstrap_host) ;
2803
2816
let cargo = tool:: prepare_tool_cargo (
@@ -2810,6 +2823,14 @@ impl Step for RustInstaller {
2810
2823
SourceType :: InTree ,
2811
2824
& [ ] ,
2812
2825
) ;
2826
+
2827
+ let _guard = builder. msg (
2828
+ Kind :: Test ,
2829
+ compiler. stage ,
2830
+ "rust-installer" ,
2831
+ bootstrap_host,
2832
+ bootstrap_host,
2833
+ ) ;
2813
2834
run_cargo_test ( cargo, & [ ] , & [ ] , "installer" , compiler, bootstrap_host, builder) ;
2814
2835
2815
2836
// We currently don't support running the test.sh script outside linux(?) environments.
0 commit comments