From 7438bf5618e7c2fcf0966eb40d792bd72dad7083 Mon Sep 17 00:00:00 2001 From: Charlie Truong Date: Mon, 3 Nov 2025 08:39:53 -0600 Subject: [PATCH 1/2] Run mr-slim tests in lightweight-mode Signed-off-by: Charlie Truong --- .github/workflows/cicd-main.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cicd-main.yml b/.github/workflows/cicd-main.yml index f2ecad89936..95a5dfc86c8 100644 --- a/.github/workflows/cicd-main.yml +++ b/.github/workflows/cicd-main.yml @@ -159,10 +159,10 @@ jobs: needs: [pre-flight] if: | ( - needs.pre-flight.outputs.is_deployment_workflow == 'false' + needs.pre-flight.outputs.is_deployment_workflow == 'false' && needs.pre-flight.outputs.is_ci_workload == 'true' ) || ( - needs.pre-flight.outputs.is_deployment_workflow == 'false' + needs.pre-flight.outputs.is_deployment_workflow == 'false' && needs.pre-flight.outputs.is_ci_workload == 'false' && needs.pre-flight.outputs.docs_only == 'false' ) @@ -193,8 +193,8 @@ jobs: export GITLAB_ENDPOINT=github.com export CI_PROJECT_NAMESPACE=NVIDIA export BASE_REF="${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }}" - export CHECK_ONLY=true - export SKIP_DOCS=false + export CHECK_ONLY=true + export SKIP_DOCS=false bash tools/autoformat.sh cicd-wait-in-queue: @@ -217,7 +217,7 @@ jobs: environment: nemo-ci if: | ( - success() + success() || needs.pre-flight.outputs.is_ci_workload == 'true' || needs.pre-flight.outputs.force_run_all == 'true' ) @@ -310,7 +310,7 @@ jobs: - cicd-container-build if: | ( - success() + success() || needs.pre-flight.outputs.is_ci_workload == 'true' || needs.pre-flight.outputs.force_run_all == 'true' ) @@ -340,7 +340,7 @@ jobs: environment: nemo-ci if: | ( - success() + success() || needs.pre-flight.outputs.is_ci_workload == 'true' || needs.pre-flight.outputs.force_run_all == 'true' ) @@ -373,7 +373,7 @@ jobs: environment: nemo-ci if: | ( - success() + success() || needs.pre-flight.outputs.is_ci_workload == 'true' || needs.pre-flight.outputs.force_run_all == 'true' ) @@ -414,6 +414,7 @@ jobs: else ARGS=( --scope mr-slim + --enable-lightweight-mode ) fi @@ -457,7 +458,7 @@ jobs: PIP_ROOT_USER_ACTION: ignore if: | ( - success() + success() || needs.pre-flight.outputs.is_ci_workload == 'true' || needs.pre-flight.outputs.force_run_all == 'true' ) @@ -540,7 +541,7 @@ jobs: script: | await github.rest.repos.createCommitStatus({ owner: context.repo.owner, - repo: context.repo.repo, + repo: context.repo.repo, sha: context.sha, state: 'success', description: 'No code changes - coverage check skipped', From 351945c39995af3a6eb7d57de1e3ec97bf7ddc2e Mon Sep 17 00:00:00 2001 From: Charlie Truong Date: Mon, 3 Nov 2025 09:48:27 -0600 Subject: [PATCH 2/2] Ensure mr-slim tests run in lightweight mode Signed-off-by: Charlie Truong --- .github/actions/action.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/actions/action.yml b/.github/actions/action.yml index 68a8ad3c70e..8c6ca3a6865 100644 --- a/.github/actions/action.yml +++ b/.github/actions/action.yml @@ -78,7 +78,7 @@ runs: export PYTHONPATH=$(pwd) export NEMORUN_HOME=$(pwd) pip install --no-cache-dir uv - uv sync --only-group test + uv sync --only-group test uv run python tests/test_utils/python_scripts/launch_nemo_run_workload.py \ --scope unit-tests \ --model unit-tests \ @@ -90,7 +90,7 @@ runs: RUN_TEST_EOF ) - echo "$cmd" | tee "job.sh" + echo "$cmd" | tee "job.sh" echo "::endgroup::" - name: Get PR info @@ -133,13 +133,14 @@ runs: else ARGS=( --scope mr-slim + --enable-lightweight-mode ) fi export PYTHONPATH=$(pwd) export NEMORUN_HOME=$(pwd) pip install --no-cache-dir uv - uv sync --only-group test + uv sync --only-group test uv run python tests/test_utils/python_scripts/launch_nemo_run_workload.py \ ${ARGS[@]} \ --model ${{ inputs.model }} \ @@ -151,7 +152,7 @@ runs: RUN_TEST_EOF ) - echo "$cmd" | tee "job.sh" + echo "$cmd" | tee "job.sh" echo "::endgroup::" - name: Set timeout