Skip to content

fix(ci): AUT-2317 install telemetry extra in full test suite to restore coverage - #3398

Merged
kajalj22 merged 2 commits into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:fix/full-suite-telemetry-coverage
Sep 15, 2026
Merged

kajalj22 merged 2 commits into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:fix/full-suite-telemetry-coverage

Conversation

@svcnemo-autobot

Copy link
Copy Markdown
Contributor

Background

The scheduled Full test suite on main began failing its coverage gate: Total coverage: 94.83% < fail_under = 95.0 (run 34890370042 on 84fbd3d, every run since 2026-09-14). The gate's precision fix (#3373) exposed that coverage had silently dropped below 95%.

What changed

The full-test-suite job installs deps with uv sync --extra dev --extra sandbox --extra openshell, omitting the telemetry extra. The tests under tests/unit_tests/telemetry/ are gated on nemo-lens (requires_lens), which only the telemetry extra installs, so they all skipped and the telemetry modules (setup.py, endpoints.py, metrics.py, contrib.py, _fallbacks.py) counted as uncovered, dragging the total below the gate. This adds --extra telemetry to that install so the tests run and coverage includes telemetry, mirroring scripts/ci/core_unit_tests.sh (which syncs the same extra). PR CI was unaffected because unit-tests.yml runs core_unit_tests.sh.

Details

flowchart LR
  A[full-test-suite.yml] -->|uv sync dev/sandbox/openshell| B[nemo-lens MISSING]
  B --> C[telemetry tests SKIP]
  C --> D[telemetry modules uncovered]
  D --> E[coverage 94.83% < 95%]
  F[core_unit_tests.sh] -->|uv sync dev/telemetry| G[nemo-lens present]
Loading

Left = the broken scheduled path fixed here; right = the PR path that already worked. A regression test test_full_test_suite_installs_telemetry_extra_for_coverage_gate fails if the extra is dropped again.

Tested

  • 2 files, +22/-1: the workflow install line (+comment) and the new guard test.
  • Root cause confirmed from the failing run log (telemetry tests SKIPPED, coverage 94.83%) and by diffing full-test-suite.yml against core_unit_tests.sh/unit-tests.yml.
  • The managed nemo-gym unit suite runs against this head once its CI image build completes; PR CI validates the full gate.

…ge gate

The full-test-suite workflow installed dependencies with
'uv sync --extra dev --extra sandbox --extra openshell', omitting the
telemetry extra. The tests under tests/unit_tests/telemetry are gated on
nemo-lens (requires_lens), which only the telemetry extra installs, so they
all skipped and the telemetry modules (setup.py, endpoints.py, metrics.py,
contrib.py, _fallbacks.py) counted as uncovered. That dropped total coverage
to 94.83% and failed the 95% fail_under gate.

Install the telemetry extra so the lens-gated tests run and the coverage gate
is measured with telemetry coverage included, mirroring
scripts/ci/core_unit_tests.sh. Add a regression test asserting the workflow
keeps the telemetry extra in its install step.

Fixes the main full-test-suite coverage failure (run 34890370042, 94.83% < 95%).

Signed-off-by: svcnemo-autobot <[email protected]>
@svcnemo-autobot
svcnemo-autobot requested a review from a team as a code owner September 15, 2026 08:59
@copy-pr-bot

copy-pr-bot Bot commented Sep 15, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Copy link
Copy Markdown
Contributor Author

Re: commit-approval finding on .github/workflows/full-test-suite.yml line 74 (adding --extra telemetry).

This change introduces no new dependency input, so there is no unbound dependency set to establish safety for. It only installs the telemetry optional-dependency extra that is already declared and immutably locked in this repo:

  • pyproject.toml:497 pins the source: nemo-lens = { git = "https://github.com/NVIDIA-NeMo/Lens.git", rev = "b85578fc2b736a1804705e537001b5f45e9c715d" }
  • uv.lock:2825 locks it as nemo-lens 0.2.0+b85578f with source = { git = "...?rev=b85578fc2b736a1804705e537001b5f45e9c715d#b85578fc..." } — an immutable commit binding.
  • That commit is the upstream tag v0.2.0 (Apache-2.0: NVIDIA-NeMo/Lens/blob/main/LICENSE). Megatron-LM pins the same commit.

uv sync --extra telemetry resolves exactly these locked artifacts — it cannot float to a different nemo-lens. Moreover, this is the same extra scripts/ci/core_unit_tests.sh installs (uv sync --extra dev --extra telemetry) and runs on every PR today; the full-test-suite job was the only coverage-gated path missing it, which is precisely why the telemetry tests skipped and coverage dropped below the gate. This PR aligns the scheduled suite with the already-approved PR path.

Diff scope confirms no dependency change: 2 files, +22/-1 — the workflow install line and a regression test; pyproject.toml/uv.lock untouched. The OCI build of this head also passed gitleaks, devskim, bandit, and llm-review.

If the reviewer wants a different pin or source for nemo-lens, that's a pre-existing repo decision (unchanged here) and out of scope for restoring the coverage gate — happy to open a separate issue.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:ci CI workflows, test routing, and repository automation complexity:low Localized change in one scope with a small, straightforward review surface labels Sep 15, 2026
@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

/ok to test 1965ff4

pre-commit's formatter joins the assert message continuation onto one line.
No behavior change; unblocks the Lint check.

Signed-off-by: svcnemo-autobot <[email protected]>
@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

/ok to test 08b544a

@yaoyu-33 yaoyu-33 added ci CI, automation, test queue, or workflow infrastructure work needs-review PR is ready for code review and waiting on a reviewer labels Sep 15, 2026
@kajalj22
kajalj22 added this pull request to the merge queue Sep 15, 2026
Merged via the queue into NVIDIA-NeMo:main with commit 8d624df Sep 15, 2026
39 checks passed

This branch was previously deployed

1 inactive deployment
public — 08b544a8 Deployed Sep 15, 2026 by copy-pr-bot[bot] via release / finalize / notify #2975
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI workflows, test routing, and repository automation ci CI, automation, test queue, or workflow infrastructure work complexity:low Localized change in one scope with a small, straightforward review surface needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants