File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
src/ci/docker/x86_64-gnu-tools Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 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+
48import sys
59import 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.
814REGRESSION_OK = ["rustc-guide" , "miri" , "embedded-book" ]
915
1016if __name__ == '__main__' :
Original file line number Diff line number Diff 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.
8285status_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}
You can’t perform that action at this time.
0 commit comments