File tree 2 files changed +14
-3
lines changed
src/ci/docker/x86_64-gnu-tools
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# -*- coding: utf-8 -*-
3
3
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
+
4
8
import sys
5
9
import json
6
10
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.
8
14
REGRESSION_OK = ["rustc-guide" , "miri" , "embedded-book" ]
9
15
10
16
if __name__ == '__main__' :
Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ check_dispatch() {
79
79
# List all tools here.
80
80
# This function gets called with "submodule_changed" for each PR that changed a submodule,
81
81
# 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.
82
85
status_check () {
83
86
check_dispatch $1 beta book src/doc/book
84
87
check_dispatch $1 beta nomicon src/doc/nomicon
@@ -88,8 +91,10 @@ status_check() {
88
91
check_dispatch $1 beta rls src/tools/rls
89
92
check_dispatch $1 beta rustfmt src/tools/rustfmt
90
93
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.
93
98
check_dispatch $1 nightly miri src/tools/miri
94
99
check_dispatch $1 nightly embedded-book src/doc/embedded-book
95
100
}
You can’t perform that action at this time.
0 commit comments