Repository navigation
fix(ci): fall back to g6e.4xlarge when AWS has no g6.4xlarge capacity - #1906
Merged
zhenshanx-nv merged 1 commit intoOct 30, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Community GPU CI has seen 30+ failures in two weeks from Brev catalog searches returning empty or duplicated results for the standard g6.4xlarge type. The existing preflight retries (NVIDIA#1895) give up if capacity never returns. Retry once against g6e.4xlarge, the same type already used by the manual GPU_PROFILE=large qualification lane, after the primary type's retries are exhausted on a capacity-shaped failure. A deterministic rejection (bad disk, wrong provider, credentials) is never retried. Signed-off-by: Zhenshan Xie <zhenshanx@nvidia.com>
zhenshanx-nv
force-pushed
the
ci/gpu-type-fallback
branch
from
October 29, 2026 23:50
58d7a7e to
2e71f67
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Per the 2026-10-29 team discussion on Community GPU CI reliability: 30+ failures in the last two weeks were "no available L40" catalog errors -- Brev's catalog search for the standard
g6.4xlarge(AWS L4) qualification type comes back empty or duplicated. #1895 already retries that search (PREFLIGHT_ATTEMPTS = 4, up to ~6 minutes), but gives up if the type never regains capacity. This PR adds one same-provider fallback:g6e.4xlarge, which is not a new/unverified SKU -- it's already the manualGPU_PROFILE: largequalification type used today (workflow_dispatchonly).Exit Criteria
g6e.4xlargebefore giving up.--prepare-only/--from-intentallocation flow stays consistent: whichever type the prepare phase actually selects is the type the reserve phase requests.Implementation
tools/brev_exec.py:INSTANCE_TYPE_FALLBACKS = {"aws": {DEFAULT_INSTANCE_TYPE: "g6e.4xlarge"}}. New_select_instance_with_fallback()wraps the existing_select_instance/_preflightcall; onPreflightUnavailable/InventoryErrorit retries once against the fallback type withhost_ram_gib=None(matching how the existing manual large-profile lane already bypasses the single-GPU host-RAM check).provision()now reassignsinstance_typeto whichever type won and persists it aslease["sku"]..github/workflows/community-ci.yml: thepreparestep reads back the lease's resolvedskuviajqafter--prepare-onlyand setsqualification_type=g6e.4xlargewhen a fallback occurred, reusing the existingreserve-step case logic that already handles that exact type.tools/tests/test_community_gpu_ci.py: 3 new tests -- fallback succeeds after persistent primary-type outage, fallback is not attempted for a non-AWS provider, and a deterministic disk-mismatch rejection is never retried.Validation
Commands and Results
python -m pytest tools/tests/test_community_gpu_ci.py tools/tests/test_community_ci.py tools/tests/test_community_gpu_lease.py: 1248 passed, 1 skipped.ruff check/ruff format --checkon the changed Python files: clean.git diff --check: clean.Hardware, Environment, and Revisions
Base
ci/developerata4405a42. Python 3.12, CPU only, no GPU used.Not Run / Remaining Gaps
test_architecture.py,test_public_source_hygiene.pyshow unrelated failures in this environment (git grep: failed to create thread: Resource temporarily unavailable) -- confirmed present on the unmodified branch too via a baseline run, so not caused by this change.Contributor Self-Review
Change categories
Risk level
Risk rationale: the fallback only fires after the primary type's existing retries are exhausted on a capacity-shaped error, reuses an already-validated instance type, and never retries a deterministic rejection.