@@ -225,8 +225,11 @@ impl Step for ToolStateCheck {
225225 ) ;
226226 }
227227 }
228- // publish_toolstate.py will be responsible for creating
229- // comments/issues warning people if there is a regression.
228+ // `publish_toolstate.py` is responsible for updating
229+ // `latest.json` and creating comments/issues warning people
230+ // if there is a regression. That all happens in a separate CI
231+ // job on the master branch once the PR has passed all tests
232+ // on the `auto` branch.
230233 }
231234 }
232235
@@ -385,7 +388,7 @@ fn commit_toolstate_change(current_toolstate: &ToolstateData) {
385388 // Upload the test results (the new commit-to-toolstate mapping) to the toolstate repo.
386389 // This does *not* change the "current toolstate"; that only happens post-landing
387390 // via `src/ci/docker/publish_toolstate.sh`.
388- change_toolstate ( & current_toolstate) ;
391+ publish_test_results ( & current_toolstate) ;
389392
390393 // `git commit` failing means nothing to commit.
391394 let status = t ! ( Command :: new( "git" )
@@ -434,7 +437,12 @@ fn commit_toolstate_change(current_toolstate: &ToolstateData) {
434437 }
435438}
436439
437- fn change_toolstate ( current_toolstate : & ToolstateData ) {
440+ /// Updates the "history" files with the latest results.
441+ ///
442+ /// These results will later be promoted to `latest.json` by the
443+ /// `publish_toolstate.py` script if the PR passes all tests and is merged to
444+ /// master.
445+ fn publish_test_results ( current_toolstate : & ToolstateData ) {
438446 let commit = t ! ( std:: process:: Command :: new( "git" ) . arg( "rev-parse" ) . arg( "HEAD" ) . output( ) ) ;
439447 let commit = t ! ( String :: from_utf8( commit. stdout) ) ;
440448
0 commit comments