[AMD] Update AMD CI workflow concurrency group (#24065)
Co-authored-by: bingxche <bingxche@amd.com>
This commit is contained in:
co-authored by
bingxche
parent
e5c2a9b6cf
commit
155e333039
@@ -99,8 +99,9 @@ concurrency:
|
|||||||
# When called via workflow_call with ref set, use a unique group per caller run to avoid
|
# When called via workflow_call with ref set, use a unique group per caller run to avoid
|
||||||
# collisions with direct schedule/push triggers. We use inputs.ref (not github.event_name)
|
# collisions with direct schedule/push triggers. We use inputs.ref (not github.event_name)
|
||||||
# to detect this, because github.event_name inherits from the caller in workflow_call.
|
# to detect this, because github.event_name inherits from the caller in workflow_call.
|
||||||
group: nightly-test-amd-rocm720-${{ inputs.ref && format('caller-{0}', github.run_id) || github.ref }}
|
# Manual dispatch runs also get unique groups so they never cancel each other.
|
||||||
cancel-in-progress: ${{ !inputs.ref && github.event_name != 'workflow_call' }}
|
group: nightly-test-amd-rocm720-${{ github.event_name == 'workflow_dispatch' && format('manual-{0}', github.run_id) || inputs.ref && format('caller-{0}', github.run_id) || github.ref }}
|
||||||
|
cancel-in-progress: ${{ !inputs.ref && github.event_name != 'workflow_call' && github.event_name != 'workflow_dispatch' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# ============================================== MI30x ROCm 7.2 Unit Tests ==============================================
|
# ============================================== MI30x ROCm 7.2 Unit Tests ==============================================
|
||||||
|
|||||||
@@ -99,8 +99,9 @@ concurrency:
|
|||||||
# When called via workflow_call with ref set, use a unique group per caller run to avoid
|
# When called via workflow_call with ref set, use a unique group per caller run to avoid
|
||||||
# collisions with direct schedule/push triggers. We use inputs.ref (not github.event_name)
|
# collisions with direct schedule/push triggers. We use inputs.ref (not github.event_name)
|
||||||
# to detect this, because github.event_name inherits from the caller in workflow_call.
|
# to detect this, because github.event_name inherits from the caller in workflow_call.
|
||||||
group: nightly-test-amd-${{ inputs.ref && format('caller-{0}', github.run_id) || github.ref }}
|
# Manual dispatch runs also get unique groups so they never cancel each other.
|
||||||
cancel-in-progress: ${{ !inputs.ref && github.event_name != 'workflow_call' }}
|
group: nightly-test-amd-${{ github.event_name == 'workflow_dispatch' && format('manual-{0}', github.run_id) || inputs.ref && format('caller-{0}', github.run_id) || github.ref }}
|
||||||
|
cancel-in-progress: ${{ !inputs.ref && github.event_name != 'workflow_call' && github.event_name != 'workflow_dispatch' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# ============================================== MI30x Unit Tests ==============================================
|
# ============================================== MI30x Unit Tests ==============================================
|
||||||
|
|||||||
@@ -100,8 +100,9 @@ concurrency:
|
|||||||
# When called via workflow_call with run_all_tests=true, use a unique group per run to
|
# When called via workflow_call with run_all_tests=true, use a unique group per run to
|
||||||
# avoid collisions with direct schedule/workflow_dispatch triggers. We use run_all_tests
|
# avoid collisions with direct schedule/workflow_dispatch triggers. We use run_all_tests
|
||||||
# (not github.event_name) to detect this, because github.event_name inherits from the caller.
|
# (not github.event_name) to detect this, because github.event_name inherits from the caller.
|
||||||
group: pr-test-amd-rocm720-${{ inputs.run_all_tests && format('full-{0}', github.run_id) || inputs.pr_head_sha || inputs.ref || github.ref }}
|
# Manual dispatch runs also get unique groups so they never cancel each other.
|
||||||
cancel-in-progress: ${{ !inputs.run_all_tests && github.event_name != 'workflow_call' }}
|
group: pr-test-amd-rocm720-${{ (inputs.run_all_tests || github.event_name == 'workflow_dispatch') && format('full-{0}', github.run_id) || inputs.pr_head_sha || inputs.ref || github.ref }}
|
||||||
|
cancel-in-progress: ${{ !inputs.run_all_tests && github.event_name != 'workflow_call' && github.event_name != 'workflow_dispatch' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
call-gate:
|
call-gate:
|
||||||
|
|||||||
@@ -96,10 +96,10 @@ env:
|
|||||||
DOCKERHUB_AMD_TOKEN: ${{ secrets.DOCKERHUB_AMD_TOKEN }}
|
DOCKERHUB_AMD_TOKEN: ${{ secrets.DOCKERHUB_AMD_TOKEN }}
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Scheduled and run_all_tests runs get unique groups (never cancel each other).
|
# Scheduled, run_all_tests, and manual dispatch runs get unique groups (never cancel each other).
|
||||||
# PR runs share a group per branch so new pushes cancel stale runs.
|
# PR runs share a group per branch so new pushes cancel stale runs.
|
||||||
group: pr-test-amd-${{ (inputs.run_all_tests || github.event_name == 'schedule') && format('full-{0}', github.run_id) || inputs.pr_head_sha || inputs.ref || github.ref }}
|
group: pr-test-amd-${{ (inputs.run_all_tests || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && format('full-{0}', github.run_id) || inputs.pr_head_sha || inputs.ref || github.ref }}
|
||||||
cancel-in-progress: ${{ !inputs.run_all_tests && github.event_name != 'workflow_call' && github.event_name != 'schedule' }}
|
cancel-in-progress: ${{ !inputs.run_all_tests && github.event_name != 'workflow_call' && github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
call-gate:
|
call-gate:
|
||||||
|
|||||||
Reference in New Issue
Block a user