Skip to content

Commit 2aa741a

Browse files
committed
Auto merge of #75995 - pietroalbini:ci-let-fallible-finish, r=Mark-Simulacrum
Disable cancel-outdated-builds for auto-fallible `cancel-outdated-builds` doesn't need to be enabled on fallible jobs, and it's actually making it harder for us to see if #71988 is fixed. This adds some temporary code to avoid `auto-fallible` jobs from being cancelled by our tooling. r? @Mark-Simulacrum
2 parents 397b390 + 19e70bf commit 2aa741a

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

.github/workflows/ci.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
6464
with:
6565
github_token: "${{ secrets.github_token }}"
66-
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
66+
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && !env.RUST_CI_TEMP_SKIP_CANCEL_OUTDATED"
6767
- name: configure the PR in which the error message will be posted
6868
run: "echo \"[CI_PR_NUMBER=$num]\""
6969
env:
@@ -167,7 +167,7 @@ jobs:
167167
uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
168168
with:
169169
github_token: "${{ secrets.github_token }}"
170-
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
170+
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && !env.RUST_CI_TEMP_SKIP_CANCEL_OUTDATED"
171171
- name: configure the PR in which the error message will be posted
172172
run: "echo \"[CI_PR_NUMBER=$num]\""
173173
env:
@@ -486,7 +486,7 @@ jobs:
486486
uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
487487
with:
488488
github_token: "${{ secrets.github_token }}"
489-
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
489+
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && !env.RUST_CI_TEMP_SKIP_CANCEL_OUTDATED"
490490
- name: configure the PR in which the error message will be posted
491491
run: "echo \"[CI_PR_NUMBER=$num]\""
492492
env:
@@ -589,6 +589,7 @@ jobs:
589589
NO_LLVM_ASSERTIONS: 1
590590
NO_DEBUG_ASSERTIONS: 1
591591
DIST_REQUIRE_ALL_TOOLS: 1
592+
RUST_CI_TEMP_SKIP_CANCEL_OUTDATED: 1
592593
os: macos-latest
593594
- name: dist-x86_64-apple-alt
594595
env:
@@ -598,6 +599,7 @@ jobs:
598599
MACOSX_DEPLOYMENT_TARGET: 10.7
599600
NO_LLVM_ASSERTIONS: 1
600601
NO_DEBUG_ASSERTIONS: 1
602+
RUST_CI_TEMP_SKIP_CANCEL_OUTDATED: 1
601603
os: macos-latest
602604
- name: x86_64-apple
603605
env:
@@ -608,6 +610,7 @@ jobs:
608610
MACOSX_STD_DEPLOYMENT_TARGET: 10.7
609611
NO_LLVM_ASSERTIONS: 1
610612
NO_DEBUG_ASSERTIONS: 1
613+
RUST_CI_TEMP_SKIP_CANCEL_OUTDATED: 1
611614
os: macos-latest
612615
timeout-minutes: 600
613616
runs-on: "${{ matrix.os }}"
@@ -622,7 +625,7 @@ jobs:
622625
uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
623626
with:
624627
github_token: "${{ secrets.github_token }}"
625-
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
628+
if: "success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && !env.RUST_CI_TEMP_SKIP_CANCEL_OUTDATED"
626629
- name: configure the PR in which the error message will be posted
627630
run: "echo \"[CI_PR_NUMBER=$num]\""
628631
env:

src/ci/github-actions/ci.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ x--expand-yaml-anchors--remove:
107107
uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
108108
with:
109109
github_token: "${{ secrets.github_token }}"
110-
if: success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'
110+
# TODO: remove the condition on RUST_CI_TEMP_SKIP_CANCEL_OUTDATED once
111+
# we remove the `auto-fallible` job.
112+
if: success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && !env.RUST_CI_TEMP_SKIP_CANCEL_OUTDATED
111113
<<: *step
112114

113115
# Rust Log Analyzer can't currently detect the PR number of a GitHub
@@ -609,6 +611,10 @@ jobs:
609611
NO_LLVM_ASSERTIONS: 1
610612
NO_DEBUG_ASSERTIONS: 1
611613
DIST_REQUIRE_ALL_TOOLS: 1
614+
615+
# TODO: remove once we move this job away from auto-fallible.
616+
# Also, remove the variable from the cancel-outdated-builds step
617+
RUST_CI_TEMP_SKIP_CANCEL_OUTDATED: 1
612618
<<: *job-macos-xl
613619

614620
- name: dist-x86_64-apple-alt
@@ -619,6 +625,10 @@ jobs:
619625
MACOSX_DEPLOYMENT_TARGET: 10.7
620626
NO_LLVM_ASSERTIONS: 1
621627
NO_DEBUG_ASSERTIONS: 1
628+
629+
# TODO: remove once we move this job away from auto-fallible.
630+
# Also, remove the variable from the cancel-outdated-builds step
631+
RUST_CI_TEMP_SKIP_CANCEL_OUTDATED: 1
622632
<<: *job-macos-xl
623633

624634
- name: x86_64-apple
@@ -630,6 +640,10 @@ jobs:
630640
MACOSX_STD_DEPLOYMENT_TARGET: 10.7
631641
NO_LLVM_ASSERTIONS: 1
632642
NO_DEBUG_ASSERTIONS: 1
643+
644+
# TODO: remove once we move this job away from auto-fallible.
645+
# Also, remove the variable from the cancel-outdated-builds step
646+
RUST_CI_TEMP_SKIP_CANCEL_OUTDATED: 1
633647
<<: *job-macos-xl
634648

635649
master:

0 commit comments

Comments
 (0)