Skip to content

Commit e8feece

Browse files
debug
Signed-off-by: Keval Morabia <[email protected]>
1 parent 8a748de commit e8feece

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

.github/workflows/_wait_for_dco.yml renamed to .github/workflows/_wait_for_checks.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
name: Wait for DCO
1+
name: Wait for checks
22

33
on:
44
workflow_call:
5+
inputs:
6+
match_pattern:
7+
required: true
8+
type: string
9+
delay:
10+
required: false
11+
type: string
12+
default: 10s
513

614
jobs:
715
wait:
@@ -14,8 +22,8 @@ jobs:
1422
uses: poseidon/[email protected]
1523
with:
1624
token: ${{ secrets.GITHUB_TOKEN }}
17-
match_pattern: "^DCO$"
18-
delay: 10s
25+
match_pattern: ${{ inputs.match_pattern }}
26+
delay: ${{ inputs.delay }}
1927
- name: No-op for non-PR events
2028
if: github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/heads/pull-request/')
2129
run: echo "Not a pull_request event"

.github/workflows/gpu_tests.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,23 @@ concurrency:
1919

2020
jobs:
2121
wait-dco:
22-
uses: ./.github/workflows/_wait_for_dco.yml
22+
uses: ./.github/workflows/_wait_for_checks.yml
2323
permissions:
2424
checks: read
2525
secrets: inherit
26-
gpu-tests:
26+
with:
27+
match_pattern: '^DCO$'
28+
wait-unit-tests:
2729
needs: [wait-dco]
30+
uses: ./.github/workflows/_wait_for_checks.yml
31+
permissions:
32+
checks: read
33+
secrets: inherit
34+
with:
35+
match_pattern: 'linux.*'
36+
delay: 60s
37+
gpu-tests:
38+
needs: [wait-unit-tests]
2839
# Runner list at https://github.com/nv-gha-runners/enterprise-runner-configuration/blob/main/docs/runner-groups.md
2940
runs-on: linux-amd64-gpu-h100-latest-1
3041
timeout-minutes: 60

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727

2828
jobs:
2929
wait-dco:
30-
uses: ./.github/workflows/_wait_for_dco.yml
30+
uses: ./.github/workflows/_wait_for_checks.yml
3131
permissions:
3232
checks: read
3333
secrets: inherit

0 commit comments

Comments
 (0)