Skip to content

Commit 9f29097

Browse files
committed
ci(mobile-e2e): scope concurrency by platform so iOS+Android run in parallel
Previous concurrency group was keyed only by github.ref, so dispatches from both iOS and Android compat gates against the same receiver branch share the same group. With cancel-in-progress: true, firing the Android gate cancels an in-flight iOS run (and vice-versa). Scope the group by which platform's compat gate fired the dispatch (ios / android / full) so the two can run concurrently. Rapid re-dispatch within the same scope still cancels (intended behavior).
1 parent 5fd2b22 commit 9f29097

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/mobile-e2e.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@ env:
7373
NPM_CONFIG_REGISTRY: https://registry.npmjs.org/
7474

7575
concurrency:
76-
group: mobile-e2e-${{ github.ref }}
76+
# Scope by platform so iOS and Android compat-gate dispatches can run in
77+
# parallel without cancelling each other. A rapid re-dispatch with the
78+
# same platform scope still cancels the in-flight one (intended).
79+
group: >-
80+
mobile-e2e-${{ github.ref }}-${{
81+
(inputs.clerk_ios_ref != '' && inputs.clerk_android_ref == '' && 'ios') ||
82+
(inputs.clerk_android_ref != '' && inputs.clerk_ios_ref == '' && 'android') ||
83+
'full'
84+
}}
7785
cancel-in-progress: true
7886

7987
jobs:

0 commit comments

Comments
 (0)