File tree Expand file tree Collapse file tree 3 files changed +99
-2
lines changed Expand file tree Collapse file tree 3 files changed +99
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,32 @@ pull_request_rules:
2424 - -files~=^\.github/(actions|workflows)/.*\.ya?ml$
2525 - -files~=^\.github/workflows/actionlint\.
2626
27+ # medium e2e workflow
28+ - or :
29+ - and :
30+ # note this should match the triggering criteria in 'e2e-nvidia-l4-x1.yml'
31+ - check-success~=e2e-medium-workflow-complete
32+ - or :
33+ - files~=\.py$
34+ - files=pyproject.toml
35+ - files~=^requirements.*\.txt$
36+ - files=tox.ini
37+ - files~=^scripts/[^/]+\.sh$
38+ - files=requirements.txt
39+ - files=requirements-dev.txt
40+ - files=constraints-dev.txt
41+ - files~=^.github/workflows/*$ # This workflow
42+ - and :
43+ - files~=\.py$
44+ - files=pyproject.toml
45+ - files~=^requirements.*\.txt$
46+ - files=tox.ini
47+ - files~=^scripts/[^/]+\.sh$
48+ - files=requirements.txt
49+ - files=requirements-dev.txt
50+ - files=constraints-dev.txt
51+ - files~=^.github/workflows/*$ # This workflow
52+
2753 # code lint workflow
2854 - or :
2955 - and :
Original file line number Diff line number Diff line change 1515 - " requirements.txt"
1616 - " requirements-dev.txt"
1717 - " constraints-dev.txt"
18- - " .github/workflows/e2e-nvidia-l40s-x4-sdk.yaml " # This workflow
18+ - " .github/workflows/* " # This workflow
1919 workflow_dispatch :
2020 inputs :
2121 pr_or_branch :
@@ -324,4 +324,15 @@ jobs:
324324 if : steps.phase-2-upload-s3.outcome == 'failure'
325325 run : |
326326 echo "::warning::Failed to upload Phase 2 loss graph to S3. This won't block the workflow, but you may want to investigate."
327- echo "Loss graph upload failed" >> "${GITHUB_STEP_SUMMARY}"
327+ echo "Loss graph upload failed" >> "${GITHUB_STEP_SUMMARY}"
328+
329+ e2e-medium-workflow-complete :
330+ # we don't want to block PRs on failed EC2 cleanup
331+ # so not requiring "stop-medium-ec2-runner" as well
332+ permissions :
333+ checks : read
334+ uses : ./.github/workflows/status-checks.yml
335+ with :
336+ job_ids : >- # Space-separated job ids to wait on for status checks
337+ start-large-ec2-runner
338+ e2e-medium-test
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+ # yamllint disable rule:line-length
3+
4+ name : Status Checks Reusable Workflow
5+
6+ on :
7+ workflow_call :
8+ inputs :
9+ job_ids :
10+ description : ' Space-separated job ids to wait on for status checks'
11+ required : true
12+ type : string
13+ delay :
14+ description : ' Period in seconds to wait before first poll of GitHub Check Runs'
15+ required : false
16+ type : number
17+ default : 10
18+ interval :
19+ description : ' Interval or period in seconds between polling GitHub Check Runs'
20+ required : false
21+ type : number
22+ default : 10
23+ timeout :
24+ description : ' Timeout in seconds to complete polling GitHub Check Runs'
25+ required : false
26+ type : number
27+ default : 3600
28+
29+ env :
30+ LC_ALL : en_US.UTF-8
31+
32+ defaults :
33+ run :
34+ shell : bash
35+
36+ permissions :
37+ checks : read
38+
39+ jobs :
40+ status-checks :
41+ runs-on : ubuntu-latest
42+ steps :
43+ - name : " Harden Runner"
44+ uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
45+ with :
46+ egress-policy : audit # TODO: change to 'egress-policy: block' after couple of runs
47+
48+ - name : " Set status check variables"
49+ id : set_variables
50+ run : |
51+ jq -nr '[$ARGS.positional[] | split("\\s"; null) | map(select(. != ""))] | flatten | join("|") | ("match_pattern=(" + . + ")")' --args "${{ inputs.job_ids }}" >> "$GITHUB_OUTPUT"
52+
53+ - name : " Wait for status checks"
54+ uses : poseidon/wait-for-status-checks@899c768d191b56eef585c18f8558da19e1f3e707 # v0.6.0
55+ with :
56+ token : ${{ secrets.GITHUB_TOKEN }}
57+ match_pattern : ${{ steps.set_variables.outputs.match_pattern }}
58+ delay : ${{ inputs.delay }}
59+ interval : ${{ inputs.interval }}
60+ timeout : ${{ inputs.timeout }}
You can’t perform that action at this time.
0 commit comments