Skip to content

Commit 9c48ed4

Browse files
RalfJungmark-i-m
authored andcommitted
more comments for toolstate scripts
1 parent 1aa1079 commit 9c48ed4

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/ci/docker/x86_64-gnu-tools/checkregression.py

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

4+
## This script has two purposes: detect any tool that *regressed*, which is used
5+
## during the week before the beta branches to reject PRs; and detect any tool
6+
## that *changed* to see if we need to update the toolstate repo.
7+
48
import sys
59
import json
610

7-
# Regressions for these tools do not cause failure.
11+
# Regressions for these tools during the beta cutoff week do not cause failure.
12+
# See `status_check` in `checktools.sh` for tools that have to pass on the
13+
# beta/stable branches.
814
REGRESSION_OK = ["rustc-guide", "miri", "embedded-book"]
915

1016
if __name__ == '__main__':

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

+7-2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ check_dispatch() {
7979
# List all tools here.
8080
# This function gets called with "submodule_changed" for each PR that changed a submodule,
8181
# and with "beta_required" for each PR that lands on beta/stable.
82+
# The purpose of this function is to *reject* PRs if a tool is not "test-pass" and
83+
# (a) the tool's submodule has been updated, or (b) we landed on beta/stable and the
84+
# tool has to "test-pass" on that branch.
8285
status_check() {
8386
check_dispatch $1 beta book src/doc/book
8487
check_dispatch $1 beta nomicon src/doc/nomicon
@@ -88,8 +91,10 @@ status_check() {
8891
check_dispatch $1 beta rls src/tools/rls
8992
check_dispatch $1 beta rustfmt src/tools/rustfmt
9093
check_dispatch $1 beta clippy-driver src/tools/clippy
91-
# These tools are not required on the beta/stable branches.
92-
# They will still cause failure during the beta cutoff week, see `checkregression.py` for that.
94+
# These tools are not required on the beta/stable branches, but they *do* cause
95+
# PRs to fail if a submodule update does not fix them.
96+
# They will still cause failure during the beta cutoff week, unless `checkregression.py`
97+
# exempts them from that.
9398
check_dispatch $1 nightly miri src/tools/miri
9499
check_dispatch $1 nightly embedded-book src/doc/embedded-book
95100
}

0 commit comments

Comments
 (0)