Skip to content

Commit 2bf46ae

Browse files
committed
Adding a wrapper workflow to call the deploy tests
Signed-off-by: pvijayakrish <[email protected]>
1 parent be0d9b0 commit 2bf46ae

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

.github/workflows/container-validation-backends.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,10 @@ concurrency:
2525
group: docker-build-test-${{ github.ref_name == 'main' && github.run_id || github.ref_name }}
2626
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2727

28-
env_anchor: &secure_env
29-
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
30-
3128
jobs:
3229
changed-files:
3330
runs-on: ubuntu-latest
34-
<<: *secure_env
31+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
3532
outputs:
3633
has_code_changes: ${{ steps.filter.outputs.has_code_changes }}
3734
steps:
@@ -45,7 +42,7 @@ jobs:
4542

4643
backend-status-check:
4744
runs-on: ubuntu-latest
48-
<<: *secure_env
45+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
4946
needs: [vllm, sglang, trtllm, operator]
5047
if: always()
5148
steps:
@@ -56,7 +53,7 @@ jobs:
5653
operator:
5754
needs: changed-files
5855
if: needs.changed-files.outputs.has_code_changes == 'true'
59-
<<: *secure_env
56+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
6057
strategy:
6158
fail-fast: false
6259
matrix:
@@ -137,7 +134,7 @@ jobs:
137134
vllm:
138135
needs: changed-files
139136
if: needs.changed-files.outputs.has_code_changes == 'true'
140-
<<: *secure_env
137+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
141138
strategy:
142139
fail-fast: false
143140
matrix:
@@ -207,7 +204,7 @@ jobs:
207204
sglang:
208205
needs: changed-files
209206
if: needs.changed-files.outputs.has_code_changes == 'true'
210-
<<: *secure_env
207+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
211208
strategy:
212209
fail-fast: false
213210
matrix:
@@ -275,7 +272,7 @@ jobs:
275272
trtllm:
276273
needs: changed-files
277274
if: needs.changed-files.outputs.has_code_changes == 'true'
278-
<<: *secure_env
275+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
279276
strategy:
280277
fail-fast: false
281278
matrix:
@@ -343,7 +340,7 @@ jobs:
343340
deploy-test-fault-tolerance:
344341
runs-on: cpu-amd-m5-2xlarge
345342
if: needs.changed-files.outputs.has_code_changes == 'true'
346-
<<: *secure_env
343+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
347344
needs: [changed-files, operator, vllm, trtllm, sglang]
348345
permissions:
349346
contents: read
@@ -487,7 +484,7 @@ jobs:
487484
# Upload metrics for this workflow and all its jobs
488485
upload-workflow-metrics:
489486
name: Upload Workflow Metrics
490-
<<: *secure_env
487+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
491488
runs-on: gitlab
492489
if: always() # Always run, even if other jobs fail
493490
needs: [backend-status-check] # Wait for the status check which waits for all build jobs
@@ -539,7 +536,7 @@ jobs:
539536
runs-on: cpu-amd-m5-2xlarge
540537
# TODO: Uncomment this when we have a way to test the deploy-operator job in CI.
541538
#if: needs.changed-files.outputs.has_code_changes == 'true'
542-
<<: *secure_env
539+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
543540
if: inputs.run_deploy_operator
544541
needs: [changed-files, operator, vllm, sglang, trtllm]
545542
env:
@@ -619,7 +616,7 @@ jobs:
619616
# TODO: Uncomment this when we have a way to test the deploy-test-vllm job in CI.
620617
#if: needs.changed-files.outputs.has_code_changes == 'true'
621618
if: inputs.run_deploy_operator
622-
<<: *secure_env
619+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
623620
needs: [changed-files, deploy-operator, vllm]
624621
permissions:
625622
contents: read
@@ -776,7 +773,7 @@ jobs:
776773
# TODO: Uncomment this when we have a way to test the deploy-test-sglang job in CI.
777774
#if: needs.changed-files.outputs.has_code_changes == 'true'
778775
if: inputs.run_deploy_operator
779-
<<: *secure_env
776+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
780777
needs: [changed-files, deploy-operator, sglang]
781778
permissions:
782779
contents: read
@@ -800,7 +797,7 @@ jobs:
800797
# TODO: Uncomment this when we have a way to test the deploy-test-trtllm job in CI.
801798
#if: needs.changed-files.outputs.has_code_changes == 'true'
802799
if: inputs.run_deploy_operator
803-
<<: *secure_env
800+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
804801
needs: [changed-files, deploy-operator, trtllm]
805802
permissions:
806803
contents: read
@@ -826,7 +823,7 @@ jobs:
826823
# TODO: Uncomment the below if statement when we have a way to test the cleanup job in CI.
827824
# if: always()
828825
if: inputs.run_deploy_operator
829-
<<: *secure_env
826+
environment: ${{ github.event_name == 'workflow_call' && 'protected-deploy' || '' }}
830827
needs: [changed-files, deploy-operator, deploy-test-trtllm, deploy-test-sglang, deploy-test-vllm]
831828
steps:
832829
- name: Output Node Name

0 commit comments

Comments
 (0)