@@ -117,12 +117,7 @@ impl Step for CrateBootstrap {
117117 SourceType :: InTree ,
118118 & [ ] ,
119119 ) ;
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) ;
126121 let crate_name = path. rsplit_once ( '/' ) . unwrap ( ) . 1 ;
127122 run_cargo_test ( cargo, & [ ] , & [ ] , crate_name, compiler, bootstrap_host, builder) ;
128123 }
@@ -163,6 +158,15 @@ You can skip linkcheck with --exclude src/tools/linkchecker"
163158 // Test the linkchecker itself.
164159 let bootstrap_host = builder. config . build ;
165160 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+
166170 let cargo = tool:: prepare_tool_cargo (
167171 builder,
168172 compiler,
@@ -174,6 +178,7 @@ You can skip linkcheck with --exclude src/tools/linkchecker"
174178 & [ ] ,
175179 ) ;
176180 run_cargo_test ( cargo, & [ ] , & [ ] , "linkchecker" , compiler, bootstrap_host, builder) ;
181+ drop ( self_test_group) ;
177182
178183 if builder. doc_tests == DocTests :: No {
179184 return ;
@@ -182,12 +187,14 @@ You can skip linkcheck with --exclude src/tools/linkchecker"
182187 // Build all the default documentation.
183188 builder. default_doc ( & [ ] ) ;
184189
190+ // Build the linkchecker before calling `msg`, since GHA doesn't support nested groups.
191+ let mut linkchecker = builder. tool_cmd ( Tool :: Linkchecker ) ;
192+
185193 // Run the linkchecker.
194+ let _guard =
195+ builder. msg ( Kind :: Test , compiler. stage , "Linkcheck" , bootstrap_host, bootstrap_host) ;
186196 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" ) ) ) ;
191198 }
192199
193200 fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
@@ -2669,6 +2676,10 @@ impl Step for Bootstrap {
26692676
26702677 /// Tests the build system itself.
26712678 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+
26722683 let mut check_bootstrap = Command :: new ( & builder. python ( ) ) ;
26732684 check_bootstrap
26742685 . args ( [ "-m" , "unittest" , "bootstrap_test.py" ] )
@@ -2679,8 +2690,6 @@ impl Step for Bootstrap {
26792690 // Use `python -m unittest` manually if you want to pass arguments.
26802691 try_run ( builder, & mut check_bootstrap) ;
26812692
2682- let host = builder. config . build ;
2683- let compiler = builder. compiler ( 0 , host) ;
26842693 let mut cmd = Command :: new ( & builder. initial_cargo ) ;
26852694 cmd. arg ( "test" )
26862695 . current_dir ( builder. src . join ( "src/bootstrap" ) )
@@ -2748,7 +2757,13 @@ impl Step for TierCheck {
27482757 cargo. arg ( "--verbose" ) ;
27492758 }
27502759
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+ ) ;
27522767 try_run ( builder, & mut cargo. into ( ) ) ;
27532768 }
27542769}
@@ -2796,8 +2811,6 @@ impl Step for RustInstaller {
27962811
27972812 /// Ensure the version placeholder replacement tool builds
27982813 fn run ( self , builder : & Builder < ' _ > ) {
2799- builder. info ( "test rust-installer" ) ;
2800-
28012814 let bootstrap_host = builder. config . build ;
28022815 let compiler = builder. compiler ( 0 , bootstrap_host) ;
28032816 let cargo = tool:: prepare_tool_cargo (
@@ -2810,6 +2823,14 @@ impl Step for RustInstaller {
28102823 SourceType :: InTree ,
28112824 & [ ] ,
28122825 ) ;
2826+
2827+ let _guard = builder. msg (
2828+ Kind :: Test ,
2829+ compiler. stage ,
2830+ "rust-installer" ,
2831+ bootstrap_host,
2832+ bootstrap_host,
2833+ ) ;
28132834 run_cargo_test ( cargo, & [ ] , & [ ] , "installer" , compiler, bootstrap_host, builder) ;
28142835
28152836 // We currently don't support running the test.sh script outside linux(?) environments.
0 commit comments