Skip to content

Commit 92d432a

Browse files
RalfJungmark-i-m
authored andcommitted
more callback docs
1 parent 9c48ed4 commit 92d432a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/ci/docker/x86_64-gnu-tools/repo.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,13 @@ commit_toolstate_change() {
6262
MESSAGE_FILE="$1"
6363
shift
6464
for RETRY_COUNT in 1 2 3 4 5; do
65-
# Call the callback; this will in the end call `change_toolstate` from
66-
# `checktools.sh` if we are in the `auto` branch (pre-landing) or
67-
# `src/tools/publish_toolstate.py` if we are in the `master` branch
68-
# (post-landing).
65+
# Call the callback.
66+
# - If we are in the `auto` branch (pre-landing), this is called from `checktools.sh` and
67+
# the callback is `change_toolstate` in that file. The purpose of this is to publish the
68+
# test results (the new commit-to-toolstate mapping) in the toolstate repo.
69+
# - If we are in the `master` branch (post-landing), this is called by the CI pipeline
70+
# and the callback is `src/tools/publish_toolstate.py`. The purpose is to publish
71+
# the new "current" toolstate in the toolstate repo.
6972
"$@"
7073
# `git commit` failing means nothing to commit.
7174
FAILURE=0

src/tools/publish_toolstate.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4+
## This is set as callback for `src/ci/docker/x86_64-gnu-tools/repo.sh` by the CI scripts
5+
## when a new commit lands on `master` (i.e., after it passed all checks on `auto`).
6+
47
import sys
58
import re
69
import os

0 commit comments

Comments
 (0)