Skip to content

Commit c052a49

Browse files
committed
Rollup merge of rust-lang#52446 - kennytm:block-beta-on-clippy, r=nrc
Block beta if clippy breaks. Also, don't fail master pull request when an unrelated tool is not test-pass.
2 parents 9ea0a85 + a9bcbb2 commit c052a49

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

+9-7
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ status_check() {
8181
check_dispatch $1 beta rust-by-example src/doc/rust-by-example
8282
check_dispatch $1 beta rls src/tools/rls
8383
check_dispatch $1 beta rustfmt src/tools/rustfmt
84+
check_dispatch $1 beta clippy-driver src/tools/clippy
8485
# these tools are not required for beta to successfully branch
85-
check_dispatch $1 nightly clippy-driver src/tools/clippy
8686
check_dispatch $1 nightly miri src/tools/miri
8787
}
8888

@@ -106,12 +106,14 @@ $COMMIT\t$(cat "$TOOLSTATE_FILE")
106106
fi
107107
}
108108

109-
if [ "$RUST_RELEASE_CHANNEL" = nightly -a -n "${TOOLSTATE_REPO_ACCESS_TOKEN+is_set}" ]; then
110-
. "$(dirname $0)/repo.sh"
111-
MESSAGE_FILE=$(mktemp -t msg.XXXXXX)
112-
echo "($OS CI update)" > "$MESSAGE_FILE"
113-
commit_toolstate_change "$MESSAGE_FILE" change_toolstate
114-
rm -f "$MESSAGE_FILE"
109+
if [ "$RUST_RELEASE_CHANNEL" = nightly ]; then
110+
if [ -n "${TOOLSTATE_REPO_ACCESS_TOKEN+is_set}" ]; then
111+
. "$(dirname $0)/repo.sh"
112+
MESSAGE_FILE=$(mktemp -t msg.XXXXXX)
113+
echo "($OS CI update)" > "$MESSAGE_FILE"
114+
commit_toolstate_change "$MESSAGE_FILE" change_toolstate
115+
rm -f "$MESSAGE_FILE"
116+
fi
115117
exit 0
116118
fi
117119

0 commit comments

Comments
 (0)