Skip to content

perf(ci): AUT-2843 split migration tests for whole-file scheduling - #5946

Merged
svcnvidia-nemo-ci merged 1 commit into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:perf/split-migration-tests
Nov 10, 2026
Merged

svcnvidia-nemo-ci merged 1 commit into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:perf/split-migration-tests

Conversation

@svcnemo-autobot

Copy link
Copy Markdown
Contributor

Background

Requester-directed CI tuning; no separate issue needed. Across 17 successful merge-queue runs sampled on November 10, mean workflow-to-gate time was 19m44s including runner gaps, versus an estimated 16m53s execution-only critical path. This excludes queue residence before workflow creation. Core shard 0 was slowest in all 17 runs.

Sample run: the migration file's 136 cases summed to 9m41s. Whole-file ownership and --dist=loadfile keep that work on one worker; more runners alone won't split it.

What changed

Split migration tests into eight focused modules, share their helpers, and regroup their recorded duration weights. Add regression coverage for runner distribution and isolated script instances.

Details

flowchart LR
  A[136 migration cases] --> B[Eight test modules]
  B --> C[Existing four runner shards]
  C --> D[Four loadfile workers per runner]
  D --> E[Unchanged coverage aggregation]
Loading

Preserve all 58 original test functions, parametrization and assertions. Runner counts, launchers, locks and coverage gates are unchanged. No post-change merge-queue speedup is claimed.

Tested

Base: 4176fded1f1f05c9a3917bb915c703d2f2ce5039; head: 524e5d1bd67a7a6e5cd94a37ec54fbc554cbb663.

  • Managed unit:core-unit-tests: 20,176 passed, 106 native skips, 343 subtests passed; all 136 migration cases ran.
  • Managed unit:lint: applicable hooks passed; private Guardwords excluded by policy.
  • AST equivalence and scheduling/isolation regressions passed.
    Runtime-only offline cache and shell-dispatch gaps were repaired outside this diff. Required GitHub CI, including combined coverage, remains pending. Server/sandbox/GPU rows weren't selected locally: no production consumer changed. Model rollout: N/A, test scheduling only.

@copy-pr-bot

copy-pr-bot Bot commented Nov 10, 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 svcnvidia-nemo-ci added area:ci CI workflows, test routing, and repository automation complexity:medium Single-domain change with interacting parts or a moderate review surface labels Nov 10, 2026
@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

/ok to test 524e5d1

@github-actions

Copy link
Copy Markdown
Contributor

@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 reviewed all 11 changed files and compared the moved tests and helpers with the base. The split preserves the existing cases and assertions, gives each module an isolated script instance, and remains compatible with whole-file sharding and the combined coverage gate.

This was a static review. I didn't execute tests or independently verify CI results in this read-only environment.

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.

@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

/review-approve

@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 within this follow-up’s scope.

The latest bot review reported no findings and reviewed the current head, 524e5d1bd67a7a6e5cd94a37ec54fbc554cbb663. The trusted follow-up baseline identifies that same immutable tree, so there are no unresolved findings or subsequent changes to inspect. I didn't repeat the original whole-PR review.

I didn't execute tests or independently verify CI results in this read-only environment.

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

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

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

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

Merged via the queue into NVIDIA-NeMo:main with commit 0a28719 Nov 10, 2026
67 of 70 checks passed
yaoyu-33 added a commit that referenced this pull request Nov 10, 2026
main split tests/unit_tests/tooling/test_add_legacy_agent_environment_servers.py
into per-topic files (#5946). Take main's version of that file and move
this branch's test_deepagents_sandbox_template_composes_with_one_environment
into test_agent_environment_default_configs.py, beside the OpenCode and
OpenClaw session-template tests it sat between.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
yaoyu-33 added a commit that referenced this pull request Nov 10, 2026
main's #5946 split test_add_legacy_agent_environment_servers.py into
several test_agent_environment_*.py files. Take main's version of that
file and move this branch's two OpenHands migration tests into
test_agent_environment_default_configs.py, beside the Claude Code test
they followed before the split.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
weijiac0619 added a commit that referenced this pull request Nov 10, 2026
main moved the switch tests out of
tests/unit_tests/tooling/test_add_legacy_agent_environment_servers.py
(#5946); the relay-recipe routing test now lives in
test_agent_environment_harness_overlays.py. Take main's version of the old
file and carry this branch's change to that test (the OpenCode relay
recipes renamed *_legacy_agent, and the agent name derived from the
harness) into the new file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
weijiac0619 added a commit that referenced this pull request Nov 10, 2026
…sessions

Brings in #5825's merge of main. main moved the relay-recipe routing test
into tests/unit_tests/tooling/test_agent_environment_harness_overlays.py
(#5946); take the old file as main has it and rename the Pi relay
recipes to *_legacy_agent in the moved test, as this branch did before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>

This branch was previously deployed

1 inactive deployment
public — 524e5d1b Deployed Nov 10, 2026 by copy-pr-bot[bot] via release / finalize / notify #11456
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 complexity:medium Single-domain change with interacting parts or a moderate review surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants