Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/test-template/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inputs:
description: "Test script to execute"
required: true
is_optional:
description: "Failure will cancel all other tests if set to true"
description: "Failure is ignored and other tests continue if set to true"
required: false
default: "false"
is_unit_test:
Expand Down
36 changes: 30 additions & 6 deletions .github/workflows/cicd-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ jobs:
runner: ${{ matrix.runner }}

cicd-e2e-tests-trt-onnx:
strategy:
fail-fast: false
matrix:
include:
- script: L2_ONNX_TRT
is_optional: false
needs: [pre-flight, cicd-unit-tests-vllm]
runs-on: ${{ needs.pre-flight.outputs.runner_prefix }}
name: ${{ matrix.is_optional && 'PLEASEFIXME_' || '' }}${{ matrix.script }}
Expand All @@ -222,8 +228,8 @@ jobs:
- name: main
uses: ./.github/actions/test-template
with:
script: L2_ONNX_TRT
is_optional: ${{ matrix.is_optional || false }}
script: ${{ matrix.script }}
is_optional: ${{ matrix.is_optional }}
is_unit_test: "false"
timeout: 60
PAT: ${{ steps.app-token.outputs.token }}
Expand All @@ -233,6 +239,12 @@ jobs:
runner: ${{ needs.pre-flight.outputs.runner_prefix }}

cicd-e2e-tests-vllm:
strategy:
fail-fast: false
matrix:
include:
- script: L2_Launch_vLLM
is_optional: false
needs: [cicd-unit-tests-vllm, pre-flight]
runs-on: ${{ needs.pre-flight.outputs.runner_prefix }}
name: ${{ matrix.is_optional && 'PLEASEFIXME_' || '' }}${{ matrix.script }}
Expand All @@ -257,8 +269,8 @@ jobs:
- name: main
uses: ./.github/actions/test-template
with:
script: L2_Launch_vLLM
is_optional: ${{ matrix.is_optional || false }}
script: ${{ matrix.script }}
is_optional: ${{ matrix.is_optional }}
is_unit_test: "false"
timeout: 60
PAT: ${{ steps.app-token.outputs.token }}
Expand All @@ -268,7 +280,19 @@ jobs:
runner: ${{ needs.pre-flight.outputs.runner_prefix }}

cicd-e2e-tests-inframework:
strategy:
fail-fast: false
matrix:
include:
- script: L2_Launch_InFramework
is_optional: false
needs: [pre-flight, cicd-unit-tests-vllm]
strategy:
fail-fast: false
matrix:
include:
- script: L2_Launch_InFramework
is_optional: false
runs-on: ${{ needs.pre-flight.outputs.runner_prefix }}
name: ${{ matrix.is_optional && 'PLEASEFIXME_' || '' }}${{ matrix.script }}
environment: nemo-ci
Expand All @@ -292,8 +316,8 @@ jobs:
- name: main
uses: ./.github/actions/test-template
with:
script: L2_Launch_InFramework
is_optional: ${{ matrix.is_optional || false }}
script: ${{ matrix.script }}
is_optional: ${{ matrix.is_optional }}
is_unit_test: "false"
timeout: 60
PAT: ${{ steps.app-token.outputs.token }}
Expand Down
35 changes: 35 additions & 0 deletions tests/test_cicd_yaml.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from pathlib import Path

import yaml

WORKFLOW_FILE = Path(__file__).resolve().parents[1] / ".github" / "workflows" / "cicd-main.yml"


def test_inframework_e2e_job_has_matching_matrix():
"""Regression test for the inframework e2e job referencing matrix values without a strategy block."""
workflow = yaml.safe_load(WORKFLOW_FILE.read_text())
job = workflow["jobs"]["cicd-e2e-tests-inframework"]

assert "strategy" in job, "inframework e2e job must define a strategy block"
assert "matrix" in job["strategy"], "strategy block must define a matrix"

include = job["strategy"]["matrix"].get("include", [])
assert len(include) == 1, "expected exactly one matrix include for the inframework e2e job"
matrix = include[0]
assert matrix["script"] == "L2_Launch_InFramework"
assert matrix["is_optional"] is False

21 changes: 21 additions & 0 deletions unit_tests/github_actions/test_optional_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
"""Regression test: is_optional description matches behavior."""

import sys


def main():
with open(".github/actions/test-template/action.yml") as f:
content = f.read()

if "Failure will cancel all other tests if set to true" in content:
print("BUG: is_optional description inverts the actual behavior")
sys.exit(1)

if "is_optional:" not in content or "description:" not in content:
print("Could not find is_optional input description")
sys.exit(1)

print("OK")


Loading