Skip to content

ci: AUT-2725 parallelize core tests across four isolated jobs - #5498

Merged
svcnvidia-nemo-ci merged 3 commits into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:ci/four-core-test-shards
Nov 3, 2026
Merged

svcnvidia-nemo-ci merged 3 commits into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:ci/four-core-test-shards

Conversation

@svcnemo-autobot

@svcnemo-autobot svcnemo-autobot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Background

Core tests took 33m50s in run 41587144451. This implements the requested four-way parallel split.

What changed

  • Balance whole test files across four independent jobs using recorded timing estimates.
  • Run sandbox tests once; combine all five coverage inputs before enforcing the existing 95% gate.
  • Preserve the required Test check, server routing and eight server shards.
  • Report measured Git-tracked sources, excluding temporary dependency helpers and synthetic code. Missing tracked sources still fail.
  • Baseline the public provenance SHA as a secrets-scanner false positive.

Details

flowchart LR
  A[Four core shards] --> C[Combined coverage >=95%]
  B[Sandbox tests] --> C
  A --> D[Required Test check]
  B --> D
  C --> D
  E[Required changed-server tests] --> D
Loading

The portable launcher remains unsharded without arguments. Regressions cover disjoint selection, missing inputs, real coverage producers across checkout roots, threshold enforcement and fail-closed aggregation. No dependency changes; model rollouts are N/A.

Tested

  • 170 targeted contract tests passed; formatting and secrets hook passed locally.
  • Previous-head run 41632994968: all four core jobs passed in 11m07s–12m14s including setup; sandbox and eight server shards passed. This is not a matched speedup benchmark.
  • Repaired combine/report passed on that run's five artifacts: 95.47%. Fresh exact-head CI remains pending.
  • Managed lint passed previously; private guardwords catalog was unavailable. Local full-core validation was terminated at 64%, cause unknown, so it is incomplete.
  • Separate nonblocking kilocode conformance reported unavailable; no unrelated harness changes.

@svcnemo-autobot
svcnemo-autobot requested a review from a team as a code owner November 3, 2026 12:05
@copy-pr-bot

copy-pr-bot Bot commented Nov 3, 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.

@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

/ok to test bccd86d

@nemo-automation-bot
nemo-automation-bot Bot requested review from a team November 3, 2026 12:07
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the ci CI, automation, test queue, or workflow infrastructure work label Nov 3, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:ci CI workflows, test routing, and repository automation needs-review PR is ready for code review and waiting on a reviewer labels Nov 3, 2026

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP

No confirmed correctness defects found. One non-blocking NOTE suggests strengthening the cross-checkout coverage regression.

I inspected all 11 changed files and traced the affected workflow routing, portable launcher, pytest selection, and coverage consumers. This was a static review; I couldn't execute tests or verify live GitHub artifact transport.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

checkout.mkdir()
(checkout / "target.py").write_text((tmp_path / "target.py").read_text())
monkeypatch.chdir(checkout)
data = CoverageData(basename=str(inputs / name))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE — Suggestion: test production of checkout-independent coverage data. This regression creates separate checkout directories, but writes target.py directly into every coverage database and supplies its own coverage configuration. Removing relative_files from the production configuration would leave this test unchanged. It protects combination of already-relative inputs, not the producer behavior that makes artifacts portable.

Could you supplement test_combine_enforces_the_configured_gate_across_checkout_roots with actual collection of a one-line target.py in two separate checkout roots, using the production relative_files and source settings? The invariant is that both producers record the same relative source identity before combination. Keep the existing missing-input tests and the current 50%-fails/100%-passes gate assertions.

Proposed acceptance checks, not executed here: each collected database should identify the module as target.py, and combination should contain that source once. Disabling production relative_files should fail the portability assertion. The precise collection harness needs verification against the installed coverage version; this is a test-design suggestion, not an executed patch.

@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

/ok to test 69d4277

@ko3n1g

ko3n1g commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/review-approve reset=true

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP

LGTM — no concerns found.

I inspected all 12 changed files and traced workflow routing, required-check aggregation, whole-file sharding, the portable launcher, and coverage consumers. The prior portability-test NOTE is addressed by the real-producer regression using production coverage settings.

This was a static review; I couldn't execute tests or verify live GitHub artifact transport. The delegated coverage report wasn't available, so I completed that inspection directly.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@svcnvidia-nemo-ci
svcnvidia-nemo-ci added this pull request to the merge queue Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41642570416

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 3, 2026
@svcnvidia-nemo-ci
svcnvidia-nemo-ci added this pull request to the merge queue Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41645963606

Merged via the queue into NVIDIA-NeMo:main with commit d359e6b Nov 3, 2026
62 of 65 checks passed

This branch was previously deployed

1 inactive deployment
public — 69d4277c Deployed Nov 3, 2026 by copy-pr-bot[bot] via release / finalize / notify #9537
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 needs-review PR is ready for code review and waiting on a reviewer Run CICD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants