@@ -225,8 +225,11 @@ impl Step for ToolStateCheck {
225
225
) ;
226
226
}
227
227
}
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.
230
233
}
231
234
}
232
235
@@ -385,7 +388,7 @@ fn commit_toolstate_change(current_toolstate: &ToolstateData) {
385
388
// Upload the test results (the new commit-to-toolstate mapping) to the toolstate repo.
386
389
// This does *not* change the "current toolstate"; that only happens post-landing
387
390
// via `src/ci/docker/publish_toolstate.sh`.
388
- change_toolstate ( & current_toolstate) ;
391
+ publish_test_results ( & current_toolstate) ;
389
392
390
393
// `git commit` failing means nothing to commit.
391
394
let status = t ! ( Command :: new( "git" )
@@ -434,7 +437,12 @@ fn commit_toolstate_change(current_toolstate: &ToolstateData) {
434
437
}
435
438
}
436
439
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 ) {
438
446
let commit = t ! ( std:: process:: Command :: new( "git" ) . arg( "rev-parse" ) . arg( "HEAD" ) . output( ) ) ;
439
447
let commit = t ! ( String :: from_utf8( commit. stdout) ) ;
440
448
0 commit comments