Skip to content

Commit 1b5f34c

Browse files
Wait for DCO before tests
Signed-off-by: Keval Morabia <[email protected]>
1 parent 7397ff1 commit 1b5f34c

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Wait for checks
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
match_pattern:
7+
description: Regex for check run names to wait for
8+
required: true
9+
type: string
10+
11+
jobs:
12+
wait:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
checks: read
16+
steps:
17+
- name: Wait for checks (PRs only)
18+
if: github.event_name == 'pull_request'
19+
uses: poseidon/[email protected]
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
match_pattern: ${{ inputs.match_pattern }}
23+
interval: 15s
24+
timeout: 60m
25+
delay: 15s

.github/workflows/gpu_tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@ concurrency:
1818
cancel-in-progress: true
1919

2020
jobs:
21+
wait-dco:
22+
uses: ./.github/workflows/_wait_for_checks.yml
23+
with:
24+
match_pattern: '^DCO$'
25+
wait-unit-tests:
26+
needs: [wait-dco]
27+
uses: ./.github/workflows/_wait_for_checks.yml
28+
with:
29+
match_pattern: 'Unit tests / linux*'
2130
gpu-tests:
31+
needs: [wait-unit-tests]
2232
# Runner list at https://github.com/nv-gha-runners/enterprise-runner-configuration/blob/main/docs/runner-groups.md
2333
runs-on: linux-amd64-gpu-h100-latest-1
2434
timeout-minutes: 60

.github/workflows/unit_tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ concurrency:
2626
cancel-in-progress: true
2727

2828
jobs:
29+
wait-dco:
30+
uses: ./.github/workflows/_wait_for_checks.yml
31+
with:
32+
match_pattern: '^DCO$'
2933
linux:
34+
needs: [wait-dco]
3035
runs-on: ubuntu-latest
3136
timeout-minutes: 30
3237
steps:

0 commit comments

Comments
 (0)