Skip to content

Commit 10f250f

Browse files
committed
Give each called target its own concurrency group so siblings stop cancelling each other
1 parent be6753e commit 10f250f

12 files changed

Lines changed: 48 additions & 48 deletions

File tree

.github/workflows/android.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ on:
1717
default: ''
1818
workflow_dispatch:
1919

20-
# github.workflow is the CALLER's name in a called workflow, so a plain group
21-
# collides with every sibling the nightly calls and they cancel each other.
22-
# inputs is null unless we were called, so key off that.
20+
# Hardcode this workflow's OWN name: github.workflow is the CALLER's in a called
21+
# workflow, so keying on it put all 12 targets in one group -- and GitHub cancels
22+
# the previously-pending run in a group, so only the last target survived.
2323
concurrency:
24-
group: ${{ inputs.caller_run_id && format('{0}-call-{1}', github.workflow, inputs.caller_run_id) || format('{0}-{1}', github.workflow, github.ref) }}
24+
group: ${{ inputs.caller_run_id && format('android-call-{0}', inputs.caller_run_id) || format('android-{0}', github.ref) }}
2525
cancel-in-progress: ${{ !inputs.caller_run_id }}
2626

2727
permissions:

.github/workflows/cmake.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ on:
1717
default: ''
1818
workflow_dispatch:
1919

20-
# github.workflow is the CALLER's name in a called workflow, so a plain group
21-
# collides with every sibling the nightly calls and they cancel each other.
22-
# inputs is null unless we were called, so key off that.
20+
# Hardcode this workflow's OWN name: github.workflow is the CALLER's in a called
21+
# workflow, so keying on it put all 12 targets in one group -- and GitHub cancels
22+
# the previously-pending run in a group, so only the last target survived.
2323
concurrency:
24-
group: ${{ inputs.caller_run_id && format('{0}-call-{1}', github.workflow, inputs.caller_run_id) || format('{0}-{1}', github.workflow, github.ref) }}
24+
group: ${{ inputs.caller_run_id && format('cmake-call-{0}', inputs.caller_run_id) || format('cmake-{0}', github.ref) }}
2525
cancel-in-progress: ${{ !inputs.caller_run_id }}
2626

2727
permissions:

.github/workflows/csharp.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ on:
1717
default: ''
1818
workflow_dispatch:
1919

20-
# github.workflow is the CALLER's name in a called workflow, so a plain group
21-
# collides with every sibling the nightly calls and they cancel each other.
22-
# inputs is null unless we were called, so key off that.
20+
# Hardcode this workflow's OWN name: github.workflow is the CALLER's in a called
21+
# workflow, so keying on it put all 12 targets in one group -- and GitHub cancels
22+
# the previously-pending run in a group, so only the last target survived.
2323
concurrency:
24-
group: ${{ inputs.caller_run_id && format('{0}-call-{1}', github.workflow, inputs.caller_run_id) || format('{0}-{1}', github.workflow, github.ref) }}
24+
group: ${{ inputs.caller_run_id && format('csharp-call-{0}', inputs.caller_run_id) || format('csharp-{0}', github.ref) }}
2525
cancel-in-progress: ${{ !inputs.caller_run_id }}
2626

2727
permissions:

.github/workflows/ebpf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ on:
1717
default: ''
1818
workflow_dispatch:
1919

20-
# github.workflow is the CALLER's name in a called workflow, so a plain group
21-
# collides with every sibling the nightly calls and they cancel each other.
22-
# inputs is null unless we were called, so key off that.
20+
# Hardcode this workflow's OWN name: github.workflow is the CALLER's in a called
21+
# workflow, so keying on it put all 12 targets in one group -- and GitHub cancels
22+
# the previously-pending run in a group, so only the last target survived.
2323
concurrency:
24-
group: ${{ inputs.caller_run_id && format('{0}-call-{1}', github.workflow, inputs.caller_run_id) || format('{0}-{1}', github.workflow, github.ref) }}
24+
group: ${{ inputs.caller_run_id && format('ebpf-call-{0}', inputs.caller_run_id) || format('ebpf-{0}', github.ref) }}
2525
cancel-in-progress: ${{ !inputs.caller_run_id }}
2626

2727
permissions:

.github/workflows/emulated.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ on:
2424
default: ''
2525
workflow_dispatch:
2626

27-
# github.workflow is the CALLER's name in a called workflow, so a plain group
28-
# collides with every sibling the nightly calls and they cancel each other.
29-
# inputs is null unless we were called, so key off that.
27+
# Hardcode this workflow's OWN name: github.workflow is the CALLER's in a called
28+
# workflow, so keying on it put all 12 targets in one group -- and GitHub cancels
29+
# the previously-pending run in a group, so only the last target survived.
3030
concurrency:
31-
group: ${{ inputs.caller_run_id && format('{0}-call-{1}', github.workflow, inputs.caller_run_id) || format('{0}-{1}', github.workflow, github.ref) }}
31+
group: ${{ inputs.caller_run_id && format('emulated-call-{0}', inputs.caller_run_id) || format('emulated-{0}', github.ref) }}
3232
cancel-in-progress: ${{ !inputs.caller_run_id }}
3333

