Skip to content

chore(relay): move Asia cell c35 to the general same-cap lists after promotion - #27761

Merged
Jinwoo-H merged 1 commit into
mainfrom
relay-c35-same-cap-general
Oct 12, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
relay-c35-same-cap-general

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24 $\color{#cf222e}{\Huge{\mathbf{−}}}$​13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19 $\color{#cf222e}{\Huge{\mathbf{−}}}$​6

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 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.

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 --test on every dev/scripts test 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 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)

@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: df8d4a3e-3870-4a14-8790-c79c723920d7

📥 Commits

Reviewing files that changed from the base of the PR and between 983532a and 9be1ed6.


📒 Files selected for processing (8)
  • cloud/dev/scripts/prepare-relay-production-capacity-canary.test.mjs
  • cloud/dev/scripts/relay-production-same-cap-wave.mjs
  • cloud/dev/scripts/relay-production-same-cap-wave.test.mjs
  • cloud/dev/scripts/relay-same-cap-script-census.test.mjs
  • cloud/dev/scripts/relay-same-cap-shadow-gate-verdict.mjs
  • cloud/dev/scripts/relay-same-cap-shadow-gate.test.mjs
  • cloud/docs/relay-workflows.md
  • cloud/infra/terraform/environments/production.tfvars

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 | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely states that Asia cell c35 moves to the general same-cap lists after promotion.
Description check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

❤️ Share

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

@Jinwoo-H
Jinwoo-H merged commit 2365eea into main Oct 12, 2026
23 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