Skip to content

Commit 1b68b92

Browse files
committed
Auto merge of #50613 - kennytm:update-toolstate-with-highfive, r=<try>
[WIP — checking permission] Migrate the toolstate update bot to rust-highfive Rationale: Only members of the rust-lang organization can mention its teams. That means #50434 has no effect if we are still using @kennytm-githubbot.
2 parents 7bfa20b + 859bcd6 commit 1b68b92

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ matrix:
1313
include:
1414
# Images used in testing PR and try-build should be run first.
1515
- env: IMAGE=x86_64-gnu-llvm-3.9 RUST_BACKTRACE=1
16-
if: type = pull_request OR branch = auto
16+
if: type = pull_request AND branch = auto
1717

1818
- env: IMAGE=dist-x86_64-linux DEPLOY=1
19-
if: branch = try OR branch = auto
19+
if: branch = try AND branch = auto
2020

2121
# "alternate" deployments, these are "nightlies" but have LLVM assertions
2222
# turned on, they're deployed to a different location primarily for
2323
# additional testing.
2424
- env: IMAGE=dist-x86_64-linux DEPLOY_ALT=1 CI_JOB_NAME=dist-x86_64-linux-alt
25-
if: branch = try OR branch = auto
25+
if: branch = try AND branch = auto
2626

2727
- env: >
2828
RUST_CHECK_TARGET=dist
@@ -169,15 +169,15 @@ matrix:
169169
- env: IMAGE=x86_64-gnu-aux
170170
if: branch = auto
171171
- env: IMAGE=x86_64-gnu-tools
172-
if: branch = auto
172+
if: branch = try
173173
- env: IMAGE=x86_64-gnu-debug
174174
if: branch = auto
175175
- env: IMAGE=x86_64-gnu-nopt
176176
if: branch = auto
177177
- env: IMAGE=x86_64-gnu-distcheck
178178
if: branch = auto
179179
- env: IMAGE=mingw-check
180-
if: type = pull_request OR branch = auto
180+
if: type = pull_request AND branch = auto
181181

182182
- stage: publish toolstate
183183
if: branch = master AND type = push
@@ -197,7 +197,7 @@ env:
197197
# AWS_SECRET_ACCESS_KEY=...
198198
- secure: "j96XxTVOSUf4s4r4htIxn/fvIa5DWbMgLqWl7r8z2QfgUwscmkMXAwXuFNc7s7bGTpV/+CgDiMFFM6BAFLGKutytIF6oA02s9b+usQYnM0th7YQ2AIgm9GtMTJCJp4AoyfFmh8F2faUICBZlfVLUJ34udHEe35vOklix+0k4WDo="
199199
# TOOLSTATE_REPO_ACCESS_TOKEN=...
200-
- secure: "cFh8thThqEJLC98XKI5pfqflUzOlxsYPRW20AWRaYOOgYHPTiGWypTXiPbGSKaeAXTZoOA+DpQtEmefc0U6lt9dHc7a/MIaK6isFurjlnKYiLOeTruzyu1z7PWCeZ/jKXsU2RK/88DBtlNwfMdaMIeuKj14IVfpepPPL71ETbuk="
200+
- secure: "ESfcXqv4N2VMhqi2iIyw6da9VrsA78I4iR1asouCaq4hzTTrkB4WNRrfURy6xg72gQ4nMhtRJbB0/2jmc9Cu1+g2CzXtyiL223aJ5CKrXdcvbitopQSDfp07dMWm+UED+hNFEanpErKAeU/6FM3A+J+60PMk8MCF1h9tqNRISJw="
201201

202202
before_install:
203203
# We'll use the AWS cli to download/upload cached docker layers, so install

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ environment:
66
secure: 7Y+JiquYedOAgnUU26uL0DPzrxmTtR+qIwG6rNKSuWDffqU3vVZxbGXim9QpTO80
77
SCCACHE_DIGEST: f808afabb4a4eb1d7112bcb3fa6be03b61e93412890c88e177c667eb37f46353d7ec294e559b16f9f4b5e894f2185fe7670a0df15fd064889ecbd80f0c34166c
88
TOOLSTATE_REPO_ACCESS_TOKEN:
9-
secure: PTZiSxJMVUZ0VnMR5i13E4OagbXfglj7pcskDQiKufVrDm13mLoI0vDJAEM35+bY
9+
secure: gKGlVktr7iuqCoYSxHxDE9ltLOKU0nYDEuQxvWbNxUIW7ri5ppn8L06jQzN0GGzN
1010

1111
# By default schannel checks revocation of certificates unlike some other SSL
1212
# backends, but we've historically had problems on CI where a revocation

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ touch "$TOOLSTATE_FILE"
2626
# Try to test all the tools and store the build/test success in the TOOLSTATE_FILE
2727

2828
set +e
29-
python2.7 "$X_PY" test --no-fail-fast \
29+
echo python2.7 "$X_PY" test --no-fail-fast \
3030
src/doc/book \
3131
src/doc/nomicon \
3232
src/doc/reference \

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@ commit_toolstate_change() {
6060
OLDFLAGS="$-"
6161
set -eu
6262

63-
git config --global user.email '34210020+rust-toolstate-update@users.noreply.github.com'
63+
BRANCH=test
64+
65+
git config --global user.email '7378925+rust-toolstate-update@users.noreply.github.com'
6466
git config --global user.name 'Rust Toolstate Update'
6567
git config --global credential.helper store
6668
printf 'https://%s:x-oauth-basic@github.com\n' "$TOOLSTATE_REPO_ACCESS_TOKEN" \
6769
> "$HOME/.git-credentials"
68-
git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
70+
git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git -b $BRANCH
6971

7072
cd rust-toolstate
7173
FAILURE=1
@@ -77,10 +79,10 @@ commit_toolstate_change() {
7779
FAILURE=0
7880
git commit -a -F "$MESSAGE_FILE" || break
7981
# On failure randomly sleep for 0 to 3 seconds as a crude way to introduce jittering.
80-
git push origin master && break || sleep $(LC_ALL=C tr -cd 0-3 < /dev/urandom | head -c 1)
82+
git push origin $BRANCH && break || sleep $(LC_ALL=C tr -cd 0-3 < /dev/urandom | head -c 1)
8183
FAILURE=1
82-
git fetch origin master
83-
git reset --hard origin/master
84+
git fetch origin $BRANCH
85+
git reset --hard origin/$BRANCH
8486
done
8587
cd ..
8688

0 commit comments

Comments
 (0)