Skip to content

ci: qualify Dev GPU resource lifecycle - #1595

Merged
yifeif-nv merged 1 commit into
NVIDIA:ci/developerfrom
yifeif-nv:ci/dev-brev-lifecycle
Oct 6, 2026
Merged

yifeif-nv merged 1 commit into
NVIDIA:ci/developerfrom
yifeif-nv:ci/dev-brev-lifecycle

Conversation

@yifeif-nv

@yifeif-nv yifeif-nv commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Background

Dev GPU CI rejects usable AWS instances when cloud-init records an empty-script error, and Nebius bootstrap can exhaust Docker's start limit before project code runs. The 60-second deletion check also ends before normal asynchronous deletion completes.

Exit Criteria

  • Return a usable GPU instance only after metadata, SSH, Docker, GPU-container and disk checks pass.
  • Execute the model coordinator once and preserve its result across SSH reconnects.
  • Confirm instance removal, including the independent cancellation cleanup path.
  • Qualify the merged Dev revision against three frozen PR snapshots using AWS and Nebius.

Implementation

  • Select AWS g6.4xlarge by default, or the qualified Nebius L40S 16-vCPU/64-GB type for manual qualification, with a 500-GiB disk and 200-GiB free-space check. Each reservation creates one instance.
  • Treat cloud-init status as diagnostic evidence. Allow one Nebius recovery only when the known bootstrap signature matches; restore the temporary systemd override before admission.
  • Persist the allocation lease before creation. Both cleanup paths wait up to 15 minutes for confirmed absence and fail on unknown ownership or deletion state.
  • Run the coordinator as a detached, locked task. Poll its persisted exit code and log through Brev-managed SSH configuration without rerunning model failures.
  • Preserve CPU gates, frozen source selection, checkpoint-token isolation and existing model test criteria.

Validation

  • python3 -m pytest -q tools/tests/test_community_gpu_ci.py tools/tests/test_community_ci.py tools/tests/test_architecture.py::test_shared_python_and_native_trees_are_closed_minimal_sets: 304 passed, 1 optional Docker integration test skipped.
  • Ruff, Actionlint and git diff --check: passed.
  • Source architecture, family-impact, workflow, public-hygiene and metadata contract suite: 323 passed on the final implementation.
  • The local prototype completed all eight selected Community E2E cases on four fresh instances: AWS L40S, AWS L4 and two Nebius L40S instances. All were deleted with inventory confirmation.
  • The merged Dev SHA 46f8b81de22b40d5cea86a31faf3bda637f34ecf then passed three complete GitHub runner/API-key executions on distinct PR branch snapshots. Dev CPU gates ran normally before allocation:
    • PR #1413, AWS L4: BERT 1/1 selected E2E case passed; workflow success.
    • PR #1565, AWS L4: five families, 8/8 selected E2E cases passed; workflow success.
    • PR #1420, Nebius L40S: five families, 8/8 selected E2E cases passed after the recorded bootstrap recovery; workflow success.
  • Across those runs, 17 selected E2E executions passed with zero selected failures/skips. Each run created one VM; all three final leases record confirmed deletion, independently checked again by the cleanup job. AWS readiness took about 7 minutes, and recovered Nebius about 4 minutes 47 seconds. Confirmed deletion took about 7.6-8.7 minutes.

Notes For Future Readers

This PR targets ci/developer only. The qualification reuses each unchanged PR head's CPU-qualified immutable Stable merge; Dev CPU gates execute again. It covers the small Community suite, not larger Nightly models. Nebius recovery addresses a specific bootstrap restart sequence; it is not a general Docker restart policy. Missing lease evidence or temporary inventory errors must never be interpreted as confirmed deletion.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/TensorRT-Model-Connect/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 94be13f3-f4a1-4e57-b02f-e7adbc012873

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@yifeif-nv
yifeif-nv merged commit 46f8b81 into NVIDIA:ci/developer Oct 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant