Skip to content

Commit a66579a

Browse files
Merge branch 'main' into jsm/autoscale
2 parents de1a157 + 67273ab commit a66579a

File tree

210 files changed

+8783
-2130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+8783
-2130
lines changed

.github/actions/docker-build/action.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,6 @@ runs:
280280
if [ ${PARSER_EXIT_CODE} -eq 0 ] && [ -f "$COMPREHENSIVE_JSON" ]; then
281281
echo "✅ Comprehensive build metrics generated successfully"
282282
echo "📄 Output file: ${COMPREHENSIVE_JSON}"
283-
echo ""
284-
echo "=========================================="
285-
echo "📋 FULL JSON OUTPUT (for debugging)"
286-
echo "=========================================="
287-
cat "$COMPREHENSIVE_JSON"
288-
echo ""
289-
echo "=========================================="
290283
else
291284
echo "⚠️ Metrics generation had issues but continuing..."
292285
fi

.github/actions/pytest/action.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,16 @@ runs:
5454
# Run pytest with detailed output and JUnit XML
5555
set +e # Don't exit on test failures
5656
57-
docker run --runtime=nvidia --gpus all -w /workspace \
57+
# Detect GPU availability and conditionally add GPU flags
58+
GPU_FLAGS=""
59+
if command -v nvidia-smi &> /dev/null && nvidia-smi &> /dev/null; then
60+
echo "GPU detected, enabling GPU runtime"
61+
GPU_FLAGS="--runtime=nvidia --gpus all"
62+
else
63+
echo "No GPU detected, running in CPU-only mode"
64+
fi
65+
66+
docker run ${GPU_FLAGS} --rm -w /workspace \
5867
--cpus=${NUM_CPUS} \
5968
--network host \
6069
--name ${{ env.CONTAINER_ID }}_pytest \
@@ -130,4 +139,4 @@ runs:
130139
path: |
131140
test-results/pytest_test_report_${{ inputs.framework }}_${{ env.STR_TEST_TYPE }}_${{ inputs.platform_arch }}.xml
132141
test-results/test_metadata_${{ inputs.framework }}_${{ env.STR_TEST_TYPE }}_${{ inputs.platform_arch }}.json
133-
retention-days: 7
142+
retention-days: 7

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

Lines changed: 9 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -179,23 +179,14 @@ jobs:
179179
azure_acr_user: ${{ secrets.AZURE_ACR_USER }}
180180
azure_acr_password: ${{ secrets.AZURE_ACR_PASSWORD }}
181181

182-
- name: Run unit tests
182+
- name: Run tests
183183
if: ${{ matrix.platform.arch != 'arm64' }}
184184
uses: ./.github/actions/pytest
185185
with:
186186
image_tag: ${{ steps.build-image.outputs.image_tag }}
187-
pytest_marks: "unit and vllm and gpu_1"
187+
pytest_marks: "pre_merge and vllm"
188188
framework: "vllm"
189-
test_type: "unit"
190-
platform_arch: ${{ matrix.platform.arch }}
191-
- name: Run e2e tests
192-
if: ${{ matrix.platform.arch != 'arm64' }}
193-
uses: ./.github/actions/pytest
194-
with:
195-
image_tag: ${{ steps.build-image.outputs.image_tag }}
196-
pytest_marks: "e2e and vllm and gpu_1 and not slow"
197-
framework: "vllm"
198-
test_type: "e2e, gpu_1"
189+
test_type: "pre_merge"
199190
platform_arch: ${{ matrix.platform.arch }}
200191

201192
sglang:
@@ -246,23 +237,14 @@ jobs:
246237
azure_acr_user: ${{ secrets.AZURE_ACR_USER }}
247238
azure_acr_password: ${{ secrets.AZURE_ACR_PASSWORD }}
248239

249-
- name: Run unit tests
250-
if: ${{ matrix.platform.arch != 'arm64' }}
251-
uses: ./.github/actions/pytest
252-
with:
253-
image_tag: ${{ steps.build-image.outputs.image_tag }}
254-
pytest_marks: "unit and sglang and gpu_1"
255-
framework: "sglang"
256-
test_type: "unit"
257-
platform_arch: ${{ matrix.platform.arch }}
258-
- name: Run e2e tests
240+
- name: Run tests
259241
if: ${{ matrix.platform.arch != 'arm64' }}
260242
uses: ./.github/actions/pytest
261243
with:
262244
image_tag: ${{ steps.build-image.outputs.image_tag }}
263-
pytest_marks: "e2e and sglang and gpu_1"
245+
pytest_marks: "pre_merge and sglang"
264246
framework: "sglang"
265-
test_type: "e2e, gpu_1"
247+
test_type: "pre_merge"
266248
platform_arch: ${{ matrix.platform.arch }}
267249

268250
trtllm:
@@ -313,23 +295,14 @@ jobs:
313295
azure_acr_user: ${{ secrets.AZURE_ACR_USER }}
314296
azure_acr_password: ${{ secrets.AZURE_ACR_PASSWORD }}
315297

316-
- name: Run unit tests
317-
if: ${{ matrix.platform.arch != 'arm64' }}
318-
uses: ./.github/actions/pytest
319-
with:
320-
image_tag: ${{ steps.build-image.outputs.image_tag }}
321-
pytest_marks: "unit and trtllm_marker and gpu_1"
322-
framework: "trtllm"
323-
test_type: "unit"
324-
platform_arch: ${{ matrix.platform.arch }}
325-
- name: Run e2e tests
298+
- name: Run tests
326299
if: ${{ matrix.platform.arch != 'arm64' }}
327300
uses: ./.github/actions/pytest
328301
with:
329302
image_tag: ${{ steps.build-image.outputs.image_tag }}
330-
pytest_marks: "e2e and trtllm_marker and gpu_1 and not slow"
303+
pytest_marks: "pre_merge and trtllm"
331304
framework: "trtllm"
332-
test_type: "e2e, gpu_1"
305+
test_type: "pre_merge"
333306
platform_arch: ${{ matrix.platform.arch }}
334307

335308
deploy-test-fault-tolerance:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
docker compose down
6666
- name: Run pytest (parallel tests with xdist)
6767
env:
68-
PYTEST_MARKS: "pre_merge and parallel"
68+
PYTEST_MARKS: "pre_merge and parallel and not (vllm or sglang or trtllm)"
6969
run: |
7070
docker run -w /workspace \
7171
--name ${{ env.CONTAINER_ID }}_pytest_parallel \
@@ -77,7 +77,7 @@ jobs:
7777
docker cp ${{ env.CONTAINER_ID }}_pytest_parallel:/workspace/${{ env.PYTEST_PARALLEL_XML_FILE }} . || echo "No parallel test report found"
7878
- name: Run pytest (sequential tests)
7979
env:
80-
PYTEST_MARKS: "(pre_merge and not parallel) or mypy"
80+
PYTEST_MARKS: "((pre_merge and not parallel) or mypy) and not (vllm or sglang or trtllm)"
8181
run: |
8282
docker run -w /workspace \
8383
--name ${{ env.CONTAINER_ID }}_pytest \

0 commit comments

Comments
 (0)