3434
permissions:

.github/workflows/esp32.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ on:
1717
default: ''
1818
workflow_dispatch:
1919

20-
# github.workflow is the CALLER's name in a called workflow, so a plain group
21-
# collides with every sibling the nightly calls and they cancel each other.
22-
# inputs is null unless we were called, so key off that.
20+
# Hardcode this workflow's OWN name: github.workflow is the CALLER's in a called
21+
# workflow, so keying on it put all 12 targets in one group -- and GitHub cancels
22+
# the previously-pending run in a group, so only the last target survived.
2323
concurrency:
24-
group: ${{ inputs.caller_run_id && format('{0}-call-{1}', github.workflow, inputs.caller_run_id) || format('{0}-{1}', github.workflow, github.ref) }}
24+
group: ${{ inputs.caller_run_id && format('esp32-call-{0}', inputs.caller_run_id) || format('esp32-{0}', github.ref) }}
2525
cancel-in-progress: ${{ !inputs.caller_run_id }}
2626

2727
permissions:

.github/workflows/fullstack.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ on:
1717
default: ''
1818
workflow_dispatch:
1919

20-
# github.workflow is the CALLER's name in a called workflow, so a plain group
21-
# collides with every sibling the nightly calls and they cancel each other.
22-
# inputs is null unless we were called, so key off that.
20+
# Hardcode this workflow's OWN name: github.workflow is the CALLER's in a called
21+
# workflow, so keying on it put all 12 targets in one group -- and GitHub cancels
22+
# the previously-pending run in a group, so only the last target survived.
2323
concurrency:
24-
group: ${{ inputs.caller_run_id && format('{0}-call-{1}', github.workflow, inputs.caller_run_id) || format('{0}-{1}', github.workflow, github.ref) }}
24+
group: ${{ inputs.caller_run_id && format('fullstack-call-{0}', inputs.caller_run_id) || format('fullstack-{0}', github.ref) }}
2525
cancel-in-progress: ${{ !inputs.caller_run_id }}
2626

2727
permissions:

.github/workflows/java.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ on:
1717
default: ''
1818
workflow_dispatch:
1919

20-
# github.workflow is the CALLER's name in a called workflow, so a plain group
21-
# collides with every sibling the nightly calls and they cancel each other.
22-
# inputs is null unless we were called, so key off that.
20+
# Hardcode this workflow's OWN name: github.workflow is the CALLER's in a called
21+
# workflow, so keying on it put all 12 targets in one group -- and GitHub cancels
22+
# the previously-pending run in a group, so only the last target survived.
2323
concurrency:
24-
group: ${{ inputs.caller_run_id && format('{0}-call-{1}', github.workflow, inputs.caller_run_id) || format('{0}-{1}', github.workflow, github.ref) }}
24+
group: ${{ inputs.caller_run_id && format('java-call-{0}', inputs.caller_run_id) || format('java-{0}', github.ref) }}
2525
cancel-in-progress: ${{ !inputs.caller_run_id }}
2626

2727
permissions:

.github/workflows/puf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ on:
1717
default: ''
1818
workflow_dispatch:
1919

20-
# github.workflow is the CALLER's name in a called workflow, so a plain group
21-
# collides with every sibling the nightly calls and they cancel each other.
22-
# inputs is null unless we were called, so key off that.
20+
# Hardcode this workflow's OWN name: github.workflow is the CALLER's in a called
21+
# workflow, so keying on it put all 12 targets in one group -- and GitHub cancels
22+
# the previously-pending run in a group, so only the last target survived.
2323
concurrency:
24-
group: ${{ inputs.caller_run_id && format('{0}-call-{1}', github.workflow, inputs.caller_run_id) || format('{0}-{1}', github.workflow, github.ref) }}
24+
group: ${{ inputs.caller_run_id && format('puf-call-{0}', inputs.caller_run_id) || format('puf-{0}', github.ref) }}
2525
cancel-in-progress: ${{ !inputs.caller_run_id }}
2626

2727
permissions:

.github/workflows/rpi-pico.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ on:
1717
default: ''
1818
workflow_dispatch:
1919

20-
# github.workflow is the CALLER's name in a called workflow, so a plain group
21-
# collides with every sibling the nightly calls and they cancel each other.
22-
# inputs is null unless we were called, so key off that.
20+
# Hardcode this workflow's OWN name: github.workflow is the CALLER's in a called
21+
# workflow, so keying on it put all 12 targets in one group -- and GitHub cancels
22+
# the previously-pending run in a group, so only the last target survived.
2323
concurrency:
24-
group: ${{ inputs.caller_run_id && format('{0}-call-{1}', github.workflow, inputs.caller_run_id) || format('{0}-{1}', github.workflow, github.ref) }}
24+
group: ${{ inputs.caller_run_id && format('rpi-pico-call-{0}', inputs.caller_run_id) || format('rpi-pico-{0}', github.ref) }}
2525
cancel-in-progress: ${{ !inputs.caller_run_id }}
2626

2727
permissions:

0 commit comments

Comments
 (0)