diff options
| author | Ralf Jung <post@ralfj.de> | 2019-07-23 10:50:45 +0200 |
|---|---|---|
| committer | Who? Me?! <mark-i-m@users.noreply.github.com> | 2019-07-23 15:36:51 -0500 |
| commit | 92d432a0c710dfabf507de24ab95e491dc6a7449 (patch) | |
| tree | fc1248a51605b20c1ea300cb661c170be664b24c /src | |
| parent | 9c48ed4eab3d2f6050803479f76db0aafecdd7c7 (diff) | |
| download | rust-92d432a0c710dfabf507de24ab95e491dc6a7449.tar.gz rust-92d432a0c710dfabf507de24ab95e491dc6a7449.zip | |
more callback docs
Diffstat (limited to 'src')
| -rw-r--r-- | src/ci/docker/x86_64-gnu-tools/repo.sh | 11 | ||||
| -rwxr-xr-x | src/tools/publish_toolstate.py | 3 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/ci/docker/x86_64-gnu-tools/repo.sh b/src/ci/docker/x86_64-gnu-tools/repo.sh index 35ab7e2b8c8..f06129551a4 100644 --- a/src/ci/docker/x86_64-gnu-tools/repo.sh +++ b/src/ci/docker/x86_64-gnu-tools/repo.sh @@ -62,10 +62,13 @@ commit_toolstate_change() { MESSAGE_FILE="$1" shift for RETRY_COUNT in 1 2 3 4 5; do - # Call the callback; this will in the end call `change_toolstate` from - # `checktools.sh` if we are in the `auto` branch (pre-landing) or - # `src/tools/publish_toolstate.py` if we are in the `master` branch - # (post-landing). + # Call the callback. + # - If we are in the `auto` branch (pre-landing), this is called from `checktools.sh` and + # the callback is `change_toolstate` in that file. The purpose of this is to publish the + # test results (the new commit-to-toolstate mapping) in the toolstate repo. + # - If we are in the `master` branch (post-landing), this is called by the CI pipeline + # and the callback is `src/tools/publish_toolstate.py`. The purpose is to publish + # the new "current" toolstate in the toolstate repo. "$@" # `git commit` failing means nothing to commit. FAILURE=0 diff --git a/src/tools/publish_toolstate.py b/src/tools/publish_toolstate.py index 8f9061d7c18..0f1ae5e0eb2 100755 --- a/src/tools/publish_toolstate.py +++ b/src/tools/publish_toolstate.py @@ -1,6 +1,9 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +## This 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`). + import sys import re import os |
