-
Notifications
You must be signed in to change notification settings - Fork 1.4k
1677 lines (1603 loc) · 72.9 KB
/
Copy pathpr.yaml
File metadata and controls
1677 lines (1603 loc) · 72.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: PR
on:
push:
branches:
- "pull-request/[0-9]+"
concurrency:
# The group name is the ref_name, so that workflows on the same PR/branch have the same group name for cancelling.
group: docker-build-test-${{ github.ref_name }}
cancel-in-progress: true
env:
BUILDER_NAME: b-${{ github.run_id }}-${{ github.run_attempt }}
jobs:
# ============================================================================
# SETUP & DETECTION JOBS
# ============================================================================
changed-files:
runs-on: ubuntu-latest
outputs:
core: ${{ steps.changes.outputs.core }}
planner: ${{ steps.changes.outputs.planner }}
operator: ${{ steps.changes.outputs.operator }}
snapshot: ${{ steps.changes.outputs.snapshot }}
power_agent: ${{ steps.changes.outputs.power_agent }}
deploy: ${{ steps.changes.outputs.deploy }}
vllm: ${{ steps.changes.outputs.vllm }}
sglang: ${{ steps.changes.outputs.sglang }}
trtllm: ${{ steps.changes.outputs.trtllm }}
frontend: ${{ steps.changes.outputs.frontend }}
benchmarks: ${{ steps.changes.outputs.benchmarks }}
sample: ${{ steps.changes.outputs.sample }}
efa: ${{ steps.changes.outputs.efa }}
base_ref: ${{ steps.changes.outputs.base_ref }}
merge_base_sha: ${{ steps.changes.outputs.merge_base_sha }}
builder_name: ${{ steps.export-builder-name.outputs.builder_name }}
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# Do not use fetch-depth: 0 — changed-files now works with shallow clone
- name: Check for changes
id: changes
uses: ./.github/actions/changed-files
with:
gh_token: ${{ github.token }}
- name: Export builder name
id: export-builder-name
run: |
echo "builder_name=${{ env.BUILDER_NAME }}" >> $GITHUB_OUTPUT
backend-status-check:
runs-on: ubuntu-latest
needs:
- changed-files
- operator
- helm-chart-tests
- snapshot-agent
- snapshot-placeholder-vllm
- snapshot-placeholder-sglang
- snapshot-placeholder-trtllm
- power-agent
- vllm-build
- vllm-dev-build
- vllm-test
- vllm-multi-gpu-test
- vllm-copy-to-acr
- sglang-build
- sglang-dev-build
- sglang-test
- sglang-multi-gpu-test
- sglang-copy-to-acr
- trtllm-build
- trtllm-dev-build
- trtllm-test
- trtllm-multi-gpu-test
- trtllm-copy-to-acr
- vllm-efa-build
- sglang-efa-build
- trtllm-efa-build
- planner-build
- planner-test
- frontend-build
- frontend-copy-to-acr
if: always()
steps:
- name: Check all dependent jobs
run: |
echo '${{ toJson(needs) }}' | jq -e 'to_entries | map(.value.result) | all(. as $result | ["success", "skipped"] | any($result == .))'
deploy-status-check:
runs-on: ubuntu-latest
needs:
- deploy-operator
- deploy-test-vllm
- deploy-test-sglang
- deploy-test-trtllm
- deploy-operator-checkpoint-vllm
- deploy-operator-checkpoint-sglang
- deploy-operator-checkpoint-trtllm
- deploy-snapshot-agent-checkpoint-vllm
- deploy-snapshot-agent-checkpoint-sglang
- deploy-snapshot-agent-checkpoint-trtllm
- snapshot-placeholder-vllm
- snapshot-placeholder-sglang
- snapshot-placeholder-trtllm
- frontend-copy-to-acr
- deploy-test-checkpoint-vllm
- deploy-test-checkpoint-sglang
- deploy-test-checkpoint-trtllm
- deploy-cleanup
- deploy-cleanup-checkpoint-vllm
- deploy-cleanup-checkpoint-sglang
- deploy-cleanup-checkpoint-trtllm
if: always()
steps:
- name: Check all deploy test jobs
run: |
echo '${{ toJson(needs) }}' | jq -e 'to_entries | map(.value.result) | all(. as $result | ["success", "skipped", "cancelled"] | any($result == .))'
dynamo-status-check:
runs-on: ubuntu-slim
needs:
- changed-files
- dynamo-pipeline
if: always()
steps:
- name: Check all dynamo jobs
run: |
echo '${{ toJson(needs) }}' | jq -e 'to_entries | map(.value.result) | all(. as $result | ["success", "skipped"] | any($result == .))'
# ============================================================================
# Operator
# ============================================================================
operator:
needs: changed-files
if: |
needs.changed-files.outputs.operator == 'true' ||
needs.changed-files.outputs.vllm == 'true' ||
needs.changed-files.outputs.sglang == 'true' ||
needs.changed-files.outputs.trtllm == 'true' ||
needs.changed-files.outputs.deploy == 'true' ||
needs.changed-files.outputs.snapshot == 'true'
name: Operator
runs-on: prod-default-v2
# actions: read lets the compliance step download a prior run's baseline
# operator compliance artifact to diff the OSRB CSV against. Missing -> the
# diff soft-degrades, build stays green.
permissions:
contents: read
actions: read
outputs:
operator_default_tag: ${{ steps.build.outputs.image_tag }}
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# Do not use fetch-depth: 0 — it fetches all 1600+ branches (~3 min)
- name: Build and push operator
id: build
uses: ./.github/actions/build-deploy-component
with:
component: operator
image_tag: ${{ github.sha }}-operator
builder_name: ${{ needs.changed-files.outputs.builder_name }}
aws_default_region: ${{ secrets.AWS_DEFAULT_REGION }}
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
azure_acr_hostname: ${{ secrets.AZURE_ACR_HOSTNAME }}
azure_acr_user: ${{ secrets.AZURE_ACR_USER }}
azure_acr_password: ${{ secrets.AZURE_ACR_PASSWORD }}
extra_tags: |
${{ secrets.AZURE_ACR_HOSTNAME }}/ai-dynamo/dynamo:${{ github.sha }}-operator
# OSRB CSV diff baseline: the target branch selects the rule, while the
# merge-base pins PR->main diffs to the PR's fork point.
diff_event_context: pr
diff_current_branch: ${{ github.ref_name }}
diff_base_branch: ${{ needs.changed-files.outputs.base_ref }}
diff_merge_base_sha: ${{ needs.changed-files.outputs.merge_base_sha }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
# ============================================================================
# Helm Chart Tests
# ============================================================================
helm-chart-tests:
needs: changed-files
if: needs.changed-files.outputs.operator == 'true'
name: Helm Chart Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Helm
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
with:
version: 'v3.17.3' # match deploy/operator/Makefile HELM_VERSION
- name: Lint and test
run: make -C deploy/helm/charts/platform lint test
# ============================================================================
# Snapshot Agent
# ============================================================================
snapshot-agent:
needs: changed-files
if: |
needs.changed-files.outputs.snapshot == 'true' ||
needs.changed-files.outputs.operator == 'true' ||
needs.changed-files.outputs.deploy == 'true'
name: Snapshot Agent
runs-on: prod-default-v2
# actions: read lets the compliance step download a prior run's baseline
# snapshot compliance artifact to diff the OSRB CSV against. Missing -> the
# diff soft-degrades, build stays green.
permissions:
contents: read
actions: read
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# Do not use fetch-depth: 0 — it fetches all 1600+ branches (~3 min)
- name: Build and push snapshot agent
uses: ./.github/actions/build-deploy-component
with:
component: snapshot
image_tag: ${{ github.sha }}-snapshot-agent
builder_name: ${{ needs.changed-files.outputs.builder_name }}
aws_default_region: ${{ secrets.AWS_DEFAULT_REGION }}
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
azure_acr_hostname: ${{ secrets.AZURE_ACR_HOSTNAME }}
azure_acr_user: ${{ secrets.AZURE_ACR_USER }}
azure_acr_password: ${{ secrets.AZURE_ACR_PASSWORD }}
extra_tags: |
${{ secrets.AZURE_ACR_HOSTNAME }}/ai-dynamo/dynamo:${{ github.sha }}-snapshot-agent
# OSRB CSV diff baseline: the target branch selects the rule, while the
# merge-base pins PR->main diffs to the PR's fork point.
diff_event_context: pr
diff_current_branch: ${{ github.ref_name }}
diff_base_branch: ${{ needs.changed-files.outputs.base_ref }}
diff_merge_base_sha: ${{ needs.changed-files.outputs.merge_base_sha }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
# ============================================================================
# Power Agent
# ============================================================================
power-agent:
needs: changed-files
if: needs.changed-files.outputs.power_agent == 'true'
name: Power Agent
runs-on: prod-default-v2
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# Do not use fetch-depth: 0 — it fetches all 1600+ branches (~3 min)
- name: Build and push power agent
uses: ./.github/actions/build-deploy-component
with:
component: power-agent
target: runtime # push the slim shipped stage, not the test stage
image_tag: ${{ github.sha }}-power-agent
builder_name: ${{ needs.changed-files.outputs.builder_name }}
aws_default_region: ${{ secrets.AWS_DEFAULT_REGION }}
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
- name: Refresh BuildKit builder
# The runtime build above can leave the remote BuildKit connection stale;
# re-establish it (re-routing only if unhealthy) before the test build.
uses: ./.github/actions/builder-refresher
with:
builder_name: ${{ needs.changed-files.outputs.builder_name }}
flavor: general
arch: linux/amd64
- name: Run unit tests inside the container image
# Build the Dockerfile `test` stage (FROM runtime): its RUN pytest runs
# the suite against the exact shipped image (Python 3.12 + baked deps),
# validating the container itself rather than a pip-installed runner env.
# Reuses the builder + ECR Docker Hub mirror the build step set up above
# (runtime layers are a cache hit); no --push/--load runs pytest without
# exporting the never-shipped test image.
env:
ECR_HOSTNAME: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_DEFAULT_REGION }}.amazonaws.com
run: |
docker buildx build --builder ${{ needs.changed-files.outputs.builder_name }} \
--target test \
--build-arg DOCKER_PROXY=${ECR_HOSTNAME}/dockerhub/ \
-f deploy/power-agent/Dockerfile deploy/power-agent
- name: Set up Helm
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
with:
version: 'v3.17.3' # match deploy/operator/Makefile HELM_VERSION
- name: Lint and test Helm chart
run: make -C deploy/helm/charts/power-agent lint test
# ============================================================================
# FRAMEWORK PIPELINES (Build → Test → Copy)
# ============================================================================
# ============================================================================
# BUILD PIPELINES
# ============================================================================
vllm-build:
name: vllm-runtime # This name overlaps with other vllm jobs to group them in the UI
needs: [changed-files]
# `sample` is here because sample tests piggyback on this image and run as part of vllm-test.
# `operator` is here because operator changes run the deploy tests, which
# deploy the CI-built runtime image. `snapshot` is here because
# DynamoCheckpoint deploy tests build a snapshot placeholder from it.
if: |
needs.changed-files.outputs.core == 'true' ||
needs.changed-files.outputs.vllm == 'true' ||
needs.changed-files.outputs.deploy == 'true' ||
needs.changed-files.outputs.sample == 'true' ||
needs.changed-files.outputs.operator == 'true' ||
needs.changed-files.outputs.snapshot == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: vllm
target: runtime
cuda_version: '["13.0"]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.changed-files.outputs.builder_name }}
inline_compliance: true
artifact_retention_days: '7'
build_timeout_minutes: 60
# OSRB CSV diff baseline: the target branch selects the rule, while the
# merge-base pins PR->main diffs to the PR's fork point.
diff_event_context: pr
diff_current_branch: ${{ github.ref_name }}
diff_base_branch: ${{ needs.changed-files.outputs.base_ref }}
diff_merge_base_sha: ${{ needs.changed-files.outputs.merge_base_sha }}
# actions: read lets the build download a prior run's baseline compliance
# artifact to diff against (a reusable workflow's token can't exceed the
# caller's). Missing -> the diff soft-degrades, build stays green.
permissions:
contents: read
actions: read
secrets: inherit
vllm-dev-build:
name: vllm-dev
needs: [changed-files]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.vllm == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: vllm
target: dev
cuda_version: '["13.0"]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.changed-files.outputs.builder_name }}
push_image: false
build_timeout_minutes: 60
secrets: inherit
sglang-build:
name: sglang-runtime # This name overlaps with other sglang jobs to group them in the UI
needs: [changed-files]
# `operator` is here because operator changes run the deploy tests, which
# deploy the CI-built runtime image. `snapshot` is here because
# DynamoCheckpoint deploy tests build a snapshot placeholder from it.
if: |
needs.changed-files.outputs.core == 'true' ||
needs.changed-files.outputs.sglang == 'true' ||
needs.changed-files.outputs.deploy == 'true' ||
needs.changed-files.outputs.operator == 'true' ||
needs.changed-files.outputs.snapshot == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: sglang
target: runtime
cuda_version: '["13.0"]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.changed-files.outputs.builder_name }}
inline_compliance: true
artifact_retention_days: '7'
build_timeout_minutes: 60
# OSRB CSV diff baseline: the target branch selects the rule, while the
# merge-base pins PR->main diffs to the PR's fork point.
diff_event_context: pr
diff_current_branch: ${{ github.ref_name }}
diff_base_branch: ${{ needs.changed-files.outputs.base_ref }}
diff_merge_base_sha: ${{ needs.changed-files.outputs.merge_base_sha }}
# actions: read lets the build download a prior run's baseline compliance
# artifact to diff against (a reusable workflow's token can't exceed the
# caller's). Missing -> the diff soft-degrades, build stays green.
permissions:
contents: read
actions: read
secrets: inherit
sglang-dev-build:
name: sglang-dev
needs: [changed-files]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.sglang == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: sglang
target: dev
cuda_version: '["13.0"]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.changed-files.outputs.builder_name }}
push_image: false
build_timeout_minutes: 60
secrets: inherit
trtllm-build:
name: trtllm-runtime # This name overlaps with other trtllm jobs to group them in the UI
needs: [changed-files]
# `operator` is here because operator changes run the deploy tests, which
# deploy the CI-built runtime image. `snapshot` is here because
# DynamoCheckpoint deploy tests build a snapshot placeholder from it.
if: |
needs.changed-files.outputs.core == 'true' ||
needs.changed-files.outputs.trtllm == 'true' ||
needs.changed-files.outputs.deploy == 'true' ||
needs.changed-files.outputs.operator == 'true' ||
needs.changed-files.outputs.snapshot == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: trtllm
target: runtime
cuda_version: '["13.1"]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.changed-files.outputs.builder_name }}
inline_compliance: true
artifact_retention_days: '7'
build_timeout_minutes: 60
# OSRB CSV diff baseline: the target branch selects the rule, while the
# merge-base pins PR->main diffs to the PR's fork point.
diff_event_context: pr
diff_current_branch: ${{ github.ref_name }}
diff_base_branch: ${{ needs.changed-files.outputs.base_ref }}
diff_merge_base_sha: ${{ needs.changed-files.outputs.merge_base_sha }}
# actions: read lets the build download a prior run's baseline compliance
# artifact to diff against (a reusable workflow's token can't exceed the
# caller's). Missing -> the diff soft-degrades, build stays green.
permissions:
contents: read
actions: read
secrets: inherit
trtllm-dev-build:
name: trtllm-dev
needs: [changed-files]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.trtllm == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: trtllm
target: dev
cuda_version: '["13.1"]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.changed-files.outputs.builder_name }}
push_image: false
build_timeout_minutes: 60
secrets: inherit
vllm-efa-build:
name: vllm-runtime-efa
needs: [changed-files]
if: needs.changed-files.outputs.vllm == 'true' || needs.changed-files.outputs.efa == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: vllm
target: runtime
cuda_version: '["13.0"]'
platform: 'linux/amd64,linux/arm64'
make_efa: true
builder_name: ${{ needs.changed-files.outputs.builder_name }}
inline_compliance: true
artifact_retention_days: '7'
build_timeout_minutes: 60
# OSRB CSV diff baseline: the target branch selects the rule, while the
# merge-base pins PR->main diffs to the PR's fork point.
diff_event_context: pr
diff_current_branch: ${{ github.ref_name }}
diff_base_branch: ${{ needs.changed-files.outputs.base_ref }}
diff_merge_base_sha: ${{ needs.changed-files.outputs.merge_base_sha }}
# actions: read lets the build download a prior run's baseline compliance
# artifact to diff against (a reusable workflow's token can't exceed the
# caller's). Missing -> the diff soft-degrades, build stays green.
permissions:
contents: read
actions: read
secrets: inherit
sglang-efa-build:
name: sglang-runtime-efa
needs: [changed-files]
if: needs.changed-files.outputs.sglang == 'true' || needs.changed-files.outputs.efa == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: sglang
target: runtime
cuda_version: '["13.0"]'
platform: 'linux/amd64,linux/arm64'
make_efa: true
builder_name: ${{ needs.changed-files.outputs.builder_name }}
inline_compliance: true
artifact_retention_days: '7'
build_timeout_minutes: 60
# OSRB CSV diff baseline: the target branch selects the rule, while the
# merge-base pins PR->main diffs to the PR's fork point.
diff_event_context: pr
diff_current_branch: ${{ github.ref_name }}
diff_base_branch: ${{ needs.changed-files.outputs.base_ref }}
diff_merge_base_sha: ${{ needs.changed-files.outputs.merge_base_sha }}
# actions: read lets the build download a prior run's baseline compliance
# artifact to diff against (a reusable workflow's token can't exceed the
# caller's). Missing -> the diff soft-degrades, build stays green.
permissions:
contents: read
actions: read
secrets: inherit
trtllm-efa-build:
name: trtllm-runtime-efa
needs: [changed-files]
if: needs.changed-files.outputs.trtllm == 'true' || needs.changed-files.outputs.efa == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: trtllm
target: runtime
cuda_version: '["13.1"]'
platform: 'linux/amd64,linux/arm64'
make_efa: true
builder_name: ${{ needs.changed-files.outputs.builder_name }}
inline_compliance: true
artifact_retention_days: '7'
build_timeout_minutes: 60
# OSRB CSV diff baseline: the target branch selects the rule, while the
# merge-base pins PR->main diffs to the PR's fork point.
diff_event_context: pr
diff_current_branch: ${{ github.ref_name }}
diff_base_branch: ${{ needs.changed-files.outputs.base_ref }}
diff_merge_base_sha: ${{ needs.changed-files.outputs.merge_base_sha }}
# actions: read lets the build download a prior run's baseline compliance
# artifact to diff against (a reusable workflow's token can't exceed the
# caller's). Missing -> the diff soft-degrades, build stays green.
permissions:
contents: read
actions: read
secrets: inherit
planner-build:
name: planner # This name overlaps with other planner jobs to group them in the UI
needs: [changed-files]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.planner == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: dynamo
target: planner
cuda_version: '[""]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.changed-files.outputs.builder_name }}
inline_compliance: true
artifact_retention_days: '7'
build_timeout_minutes: 45
# OSRB CSV diff baseline: the target branch selects the rule, while the
# merge-base pins PR->main diffs to the PR's fork point.
diff_event_context: pr
diff_current_branch: ${{ github.ref_name }}
diff_base_branch: ${{ needs.changed-files.outputs.base_ref }}
diff_merge_base_sha: ${{ needs.changed-files.outputs.merge_base_sha }}
# actions: read lets the build download a prior run's baseline compliance
# artifact to diff against (a reusable workflow's token can't exceed the
# caller's). Missing -> the diff soft-degrades, build stays green.
permissions:
contents: read
actions: read
secrets: inherit
frontend-build:
name: frontend
needs: [changed-files]
if: |
needs.changed-files.outputs.frontend == 'true' ||
needs.changed-files.outputs.operator == 'true' ||
needs.changed-files.outputs.snapshot == 'true' ||
needs.changed-files.outputs.deploy == 'true'
uses: ./.github/workflows/shared-build-image.yml
with:
framework: dynamo
target: frontend
cuda_version: '[""]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.changed-files.outputs.builder_name }}
inline_compliance: true
artifact_retention_days: '7'
build_timeout_minutes: 45
# OSRB CSV diff baseline: the target branch selects the rule, while the
# merge-base pins PR->main diffs to the PR's fork point.
diff_event_context: pr
diff_current_branch: ${{ github.ref_name }}
diff_base_branch: ${{ needs.changed-files.outputs.base_ref }}
diff_merge_base_sha: ${{ needs.changed-files.outputs.merge_base_sha }}
# actions: read lets the build download a prior run's baseline compliance
# artifact to diff against (a reusable workflow's token can't exceed the
# caller's). Missing -> the diff soft-degrades, build stays green.
permissions:
contents: read
actions: read
secrets: inherit
# ============================================================================
# TEST PIPELINES
# ============================================================================
vllm-test:
name: vllm-runtime # This name overlaps with other vllm jobs to group them in the UI
needs: [changed-files, vllm-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.vllm == 'true' || needs.changed-files.outputs.deploy == 'true' || needs.changed-files.outputs.sample == 'true'
uses: ./.github/workflows/shared-test.yml
with:
test_suite_name: vllm
test_type: Test
amd_runner: prod-tester-amd-gpu-v2 # This runner is overridden for ARM platform
target_tag_plain: ${{ needs.vllm-build.outputs.target_tag_plain }}
cuda_version: '["13.0"]'
platform: '["amd64", "arm64"]' # arm64 for CPU tests, single GPU tests are skipped
run_cpu_only_tests: true
cpu_only_test_markers: pre_merge and vllm and gpu_0
gpu_test_markers: pre_merge and vllm and gpu_1
gpu_test_timeout_minutes: 45
# Profiled tests run in the parallel stage; unprofiled fall through to sequential.
# 24 GiB admits all currently profiled vLLM tests (max is ~20.4 GiB) on a 48 GiB GPU.
run_gpu_parallel_tests: true
gpu_parallel_max_vram_gib: '24'
secrets: inherit
vllm-multi-gpu-test:
name: vllm-runtime # This name overlaps with other vllm jobs to group them in the UI
needs: [changed-files, vllm-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.vllm == 'true' || needs.changed-files.outputs.deploy == 'true'
uses: ./.github/workflows/shared-test.yml
with:
test_suite_name: vllm
test_type: Multi-GPU Test
amd_runner: prod-tester-amd-gpu-4-v2
target_tag_plain: ${{ needs.vllm-build.outputs.target_tag_plain }}
cuda_version: '["13.0"]'
platform: '["amd64"]' # No ARM GPUs available
run_sanity_check: false
gpu_test_markers: pre_merge and vllm and (gpu_2 or gpu_4)
gpu_test_timeout_minutes: 60
secrets: inherit
sglang-test:
name: sglang-runtime # This name overlaps with other sglang jobs to group them in the UI
needs: [changed-files, sglang-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.sglang == 'true' || needs.changed-files.outputs.deploy == 'true'
uses: ./.github/workflows/shared-test.yml
with:
test_suite_name: sglang
test_type: Test
amd_runner: prod-tester-amd-gpu-v2 # This runner is overridden for ARM platform
target_tag_plain: ${{ needs.sglang-build.outputs.target_tag_plain }}
cuda_version: '["13.0"]'
platform: '["amd64", "arm64"]' # arm64 for CPU tests, single GPU tests are skipped
run_cpu_only_tests: true
cpu_only_test_markers: pre_merge and sglang and gpu_0
gpu_test_markers: pre_merge and sglang and gpu_1
# Profiled tests run in the VRAM-aware GPU stage; unprofiled fall through to sequential.
# Current single-GPU runners are 24 GiB, so this cap admits the profiled SGLang pool
# while yielding one auto slot today. Larger runners will get more slots from the same markers.
run_gpu_parallel_tests: true
gpu_parallel_max_vram_gib: '24'
secrets: inherit
sglang-multi-gpu-test:
name: sglang-runtime # This name overlaps with other sglang jobs to group them in the UI
needs: [changed-files, sglang-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.sglang == 'true' || needs.changed-files.outputs.deploy == 'true'
uses: ./.github/workflows/shared-test.yml
with:
test_suite_name: sglang
test_type: Multi-GPU Test
amd_runner: prod-tester-amd-gpu-4-v2
target_tag_plain: ${{ needs.sglang-build.outputs.target_tag_plain }}
cuda_version: '["13.0"]'
platform: '["amd64"]' # No ARM GPUs available
run_sanity_check: false
gpu_test_markers: pre_merge and sglang and (gpu_2 or gpu_4)
gpu_test_timeout_minutes: 60
secrets: inherit
trtllm-test:
name: trtllm-runtime # This name overlaps with other trtllm jobs to group them in the UI
needs: [changed-files, trtllm-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.trtllm == 'true' || needs.changed-files.outputs.deploy == 'true'
uses: ./.github/workflows/shared-test.yml
with:
test_suite_name: trtllm
test_type: Test
amd_runner: prod-tester-amd-gpu-v2 # This runner is overridden for ARM platform
target_tag_plain: ${{ needs.trtllm-build.outputs.target_tag_plain }}
cuda_version: '["13.1"]'
platform: '["amd64", "arm64"]' # arm64 for CPU tests, single GPU tests are skipped
run_cpu_only_tests: true
cpu_only_test_markers: pre_merge and trtllm and gpu_0
gpu_test_markers: pre_merge and trtllm and gpu_1
# Profiled tests run in the VRAM-aware GPU stage; unprofiled fall through to sequential.
# Current single-GPU runners are 24 GiB, so this cap admits the profiled TRT-LLM pool
# while yielding one auto slot today. Larger runners will get more slots from the same markers.
run_gpu_parallel_tests: true
gpu_parallel_max_vram_gib: '24'
secrets: inherit
trtllm-multi-gpu-test:
name: trtllm-runtime # This name overlaps with other trtllm jobs to group them in the UI
needs: [changed-files, trtllm-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.trtllm == 'true' || needs.changed-files.outputs.deploy == 'true'
uses: ./.github/workflows/shared-test.yml
with:
test_suite_name: trtllm
test_type: Multi-GPU Test
amd_runner: prod-tester-amd-gpu-4-v2
target_tag_plain: ${{ needs.trtllm-build.outputs.target_tag_plain }}
cuda_version: '["13.1"]'
platform: '["amd64"]' # No ARM GPUs available
run_sanity_check: false
gpu_test_markers: pre_merge and trtllm and (gpu_2 or gpu_4)
gpu_test_timeout_minutes: 60
secrets: inherit
planner-test:
name: planner # This name overlaps with other planner jobs to group them in the UI
needs: [changed-files, planner-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.planner == 'true'
uses: ./.github/workflows/shared-test.yml
with:
test_suite_name: planner
test_type: CPU Test
amd_runner: prod-tester-amd-v2
target_tag_plain: ${{ needs.planner-build.outputs.target_tag_plain }}
cuda_version: '[""]'
platform: '["amd64", "arm64"]'
run_sanity_check: false
run_cpu_only_tests: true
cpu_only_test_markers: 'pre_merge and planner and gpu_0'
cpu_only_test_timeout_minutes: 30
cpu_parallel_mode: '2'
run_gpu_tests: false
secrets: inherit
# ============================================================================
# DYNAMO RUNTIME PIPELINE
# ============================================================================
dynamo-pipeline:
name: dynamo-runtime
needs: [changed-files]
if: |
needs.changed-files.outputs.core == 'true' ||
needs.changed-files.outputs.planner == 'true' ||
needs.changed-files.outputs.frontend == 'true' ||
needs.changed-files.outputs.vllm == 'true' ||
needs.changed-files.outputs.sglang == 'true' ||
needs.changed-files.outputs.trtllm == 'true' ||
needs.changed-files.outputs.benchmarks == 'true'
uses: ./.github/workflows/dynamo-pipeline.yml
with:
builder_name: ${{ needs.changed-files.outputs.builder_name }}
cpu_parallel_test_markers: 'pre_merge and parallel and not (vllm or sglang or trtllm) and (gpu_0)'
cpu_sequential_test_markers: 'pre_merge and not parallel and not (vllm or sglang or trtllm) and (gpu_0)'
gpu_test_markers: 'pre_merge and none and gpu_1'
secrets: inherit
# ============================================================================
# IMAGE COMPLIANCE
# ============================================================================
# Compliance extract (unified /legal NOTICES + osrb-deps.csv + osrb.cdx.json)
# runs as an inline step INSIDE each shipped framework build job
# (inline_compliance: true above) — same job, same warm builder, so it's a
# cache hit + small scratch export rather than a cold full-image rebuild.
# License-policy enforcement also happens in the licenses Dockerfile stage; a
# compliance failure fails the build and (via needs:) preempts dependent tests.
#
# The *-compliance-audit jobs below are the INDEPENDENT completeness check:
# they syft-scan the pushed image and diff it against the build's osrb-deps.csv
# to surface anything shipped-but-unattributed. They need:[<fw>-build] and run
# in PARALLEL with the test jobs (the slow syft pull+scan stays off the test
# critical path). Soft gate: report-only, non-required. EFA-image audits are a
# follow-up (same caller pattern).
vllm-compliance-audit:
name: vllm-runtime # grouped in the UI with other vllm jobs
needs: [changed-files, vllm-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.vllm == 'true' || needs.changed-files.outputs.deploy == 'true'
uses: ./.github/workflows/shared-compliance-audit.yml
with:
framework: vllm
target: runtime
cuda_version: '13.0'
target_tag_plain: ${{ needs.vllm-build.outputs.target_tag_plain }}
baseline_sbom_file: ${{ needs.vllm-build.outputs.baseline_sbom_file }}
# No secrets: the audit scans the container's own filesystem (no registry
# auth / aws) — don't inherit repo secrets into a report-only job.
sglang-compliance-audit:
name: sglang-runtime # grouped in the UI with other sglang jobs
needs: [changed-files, sglang-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.sglang == 'true' || needs.changed-files.outputs.deploy == 'true'
uses: ./.github/workflows/shared-compliance-audit.yml
with:
framework: sglang
target: runtime
cuda_version: '13.0'
target_tag_plain: ${{ needs.sglang-build.outputs.target_tag_plain }}
baseline_sbom_file: ${{ needs.sglang-build.outputs.baseline_sbom_file }}
trtllm-compliance-audit:
name: trtllm-runtime # grouped in the UI with other trtllm jobs
needs: [changed-files, trtllm-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.trtllm == 'true' || needs.changed-files.outputs.deploy == 'true'
uses: ./.github/workflows/shared-compliance-audit.yml
with:
framework: trtllm
target: runtime
cuda_version: '13.1'
target_tag_plain: ${{ needs.trtllm-build.outputs.target_tag_plain }}
baseline_sbom_file: ${{ needs.trtllm-build.outputs.baseline_sbom_file }}
frontend-compliance-audit:
name: frontend # grouped in the UI with other frontend jobs
needs: [changed-files, frontend-build]
# Mirror frontend-build's trigger so every rebuilt frontend image gets an
# audit report, including operator/snapshot/deploy-driven rebuilds.
if: |
needs.changed-files.outputs.frontend == 'true' ||
needs.changed-files.outputs.operator == 'true' ||
needs.changed-files.outputs.snapshot == 'true' ||
needs.changed-files.outputs.deploy == 'true'
uses: ./.github/workflows/shared-compliance-audit.yml
with:
framework: dynamo
target: frontend
# frontend ships amd64+arm64; the audit scans the amd64 image only,
# matching the single-arch framework audits above. Report-only.
cuda_version: ''
target_tag_plain: ${{ needs.frontend-build.outputs.target_tag_plain }}
baseline_sbom_file: ${{ needs.frontend-build.outputs.baseline_sbom_file }}
# planner stays on the legacy shared-compliance scan until it migrates to
# the inline system that vllm/sglang/trtllm/frontend use above.
planner-compliance:
name: planner # This name overlaps with other planner jobs to group them in the UI
needs: [changed-files, planner-build]
if: needs.changed-files.outputs.core == 'true' || needs.changed-files.outputs.planner == 'true'
uses: ./.github/workflows/shared-compliance.yml
with:
framework: dynamo
target: planner
target_tag_plain: ${{ needs.planner-build.outputs.target_tag_plain }}
cuda_version: '[""]'
platform: '["amd64", "arm64"]'
secrets: inherit
# ============================================================================
# IMAGE COPY PIPELINES
# ============================================================================
vllm-copy-to-acr:
name: vllm-runtime # This name overlaps with other vllm jobs to group them in the UI
needs: [changed-files, vllm-build]
if: |
always() && !cancelled() &&
(needs.changed-files.outputs.core == 'true' ||
needs.changed-files.outputs.vllm == 'true' ||
needs.changed-files.outputs.deploy == 'true' ||
needs.changed-files.outputs.operator == 'true' ||
needs.changed-files.outputs.snapshot == 'true') &&
needs.vllm-build.result == 'success'
uses: ./.github/workflows/shared-copy.yml
with:
target_tag_plain: ${{ needs.vllm-build.outputs.target_tag_plain }}
cuda_version: '["13.0"]' # Deploy tests only use CUDA 13
override_arch: amd64 # We are using AMD64 images only on the rest of the clusters.
copy_timeout_minutes: 10
secrets: inherit
frontend-copy-to-acr:
name: frontend
needs: [changed-files, frontend-build]
if: |
always() && !cancelled() &&
(needs.changed-files.outputs.snapshot == 'true') &&
needs.frontend-build.result == 'success'
uses: ./.github/workflows/shared-copy.yml
with:
target_tag_plain: ${{ needs.frontend-build.outputs.target_tag_plain }}
cuda_version: '[""]'
override_arch: amd64 # We are using AMD64 images only on the rest of the clusters.
copy_timeout_minutes: 10
secrets: inherit
snapshot-placeholder-vllm:
name: vLLM Snapshot Placeholder
needs: [changed-files, vllm-copy-to-acr]
if: |
always() && !cancelled() &&
(needs.changed-files.outputs.snapshot == 'true')
runs-on: prod-default-v2
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Build and push snapshot placeholder
uses: ./.github/actions/build-deploy-component
with:
component: snapshot
target: placeholder
image_tag: ${{ github.sha }}-vllm-placeholder
builder_name: ${{ needs.changed-files.outputs.builder_name }}
aws_default_region: ${{ secrets.AWS_DEFAULT_REGION }}
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
azure_acr_hostname: ${{ secrets.AZURE_ACR_HOSTNAME }}
azure_acr_user: ${{ secrets.AZURE_ACR_USER }}
azure_acr_password: ${{ secrets.AZURE_ACR_PASSWORD }}
extra_tags: |
${{ secrets.AZURE_ACR_HOSTNAME }}/ai-dynamo/dynamo:${{ github.sha }}-vllm-placeholder
extra_build_args: |
BASE_IMAGE=${{ secrets.AZURE_ACR_HOSTNAME }}/ai-dynamo/dynamo:${{ github.sha }}-vllm-runtime
sglang-copy-to-acr:
name: sglang-runtime # This name overlaps with other sglang jobs to group them in the UI
needs: [changed-files, sglang-build]
if: |
always() && !cancelled() &&
(needs.changed-files.outputs.core == 'true' ||
needs.changed-files.outputs.sglang == 'true' ||
needs.changed-files.outputs.deploy == 'true' ||
needs.changed-files.outputs.operator == 'true' ||
needs.changed-files.outputs.snapshot == 'true') &&
needs.sglang-build.result == 'success'
uses: ./.github/workflows/shared-copy.yml
with:
target_tag_plain: ${{ needs.sglang-build.outputs.target_tag_plain }}
cuda_version: '["13.0"]' # Deploy tests only use CUDA 13
override_arch: amd64 # We are using AMD64 images only on the rest of the clusters.
copy_timeout_minutes: 10
secrets: inherit
snapshot-placeholder-sglang:
name: SGLang Snapshot Placeholder
needs: [changed-files, sglang-copy-to-acr]
if: |
always() && !cancelled() &&
(needs.changed-files.outputs.snapshot == 'true')
runs-on: prod-default-v2
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Build and push snapshot placeholder
uses: ./.github/actions/build-deploy-component
with:
component: snapshot
target: placeholder
image_tag: ${{ github.sha }}-sglang-placeholder
builder_name: ${{ needs.changed-files.outputs.builder_name }}
aws_default_region: ${{ secrets.AWS_DEFAULT_REGION }}
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
azure_acr_hostname: ${{ secrets.AZURE_ACR_HOSTNAME }}
azure_acr_user: ${{ secrets.AZURE_ACR_USER }}
azure_acr_password: ${{ secrets.AZURE_ACR_PASSWORD }}
extra_tags: |
${{ secrets.AZURE_ACR_HOSTNAME }}/ai-dynamo/dynamo:${{ github.sha }}-sglang-placeholder
extra_build_args: |
BASE_IMAGE=${{ secrets.AZURE_ACR_HOSTNAME }}/ai-dynamo/dynamo:${{ github.sha }}-sglang-runtime
trtllm-copy-to-acr:
name: trtllm-runtime # This name overlaps with other trtllm jobs to group them in the UI
needs: [changed-files, trtllm-build]
if: |
always() && !cancelled() &&
(needs.changed-files.outputs.core == 'true' ||
needs.changed-files.outputs.trtllm == 'true' ||
needs.changed-files.outputs.deploy == 'true' ||
needs.changed-files.outputs.operator == 'true' ||
needs.changed-files.outputs.snapshot == 'true') &&
needs.trtllm-build.result == 'success'
uses: ./.github/workflows/shared-copy.yml
with:
target_tag_plain: ${{ needs.trtllm-build.outputs.target_tag_plain }}
cuda_version: '["13.1"]'
override_arch: amd64 # We are using AMD64 images only on the rest of the clusters.
copy_timeout_minutes: 10
secrets: inherit
snapshot-placeholder-trtllm:
name: TRTLLM Snapshot Placeholder
needs: [changed-files, trtllm-copy-to-acr]
if: |
always() && !cancelled() &&