more toolstate comments
This commit is contained in:
parent
0e1cd5935f
commit
a6d8c9c5eb
@ -330,11 +330,11 @@ fn prepare_toolstate_config(token: &str) {
|
||||
Err(_) => false,
|
||||
};
|
||||
if !success {
|
||||
panic!("git config key={} value={} successful (status: {:?})", key, value, status);
|
||||
panic!("git config key={} value={} failed (status: {:?})", key, value, status);
|
||||
}
|
||||
}
|
||||
|
||||
// If changing anything here, then please check that src/ci/publish_toolstate.sh is up to date
|
||||
// If changing anything here, then please check that `src/ci/publish_toolstate.sh` is up to date
|
||||
// as well.
|
||||
git_config("user.email", "7378925+rust-toolstate-update@users.noreply.github.com");
|
||||
git_config("user.name", "Rust Toolstate Update");
|
||||
@ -382,7 +382,9 @@ fn commit_toolstate_change(current_toolstate: &ToolstateData) {
|
||||
let message = format!("({} CI update)", OS.expect("linux/windows only"));
|
||||
let mut success = false;
|
||||
for _ in 1..=5 {
|
||||
// Update the toolstate results (the new commit-to-toolstate mapping) in the toolstate repo.
|
||||
// Upload the test results (the new commit-to-toolstate mapping) to the toolstate repo.
|
||||
// This does *not* change the "current toolstate"; that only happens post-landing
|
||||
// via `src/ci/docker/publish_toolstate.sh`.
|
||||
change_toolstate(¤t_toolstate);
|
||||
|
||||
// `git commit` failing means nothing to commit.
|
||||
|
@ -23,7 +23,9 @@ GIT_COMMIT_MSG="$(git log --format=%s -n1 HEAD)"
|
||||
cd rust-toolstate
|
||||
FAILURE=1
|
||||
for RETRY_COUNT in 1 2 3 4 5; do
|
||||
# The purpose is to publish the new "current" toolstate in the toolstate repo.
|
||||
# The purpose of this is to publish the new "current" toolstate in the toolstate repo.
|
||||
# This happens post-landing, on master.
|
||||
# (Publishing the per-commit test results happens pre-landing in src/bootstrap/toolstate.rs).
|
||||
"$(ciCheckoutPath)/src/tools/publish_toolstate.py" "$GIT_COMMIT" \
|
||||
"$GIT_COMMIT_MSG" \
|
||||
"$MESSAGE_FILE" \
|
||||
|
@ -1,11 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# This script publishes the new "current" toolstate in the toolstate repo (not to be
|
||||
# confused with publishing the test results, which happens in
|
||||
# `src/ci/docker/x86_64-gnu-tools/checktools.sh`).
|
||||
# It is set as callback for `src/ci/docker/x86_64-gnu-tools/repo.sh` by the CI scripts
|
||||
# when a new commit lands on `master` (i.e., after it passed all checks on `auto`).
|
||||
# This script computes the new "current" toolstate for the toolstate repo (not to be
|
||||
# confused with publishing the test results, which happens in `src/bootstrap/toolstate.rs`).
|
||||
# It gets called from `src/ci/publish_toolstate.sh` when a new commit lands on `master`
|
||||
# (i.e., after it passed all checks on `auto`).
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user