Skip to content

Commit 169b4be

Browse files
committed
Attempt to fix over-keen restarter.
The restarter will restart jobs that were canceled by a newer change, causing the new and old change to fight it out. This change attempts to address this by treating the "canceled" message as an error.
1 parent 372c808 commit 169b4be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/libcxx-restart-preempted-jobs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
3333
with:
3434
script: |
35-
const failure_regex = /Process completed with exit code 1./
35+
const failure_regex = /(Process completed with exit code 1.)|(Canceling since a higher priority waiting request)/
3636
const preemption_regex = /(The runner has received a shutdown signal)|(The operation was canceled)/
3737
3838
const wf_run = context.payload.workflow_run
@@ -167,7 +167,7 @@ jobs:
167167
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
168168
with:
169169
script: |
170-
const FAILURE_REGEX = /Process completed with exit code 1./
170+
const FAILURE_REGEX = /(Process completed with exit code 1.)|(Canceling since a higher priority waiting request)/
171171
const PREEMPTION_REGEX = /(The runner has received a shutdown signal)|(The operation was canceled)/
172172
173173
function log(msg) {

0 commit comments

Comments
 (0)