You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(relay): move Asia cell c35 to the general same-cap lists after promotion - #27761
Once c35 is promoted to a regular Asia relay cell, the tooling that updates cells one at a time must also treat it as a regular cell. If it doesn't, rolling c35 back would quietly turn it back into a standby cell. This is the same change #25758 made for c34. Merge it after c35's promotion succeeds and before any same-cap wave names c35 again.
What Changed
relay-production-same-cap-wave.mjs: moves c35 out of SAME_CAP_MIGRATION_ONLY_CELLS and into the general part of SAME_CAP_CELLS. The migration-only list is now just c17 and c18. This also removes the old "C35 stays migration-only until a reviewed change promotes it" comment, which is out of date now that feat(relay): promotion path for Asia spare cell c35 #27733 merged the promotion path. For c35, entryAdmission becomes general and the selector delta becomes 2. c35 stays off the fast drain-pace list, because that list is for US cells only.
relay-same-cap-shadow-gate-verdict.mjs: adds c35 to FLEET_POOL_CELL_IDS. Its database connection pool is 16, the same as the other Asia cells.
The tests, the C35 paragraph in cloud/docs/relay-workflows.md, and the c35 comment in production.tfvars are updated to match. The tfvars edit is a comment only, so the Terraform plan does not change.
Before: a same-cap job on c35 puts it into migration-only and must take it back out of migration-only. On a promoted c35, a rollback would isolate it and return it as migration-only, which demotes a live cell. After: a same-cap job rolls c35 as a general cell, and a rollback returns it as general.
Why
A same-cap job reads a cell's class from this fixed list, not from the live selector. So the list has to match the selector whenever a job names c35. Before promotion, c35 had to roll as migration-only so it could reach the director's image, which promotion requires. After promotion, it has to roll as general. This file-for-file mirror of #25758 keeps the c35 change as easy to review as the c34 one was.
New or updated assertions check that c35 is general with delta 2, that c35 is refused in the same wave as c17, that c35 is in the fleet pool, and that c17 and c18 are the only cells that are not rehome sources. The Asia list in the default-drain-pace test now includes c35, so the test still proves c35 is kept off the fast pace.
Full node --test dev/scripts/*.test.mjs: 974 pass, 2 fail. The two failures (relay-deploy-workflow-argv, relay-load-control-peer) also fail on clean origin/main and are unrelated.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
relay-production-same-cap-wave.mjs is trusted evidence code. Merging it invalidates any sealed monitor, and any same-cap canary sealed before the merge. Merge after c35's promotion is green, outside a monitor-to-enable window, and before the next same-cap canary seals. #25758 needed no provenance pin or generated-artifact update, and neither does this PR. Do not merge without Jinwoo's go.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
📝 Walkthrough
Walkthrough
C35 moves from the same-cap migration-only list to the general-cell list and joins the fleet-pool cell list. Tests cover its same-cap classification, selector-wave behavior, batch restrictions, pacing, canary admission, and fleet-pool checks. The workflow documentation and production comment now describe C35 as a general cell.
Priority: ⬇️ Low
Merge Risk:🟡 Moderate · up to 9be1e
Confirm C35’s promotion succeeded and the required canary window is clear before merging. Otherwise, a rollback could treat an unpromoted cell as general; the repository cannot confirm the live status.
Pre-merge checks | 5
✅ Passed checks (5 passed)
Check name
Status
Explanation
Title check
The title clearly and concisely states that Asia cell c35 moves to the general same-cap lists after promotion.
Description check
The description is complete and aligned with the template. It explains the change, rationale, testing, operational constraints, documentation updates, and checklist status. The maintainer-specific Lin…
Docstring Coverage
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 6 files. (2 skipped: 2 …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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.
ELI5
Once c35 is promoted to a regular Asia relay cell, the tooling that updates cells one at a time must also treat it as a regular cell. If it doesn't, rolling c35 back would quietly turn it back into a standby cell. This is the same change #25758 made for c34. Merge it after c35's promotion succeeds and before any same-cap wave names c35 again.
What Changed
relay-production-same-cap-wave.mjs: moves c35 out ofSAME_CAP_MIGRATION_ONLY_CELLSand into the general part ofSAME_CAP_CELLS. The migration-only list is now just c17 and c18. This also removes the old "C35 stays migration-only until a reviewed change promotes it" comment, which is out of date now that feat(relay): promotion path for Asia spare cell c35 #27733 merged the promotion path. For c35,entryAdmissionbecomesgeneraland the selector delta becomes 2. c35 stays off the fast drain-pace list, because that list is for US cells only.relay-same-cap-shadow-gate-verdict.mjs: adds c35 toFLEET_POOL_CELL_IDS. Its database connection pool is 16, the same as the other Asia cells.cloud/docs/relay-workflows.md, and the c35 comment inproduction.tfvarsare updated to match. The tfvars edit is a comment only, so the Terraform plan does not change.Before: a same-cap job on c35 puts it into migration-only and must take it back out of migration-only. On a promoted c35, a
rollbackwould isolate it and return it as migration-only, which demotes a live cell.After: a same-cap job rolls c35 as a general cell, and a rollback returns it as general.
Why
A same-cap job reads a cell's class from this fixed list, not from the live selector. So the list has to match the selector whenever a job names c35. Before promotion, c35 had to roll as migration-only so it could reach the director's image, which promotion requires. After promotion, it has to roll as general. This file-for-file mirror of #25758 keeps the c35 change as easy to review as the c34 one was.
Linked Issue
N/A (maintainer follow-up to #25758 and #27733)
Visual Proof
N/A. This changes ops tooling only and has no UI.
Testing
cd cloud && node --teston everydev/scriptstest matching same-cap, shadow-gate, capacity-canary, evidence-code, relay-public-workflow-contract or asia. This covers all four test files chore(relay): move Asia cell c34 to the general same-cap lists after promotion #25758 touched. Result: 243 pass, 0 fail.New or updated assertions check that c35 is general with delta 2, that c35 is refused in the same wave as c17, that c35 is in the fleet pool, and that c17 and c18 are the only cells that are not rehome sources. The Asia list in the default-drain-pace test now includes c35, so the test still proves c35 is kept off the fast pace.
Full
node --test dev/scripts/*.test.mjs: 974 pass, 2 fail. The two failures (relay-deploy-workflow-argv,relay-load-control-peer) also fail on cleanorigin/mainand are unrelated.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Agent skill upstream boundary
Notes
relay-production-same-cap-wave.mjsis trusted evidence code. Merging it invalidates any sealed monitor, and any same-cap canary sealed before the merge. Merge after c35's promotion is green, outside a monitor-to-enable window, and before the next same-cap canary seals. #25758 needed no provenance pin or generated-artifact update, and neither does this PR. Do not merge without Jinwoo's go.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)