forked from ai-dynamo/dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
1189 lines (1109 loc) · 51.9 KB
/
Copy pathnightly-ci.yml
File metadata and controls
1189 lines (1109 loc) · 51.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: Nightly CI Pipeline
on:
schedule:
- cron: '0 8 * * *' # Every day at 12:00 AM PST (08:00 UTC)
workflow_dispatch: # Allow manual triggering for testing
inputs:
release:
description: 'Stage NGC images, Artifactory wheels, and trigger the GitLab release pipeline. Schedule always sets release=true.'
required: false
type: boolean
default: false
run_tests:
description: 'Run vllm/sglang/trtllm tests + dynamo-pipeline checks. Schedule always runs them.'
required: false
type: boolean
default: true
skip_gitlab_pipeline:
description: 'Skip the GitLab release automation pipeline trigger. Emergency use only.'
required: false
type: boolean
default: false
permissions:
contents: read
# Lets the build jobs' compliance-extract query the Actions API for the
# previous successful cron-triggered nightly run (manual runs are excluded)
# and download its baseline compliance artifact to diff the OSRB CSV against.
# A reusable workflow's token can't exceed the caller's.
actions: read
env:
BUILDER_NAME: b-${{ github.run_id }}-${{ github.run_attempt }}
jobs:
# ============================================================================
# PRE-WARM K8S BUILDER
# ============================================================================
create-fresh-builder:
name: Create fresh K8s builder
runs-on: prod-default-small-v2
permissions:
contents: read
outputs:
builder_name: ${{ steps.export-builder-name.outputs.builder_name }}
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Export builder name
id: export-builder-name
run: |
echo "builder_name=${{ env.BUILDER_NAME }}" >> $GITHUB_OUTPUT
- name: Create and bootstrap fresh K8s builder
uses: ./.github/actions/bootstrap-buildkit
with:
builder_name: ${{ steps.export-builder-name.outputs.builder_name }}
buildkit_worker_addresses: ''
suppress_fallback_warning: 'true'
# ============================================================================
# RESOLVE SOURCE SHA
# ============================================================================
# Single SHA every downstream job (shared-build-image, dynamo-pipeline,
# shared-test, release.yml) builds, tags, and releases against. On schedule
# and workflow_dispatch from main, this is just github.sha.
resolve-source-sha:
name: Resolve source SHA
runs-on: prod-default-v2
permissions:
contents: read
outputs:
source_sha: ${{ steps.resolve.outputs.source_sha }}
steps:
- id: resolve
shell: bash
run: |
set -euo pipefail
SHA="${GITHUB_SHA}"
echo "Using caller SHA: ${SHA}"
echo "source_sha=${SHA}" >> "$GITHUB_OUTPUT"
# ============================================================================
# COMPUTE NIGHTLY DEV VERSION
# ============================================================================
# Emits a PEP 440 dev suffix (e.g. .dev20260423) forwarded to every
# pipeline below. At the leaf, the suffix is stamped into pyproject / Cargo
# versions on the runner before docker build, so wheels produced by the
# wheel_builder stage carry the dev version.
compute-dev-version:
name: Compute dev version suffix
runs-on: prod-default-v2
permissions:
contents: read
outputs:
dev_suffix: ${{ steps.compute.outputs.dev_suffix }}
steps:
- id: compute
shell: bash
run: |
DATE=$(date -u +%Y%m%d)
echo "dev_suffix=.dev${DATE}" >> $GITHUB_OUTPUT
# ============================================================================
# COMPUTE RELEASE MODE
# ============================================================================
# schedule → always release. workflow_dispatch → honor the `release` input.
# Output is consumed by the `release` job below to gate the workflow_call
# into release.yml.
compute-release-mode:
name: Compute release mode
runs-on: prod-default-v2
permissions:
contents: read
outputs:
release: ${{ steps.compute.outputs.release }}
run_tests: ${{ steps.compute.outputs.run_tests }}
steps:
- id: compute
shell: bash
env:
DISPATCH_RELEASE: ${{ inputs.release }}
DISPATCH_RUN_TESTS: ${{ inputs.run_tests }}
run: |
case "${GITHUB_EVENT_NAME}" in
schedule)
# cron must keep tests on so a failing nightly blocks the release.
echo "release=true" >> "$GITHUB_OUTPUT"
echo "run_tests=true" >> "$GITHUB_OUTPUT"
;;
workflow_dispatch)
if [ "${DISPATCH_RELEASE}" = "false" ]; then
echo "release=false" >> "$GITHUB_OUTPUT"
else
echo "release=true" >> "$GITHUB_OUTPUT"
fi
if [ "${DISPATCH_RUN_TESTS}" = "false" ]; then
echo "run_tests=false" >> "$GITHUB_OUTPUT"
else
echo "run_tests=true" >> "$GITHUB_OUTPUT"
fi
;;
*)
echo "release=false" >> "$GITHUB_OUTPUT"
echo "run_tests=true" >> "$GITHUB_OUTPUT"
;;
esac
# Seeds the nightly Slack thread; exposes ts so downstream jobs (and the
# GitLab pipeline) can reply. continue-on-error so a Slack outage doesn't
# block the nightly — downstream jobs skip on empty outputs.
notify-slack-start:
name: Notify Slack — nightly started
runs-on: prod-default-v2
needs: [compute-release-mode, resolve-source-sha, compute-dev-version]
if: ${{ needs.compute-release-mode.outputs.release == 'true' }}
permissions:
contents: read
outputs:
thread_ts: ${{ steps.post.outputs.thread_ts }}
steps:
- name: Post start message
id: post
continue-on-error: true
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_RELEASE_BOT_TOKEN }}
SLACK_CHANNEL_ID: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
SOURCE_SHA: ${{ needs.resolve-source-sha.outputs.source_sha }}
DEV_SUFFIX: ${{ needs.compute-dev-version.outputs.dev_suffix }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
shell: bash
run: |
set -euo pipefail
DATE_UTC=$(date -u +%Y-%m-%d)
SHORT_SHA="${SOURCE_SHA:0:7}"
PAYLOAD=$(jq -n \
--arg channel "${SLACK_CHANNEL_ID}" \
--arg date "${DATE_UTC}" \
--arg sha "${SHORT_SHA}" \
--arg run_url "${RUN_URL}" \
--arg dev "${DEV_SUFFIX}" \
'{
channel: $channel,
text: ("Dynamo Nightly build started — " + $date),
blocks: [
{ type: "header",
text: { type: "plain_text", text: (":crescent_moon: Dynamo Nightly build started — " + $date) } },
{ type: "section",
fields: [
{ type: "mrkdwn", text: ("*Commit:*\n`" + $sha + "`") },
{ type: "mrkdwn", text: ("*Dev version suffix:*\n`" + $dev + "`") }
] },
{ type: "context",
elements: [ { type: "mrkdwn", text: ("<" + $run_url + "|GitHub Actions run>") } ] }
]
}')
RESPONSE=$(curl -fsSL -X POST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer ${SLACK_BOT_TOKEN}" \
-H "Content-type: application/json; charset=utf-8" \
--data "${PAYLOAD}")
OK=$(echo "${RESPONSE}" | jq -r '.ok')
if [ "${OK}" != "true" ]; then
# RESPONSE may carry channel/ts/warning fields; surface only .error.
ERR=$(echo "${RESPONSE}" | jq -r '.error // "unknown"')
echo "::error::Slack chat.postMessage failed: ${ERR}"
exit 1
fi
TS=$(echo "${RESPONSE}" | jq -r '.ts')
# ts is a runtime per-message identifier (not a secret) and is the only
# value other jobs need; channel ID is read by every downstream Slack
# step directly from secrets.SLACK_RELEASE_CHANNEL_ID so it stays
# auto-masked. Do NOT ::add-mask:: the ts — masking it before writing
# GITHUB_OUTPUT caused the value to arrive empty across the
# workflow_call boundary, silently skipping downstream reply steps.
echo "thread_ts=${TS}" >> "${GITHUB_OUTPUT}"
echo "Posted nightly start message"
# ============================================================================
# MANUAL RELEASE APPROVAL GATE
# ============================================================================
# Manual workflow_dispatch that would publish (release=true) must be approved
# by a reviewer of the `manual-release-approval` environment before the
# `release` job runs release.yml. Scheduled runs skip this job; the `release`
# job below accepts `skipped` as success.
manual-release-approval:
name: Manual release approval gate
needs: [compute-release-mode]
if: ${{ github.event_name == 'workflow_dispatch' && needs.compute-release-mode.outputs.release == 'true' }}
runs-on: prod-default-small-v2
environment: manual-release-approval
permissions:
contents: read
steps:
- name: Record approval
run: |
echo "Manual nightly release approved by ${{ github.actor }}"
echo "Run: ${{ github.run_id }} attempt ${{ github.run_attempt }}"
# ============================================================================
# BUILD JOBS
# ============================================================================
vllm-build:
name: vllm-runtime # This name overlaps with other vllm jobs to group them in the UI
needs: [create-fresh-builder, resolve-source-sha, compute-dev-version]
uses: ./.github/workflows/shared-build-image.yml
with:
framework: vllm
target: runtime
cuda_version: '["13.0"]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.create-fresh-builder.outputs.builder_name }}
inline_compliance: true
build_timeout_minutes: 120
# Source archival temporarily disabled until the wheel-builder build
# context includes deploy/inference-gateway/ext-proc (a cargo vendor
# workspace member).
archive_sources: false
# OSRB CSV diff baseline: nightly context -> diff against the previous
# successful scheduled nightly run's compliance artifacts; manual runs
# are excluded (see resolve_diff_base.py).
diff_event_context: nightly
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
# Stamp the checkout with the shared nightly dev suffix BEFORE the build
# (apply_dev_version.py in shared-build-image), so the wheels embedded in
# the image report X.Y.Z.devYYYYMMDD — matching the Artifactory-published
# nightly wheels and the dynamo-runtime image from dynamo-pipeline.
dev_version_suffix: ${{ needs.compute-dev-version.outputs.dev_suffix }}
secrets: inherit
sglang-build:
name: sglang-runtime # This name overlaps with other sglang jobs to group them in the UI
needs: [create-fresh-builder, resolve-source-sha, compute-dev-version]
uses: ./.github/workflows/shared-build-image.yml
with:
framework: sglang
target: runtime
cuda_version: '["13.0"]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.create-fresh-builder.outputs.builder_name }}
inline_compliance: true
build_timeout_minutes: 120
archive_sources: false
# OSRB CSV diff baseline: nightly context -> diff against the previous
# successful scheduled nightly run's compliance artifacts; manual runs
# are excluded (see resolve_diff_base.py).
diff_event_context: nightly
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
# Stamp the checkout with the shared nightly dev suffix BEFORE the build
# (apply_dev_version.py in shared-build-image), so the wheels embedded in
# the image report X.Y.Z.devYYYYMMDD — matching the Artifactory-published
# nightly wheels and the dynamo-runtime image from dynamo-pipeline.
dev_version_suffix: ${{ needs.compute-dev-version.outputs.dev_suffix }}
secrets: inherit
trtllm-build:
name: trtllm-runtime # This name overlaps with other trtllm jobs to group them in the UI
needs: [create-fresh-builder, resolve-source-sha, compute-dev-version]
uses: ./.github/workflows/shared-build-image.yml
with:
framework: trtllm
target: runtime
cuda_version: '["13.1"]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.create-fresh-builder.outputs.builder_name }}
inline_compliance: true
build_timeout_minutes: 120
archive_sources: false
# OSRB CSV diff baseline: nightly context -> diff against the previous
# successful scheduled nightly run's compliance artifacts; manual runs
# are excluded (see resolve_diff_base.py).
diff_event_context: nightly
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
# Stamp the checkout with the shared nightly dev suffix BEFORE the build
# (apply_dev_version.py in shared-build-image), so the wheels embedded in
# the image report X.Y.Z.devYYYYMMDD — matching the Artifactory-published
# nightly wheels and the dynamo-runtime image from dynamo-pipeline.
dev_version_suffix: ${{ needs.compute-dev-version.outputs.dev_suffix }}
secrets: inherit
# ============================================================================
# OPTIONAL NIGHTLY IMAGES (operator, planner, frontend, snapshot agent,
# runtime EFA variants)
# ============================================================================
# Built HERE — not reused from post-merge — for two reasons:
# 1. OSRB from the get-go: GitLab's nvbug:attach-compliance resolves
# compliance-<sha>-<token> artifacts on the run id this workflow
# forwards, so the CSVs must be produced by THIS run.
# 2. Tag isolation (same invariant as the runtime builds): the -nightly
# ECR tag suffix means a missing or failed nightly build can never
# fall through to — or overwrite — the post-merge image at the same SHA.
# None of these jobs gates the release below: release.yml copies each
# fail-soft (build-result gate + crane-manifest probe, warn-skip) so a
# flake in any optional image cannot block the runtime nightly.
# resolve-source-sha is always GITHUB_SHA here, so github.sha-keyed tags
# match the resolved source.
operator-build:
name: kubernetes-operator
needs: [create-fresh-builder, resolve-source-sha]
runs-on: prod-default-v2
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 operator (nightly tag)
id: build
uses: ./.github/actions/build-deploy-component
with:
component: operator
image_tag: ${{ github.sha }}-operator-nightly
# Canonical compliance artifact name — OSRB attach tokens and the
# nightly diff-baseline lookup key on compliance-<sha>-operator,
# independent of the -nightly image-tag suffix.
artifact_tag: ${{ github.sha }}-operator
builder_name: ${{ needs.create-fresh-builder.outputs.builder_name }}
aws_default_region: ${{ secrets.AWS_DEFAULT_REGION }}
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
# OSRB CSV diff baseline: previous successful scheduled nightly run
# (first nightly soft-degrades to baseline_unavailable).
diff_event_context: nightly
gh_token: ${{ secrets.GITHUB_TOKEN }}
planner-build:
name: dynamo-planner
needs: [create-fresh-builder, resolve-source-sha, compute-dev-version]
uses: ./.github/workflows/shared-build-image.yml
with:
framework: dynamo
target: planner
cuda_version: '[""]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.create-fresh-builder.outputs.builder_name }}
inline_compliance: true
build_timeout_minutes: 45
archive_sources: false
# OSRB CSV diff baseline: nightly context -> diff against the previous
# successful scheduled nightly run's compliance artifacts; manual runs
# are excluded (see resolve_diff_base.py). Compliance artifact is
# compliance-<sha>-dynamo-planner (target_tag_plain — no -nightly
# suffix), matching the OSRB token.
diff_event_context: nightly
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
# Stamp the checkout with the shared nightly dev suffix BEFORE the build
# (apply_dev_version.py in shared-build-image), so the wheels embedded in
# the image report X.Y.Z.devYYYYMMDD — matching the Artifactory-published
# nightly wheels and the dynamo-runtime image from dynamo-pipeline.
dev_version_suffix: ${{ needs.compute-dev-version.outputs.dev_suffix }}
secrets: inherit
frontend-build:
name: dynamo-frontend
needs: [create-fresh-builder, resolve-source-sha, compute-dev-version]
uses: ./.github/workflows/shared-build-image.yml
with:
framework: dynamo
target: frontend
cuda_version: '[""]'
platform: 'linux/amd64,linux/arm64'
builder_name: ${{ needs.create-fresh-builder.outputs.builder_name }}
inline_compliance: true
build_timeout_minutes: 45
archive_sources: false
# Compliance artifact is compliance-<sha>-dynamo-frontend
# (target_tag_plain — no -nightly suffix), matching the OSRB token.
diff_event_context: nightly
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
# Stamp the checkout with the shared nightly dev suffix BEFORE the build
# (apply_dev_version.py in shared-build-image), so the wheels embedded in
# the image report X.Y.Z.devYYYYMMDD — matching the Artifactory-published
# nightly wheels and the dynamo-runtime image from dynamo-pipeline.
dev_version_suffix: ${{ needs.compute-dev-version.outputs.dev_suffix }}
secrets: inherit
snapshot-build:
name: snapshot-agent
needs: [create-fresh-builder, resolve-source-sha]
runs-on: prod-default-v2
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 (nightly tag)
id: build
uses: ./.github/actions/build-deploy-component
with:
component: snapshot
image_tag: ${{ github.sha }}-snapshot-agent-nightly
# Canonical compliance artifact name — OSRB attach tokens and the
# nightly diff-baseline lookup key on compliance-<sha>-snapshot-agent,
# independent of the -nightly image-tag suffix.
artifact_tag: ${{ github.sha }}-snapshot-agent
builder_name: ${{ needs.create-fresh-builder.outputs.builder_name }}
aws_default_region: ${{ secrets.AWS_DEFAULT_REGION }}
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
# OSRB CSV diff baseline: previous successful scheduled nightly run
# (first nightly soft-degrades to baseline_unavailable).
diff_event_context: nightly
gh_token: ${{ secrets.GITHUB_TOKEN }}
vllm-efa-build:
name: vllm-runtime-efa
needs: [create-fresh-builder, resolve-source-sha, compute-dev-version]
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.create-fresh-builder.outputs.builder_name }}
inline_compliance: true
build_timeout_minutes: 120
archive_sources: false
diff_event_context: nightly
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
# Stamp the checkout with the shared nightly dev suffix BEFORE the build
# (apply_dev_version.py in shared-build-image), so the wheels embedded in
# the image report X.Y.Z.devYYYYMMDD — matching the Artifactory-published
# nightly wheels and the dynamo-runtime image from dynamo-pipeline.
dev_version_suffix: ${{ needs.compute-dev-version.outputs.dev_suffix }}
secrets: inherit
sglang-efa-build:
name: sglang-runtime-efa
needs: [create-fresh-builder, resolve-source-sha, compute-dev-version]
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.create-fresh-builder.outputs.builder_name }}
inline_compliance: true
build_timeout_minutes: 120
archive_sources: false
diff_event_context: nightly
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
# Stamp the checkout with the shared nightly dev suffix BEFORE the build
# (apply_dev_version.py in shared-build-image), so the wheels embedded in
# the image report X.Y.Z.devYYYYMMDD — matching the Artifactory-published
# nightly wheels and the dynamo-runtime image from dynamo-pipeline.
dev_version_suffix: ${{ needs.compute-dev-version.outputs.dev_suffix }}
secrets: inherit
trtllm-efa-build:
name: trtllm-runtime-efa
needs: [create-fresh-builder, resolve-source-sha, compute-dev-version]
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.create-fresh-builder.outputs.builder_name }}
inline_compliance: true
build_timeout_minutes: 120
archive_sources: false
diff_event_context: nightly
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
# Stamp the checkout with the shared nightly dev suffix BEFORE the build
# (apply_dev_version.py in shared-build-image), so the wheels embedded in
# the image report X.Y.Z.devYYYYMMDD — matching the Artifactory-published
# nightly wheels and the dynamo-runtime image from dynamo-pipeline.
dev_version_suffix: ${{ needs.compute-dev-version.outputs.dev_suffix }}
secrets: inherit
# ============================================================================
# COMPLIANCE
# ============================================================================
# Compliance extract + verify now runs as an inline step INSIDE each build job
# (inline_compliance: true above), on the same warm builder — a cache hit + small
# scratch export instead of a cold full-image rebuild on the fresh builder. The
# build jobs currently set archive_sources: false (archival temporarily
# disabled — see above), so /sources.zip is not emitted; /legal + /sboms still
# upload at the default 30-day retention. A compliance failure fails the build.
# ============================================================================
# TEST JOBS
# ============================================================================
vllm-test:
name: vllm-runtime # This name overlaps with other vllm jobs to group them in the UI
needs: [vllm-build, resolve-source-sha, compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
uses: ./.github/workflows/shared-test.yml
with:
dd_env: nightly
dd_flaky_retry_enabled: 'false'
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
enable_coverage: true
run_cpu_only_tests: true
cpu_only_test_markers: vllm and gpu_0
gpu_test_markers: vllm and gpu_1
gpu_test_timeout_minutes: 240
# 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'
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
secrets: inherit
vllm-multi-gpu-test:
name: vllm-runtime # This name overlaps with other vllm jobs to group them in the UI
needs: [vllm-build, resolve-source-sha, compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
uses: ./.github/workflows/shared-test.yml
with:
dd_env: nightly
dd_flaky_retry_enabled: 'false'
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
enable_coverage: true
run_sanity_check: false
# Includes elastic_ep, locally validated DP=2->4->2 on H200 GPUs with
# vLLM 0.24.0. That test remains pytest-skipped because this runner has
# 24 GiB/GPU, while its unquantized EPLB model needs >=80 GiB/GPU.
gpu_test_markers: vllm and (gpu_2 or gpu_4)
gpu_test_timeout_minutes: 45
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
secrets: inherit
vllm-h100-test:
name: vllm-runtime # This name overlaps with other vllm jobs to group them in the UI
needs: [vllm-build, resolve-source-sha, compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
uses: ./.github/workflows/shared-test.yml
with:
dd_env: nightly
dd_flaky_retry_enabled: 'false'
test_suite_name: vllm
test_type: H100 Test
# 2x 80 GiB H100 lane; runs vllm single- and dual-GPU tests, incl. h100-only cases.
amd_runner: aws-dev-02-tester-amd-gpu-v2
target_tag_plain: ${{ needs.vllm-build.outputs.target_tag_plain }}
cuda_version: '["13.0"]'
platform: '["amd64"]'
enable_coverage: true
run_sanity_check: false
gpu_test_markers: vllm and (gpu_1 or gpu_2)
gpu_test_timeout_minutes: 240
# 80 GiB H100 admits more of the profiled pool per slot than the 24 GiB lanes.
run_gpu_parallel_tests: true
gpu_parallel_max_vram_gib: '80'
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
secrets: inherit
sglang-test:
name: sglang-runtime # This name overlaps with other sglang jobs to group them in the UI
needs: [sglang-build, resolve-source-sha, compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
uses: ./.github/workflows/shared-test.yml
with:
dd_env: nightly
dd_flaky_retry_enabled: 'false'
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
enable_coverage: true
run_cpu_only_tests: true
cpu_only_test_markers: sglang and gpu_0
# Exclude h100 tests: they need >24 GiB and run on the sglang-h100-test lane below.
gpu_test_markers: sglang and gpu_1 and not h100
gpu_test_timeout_minutes: 240
# 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'
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
secrets: inherit
sglang-multi-gpu-test:
name: sglang-runtime # This name overlaps with other sglang jobs to group them in the UI
needs: [sglang-build, resolve-source-sha, compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
uses: ./.github/workflows/shared-test.yml
with:
dd_env: nightly
dd_flaky_retry_enabled: 'false'
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
enable_coverage: true
run_sanity_check: false
gpu_test_markers: sglang and (gpu_2 or gpu_4)
gpu_test_timeout_minutes: 45
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
secrets: inherit
sglang-h100-test:
name: sglang-runtime # This name overlaps with other sglang jobs to group them in the UI
needs: [sglang-build, resolve-source-sha, compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
uses: ./.github/workflows/shared-test.yml
with:
dd_env: nightly
dd_flaky_retry_enabled: 'false'
test_suite_name: sglang
test_type: H100 Test
# 2x 80 GiB H100 lane; runs sglang single- and dual-GPU tests, incl. h100-only cases.
amd_runner: aws-dev-02-tester-amd-gpu-v2
target_tag_plain: ${{ needs.sglang-build.outputs.target_tag_plain }}
cuda_version: '["13.0"]'
platform: '["amd64"]'
enable_coverage: true
run_sanity_check: false
gpu_test_markers: sglang and (gpu_1 or gpu_2)
gpu_test_timeout_minutes: 240
# 80 GiB H100 admits more of the profiled pool per slot than the 24 GiB lanes.
run_gpu_parallel_tests: true
gpu_parallel_max_vram_gib: '80'
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
secrets: inherit
trtllm-test:
name: trtllm-runtime # This name overlaps with other trtllm jobs to group them in the UI
needs: [trtllm-build, resolve-source-sha, compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
uses: ./.github/workflows/shared-test.yml
with:
dd_env: nightly
dd_flaky_retry_enabled: 'false'
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
enable_coverage: true
run_cpu_only_tests: true
cpu_only_test_markers: trtllm and gpu_0
gpu_test_markers: trtllm and gpu_1
gpu_test_timeout_minutes: 240
# 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'
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
secrets: inherit
trtllm-multi-gpu-test:
name: trtllm-runtime # This name overlaps with other trtllm jobs to group them in the UI
needs: [trtllm-build, resolve-source-sha, compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
uses: ./.github/workflows/shared-test.yml
with:
dd_env: nightly
dd_flaky_retry_enabled: 'false'
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
enable_coverage: true
run_sanity_check: false
gpu_test_markers: trtllm and (gpu_2 or gpu_4)
gpu_test_timeout_minutes: 45
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
secrets: inherit
trtllm-h100-test:
name: trtllm-runtime # This name overlaps with other trtllm jobs to group them in the UI
needs: [trtllm-build, resolve-source-sha, compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
uses: ./.github/workflows/shared-test.yml
with:
dd_env: nightly
dd_flaky_retry_enabled: 'false'
test_suite_name: trtllm
test_type: H100 Test
# 2x 80 GiB H100 lane; runs trtllm single- and dual-GPU tests, incl. h100-only cases.
amd_runner: aws-dev-02-tester-amd-gpu-v2
target_tag_plain: ${{ needs.trtllm-build.outputs.target_tag_plain }}
cuda_version: '["13.1"]'
platform: '["amd64"]'
enable_coverage: true
run_sanity_check: false
gpu_test_markers: trtllm and (gpu_1 or gpu_2)
gpu_test_timeout_minutes: 240
# 80 GiB H100 admits more of the profiled pool per slot than the 24 GiB lanes.
run_gpu_parallel_tests: true
gpu_parallel_max_vram_gib: '80'
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
secrets: inherit
# ============================================================================
# XPU TEST JOBS
# ============================================================================
vllm-test-xpu:
name: vllm-xpu
needs: [resolve-source-sha, compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
uses: ./.github/workflows/xpu-ci.yaml
with:
framework: vllm
pytest_markers: 'vllm'
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
# ============================================================================
# DYNAMO RUNTIME PIPELINE
# ============================================================================
dynamo-pipeline:
name: dynamo-runtime
needs: [create-fresh-builder, compute-dev-version, resolve-source-sha]
uses: ./.github/workflows/dynamo-pipeline.yml
with:
builder_name: ${{ needs.create-fresh-builder.outputs.builder_name }}
fresh_builder: true
no_cache: true
build_timeout_minutes: 120
# TODO: widen beyond `pre_merge` — today it picks up tests
# (e.g. fault_tolerance/deploy/*) that fail in this container-only
# context. Matches the coverage of the old container-validation-dynamo
# workflow.
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'
dev_version_suffix: ${{ needs.compute-dev-version.outputs.dev_suffix }}
source_ref: ${{ needs.resolve-source-sha.outputs.source_sha }}
image_tag_suffix: '-nightly'
secrets: inherit
# ============================================================================
# RUST COVERAGE
# ============================================================================
rust-tests:
name: rust-${{ matrix.dir == '.' && 'root' || matrix.dir }}-coverage
needs: [compute-release-mode]
if: ${{ needs.compute-release-mode.outputs.run_tests == 'true' }}
runs-on:
group: Fastchecker
strategy:
fail-fast: false
matrix:
dir: ['.', 'lib/bindings/python', 'lib/bindings/kvbm']
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
lfs: true
- name: Set up system dependencies
run: |
# Install protoc for Rust build dependencies (NOTE: much faster than apt install)
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
PROTOC_VER="30.2"
PROTOC_ZIP="protoc-${PROTOC_VER}-linux-x86_64.zip"
PROTOC_SHA256="327e9397c6fb3ea2a542513a3221334c6f76f7aa524a7d2561142b67b312a01f"
curl --retry 5 --retry-delay 2 -fsSLO "$PB_REL/download/v${PROTOC_VER}/${PROTOC_ZIP}"
echo "${PROTOC_SHA256} ${PROTOC_ZIP}" | sha256sum -c -
unzip "${PROTOC_ZIP}" -d $HOME/.local
rm "${PROTOC_ZIP}"
export PATH="$PATH:$HOME/.local/bin"
protoc --version
- name: Cache cargo artifacts
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
~/.cargo/bin/
~/.cargo/registry
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Set up Rust Toolchain Components
run: rustup component add llvm-tools-preview
- name: Install cargo-llvm-cov
run: cargo-llvm-cov --version 2>/dev/null || cargo install cargo-llvm-cov --locked
# Have an explicit step to build tests first to separate time spent on build vs execution.
- name: Compile Tests
working-directory: ${{ matrix.dir }}
run: cargo test --locked --no-run
- name: Run Unit Tests with Coverage
working-directory: ${{ matrix.dir }}
# NOTE: --all-targets doesn't run doc tests.
# cargo llvm-cov is a drop-in for cargo test; --no-report defers output
# so we can generate multiple formats without re-running the tests.
run: |
cargo llvm-cov --locked --all-targets --no-report
cargo llvm-cov report --output-path coverage-rust.txt
cargo llvm-cov report --lcov --output-path coverage-rust.lcov
echo "Coverage summary:"
grep "^TOTAL" coverage-rust.txt || tail -3 coverage-rust.txt
SAFE_DIR=$(echo "${{ matrix.dir }}" | sed 's|^\.$|root|' | tr '/' '-')
echo "RUST_COV_ARTIFACT_NAME=coverage-rust-${SAFE_DIR}-${{ github.run_id }}" >> $GITHUB_ENV
- name: Upload Rust Coverage Data
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: ${{ env.RUST_COV_ARTIFACT_NAME }}
path: |
${{ matrix.dir }}/coverage-rust.txt
${{ matrix.dir }}/coverage-rust.lcov
retention-days: 7
# ============================================================================
# RELEASE (workflow_call into release.yml)
# ============================================================================
# commit_sha is the SHA `resolve-source-sha` picked (github.sha). release.yml
# requires post-merge CI to have already pushed images to ECR for that SHA;
# on schedule this is true because post-merge runs on every merge to main
# and nightly fires later.
release:
name: Release Nightly
needs:
- resolve-source-sha
- compute-release-mode
- notify-slack-start
- manual-release-approval
- vllm-build
- sglang-build
- trtllm-build
- dynamo-pipeline
- operator-build
- planner-build
- frontend-build
- snapshot-build
- vllm-efa-build
- sglang-efa-build
- trtllm-efa-build
# !cancelled() lets the job evaluate the explicit gates below rather than
# implicitly requiring every need to succeed (notify-slack-start is
# best-effort). All three runtime builds and dynamo-pipeline are gated
# strictly: release.yml copies their -nightly ECR images to NGC and extracts
# wheels from the dynamo-pipeline image, so a failed build must not publish a
# partial release. manual-release-approval is `skipped` on cron, `success` on dispatch.
# The optional-image builds (operator, planner, frontend, snapshot agent,
# EFA variants) are ORDERING-ONLY needs (deliberately absent from the
# gate below): release.yml copies them fail-soft, so a flake in any of
# them must not block the runtime nightly — but the copy step has to run
# after they finish or the crane probe would race the builds.
if: ${{ !cancelled()
&& needs.compute-release-mode.outputs.release == 'true'
&& needs.vllm-build.result == 'success'
&& needs.sglang-build.result == 'success'
&& needs.trtllm-build.result == 'success'
&& needs.dynamo-pipeline.result == 'success'
&& (needs.manual-release-approval.result == 'success'
|| needs.manual-release-approval.result == 'skipped') }}
uses: ./.github/workflows/release.yml
with:
commit_sha: ${{ needs.resolve-source-sha.outputs.source_sha }}
nightly: true
skip_gitlab_pipeline: ${{ inputs.skip_gitlab_pipeline || false }}
slack_thread_ts: ${{ needs.notify-slack-start.outputs.thread_ts }}
# THIS run's build results — release.yml's copy step skips either image
# when its build here did not succeed, so a failed build can never
# republish a previous run's image at an unchanged SHA. (A direct
# workflow_dispatch of release.yml leaves these empty and stages from
# existing -nightly ECR tags, matching the runtimes.)
operator_build_result: ${{ needs.operator-build.result }}
planner_build_result: ${{ needs.planner-build.result }}
frontend_build_result: ${{ needs.frontend-build.result }}
snapshot_build_result: ${{ needs.snapshot-build.result }}
vllm_efa_build_result: ${{ needs.vllm-efa-build.result }}
sglang_efa_build_result: ${{ needs.sglang-efa-build.result }}
trtllm_efa_build_result: ${{ needs.trtllm-efa-build.result }}
secrets: inherit
# ============================================================================
# COVERAGE REPORT
# ============================================================================
coverage-report:
name: Generate Coverage Report
runs-on: ubuntu-latest
needs: [vllm-test, vllm-multi-gpu-test, vllm-h100-test, sglang-test, sglang-multi-gpu-test, sglang-h100-test, trtllm-test, trtllm-multi-gpu-test, trtllm-h100-test, rust-tests]
if: always()
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.12'
- name: Install Coverage Tools
run: |
python -m pip install "coverage[toml]==7.13.1"
python -m coverage --version
echo "✅ Coverage tools installed"
- name: Download All Python Coverage Artifacts
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
pattern: coverage-python-*
path: coverage-artifacts/
merge-multiple: false
- name: Download All Rust Coverage Artifacts
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
continue-on-error: true
with:
pattern: coverage-rust-*
path: coverage-rust-artifacts/
merge-multiple: false
- name: List Downloaded Artifacts
run: |
echo "📦 Downloaded coverage artifacts:"
echo "==== Directory structure (including hidden files) ===="
ls -Ra coverage-artifacts/
echo ""
echo "==== Coverage files found ===="
find coverage-artifacts/ -type f \( -name "*.xml" -o -name ".coverage*" \) | sort
echo ""
echo "==== Specifically looking for .coverage files ===="
find coverage-artifacts/ -name ".coverage" -type f
echo ""