Skip to content

feat(relay): declare Asia spare cell c35 as migration-only - #27695

Merged
Jinwoo-H merged 2 commits into
mainfrom
relay-asia-c35-declare
Oct 12, 2026
Merged

Jinwoo-H merged 2 commits into
mainfrom
relay-asia-c35-declare

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​89 $\color{#cf222e}{\Huge{\mathbf{−}}}$​27 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​62
Prod 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​46 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​34

ELI5

Adds a seventh relay server in Hong Kong (asia-east2), called c35, so Asia users get more nearby capacity. In this PR it only exists as a spare. It can't be given ordinary traffic until a follow-up PR adds its promotion step, which is exactly how c34 was added.

What Changed

This mirrors #25336 (the c34 spare), adding only cell IDs, waves, case entries, budgets and docs:

  • production.tfvars:
    • c35 at c34's shape (e2-standard-4, cap 3000, 6000 request units, pool 16) in asia-east2-a, pinned to image F (sha256:41cba995…), initially_enabled = false;
    • c35 added to relay_region_rehome_source_cell_ids.
  • Asia admission script: c35 in allCells and a registration wave of its own. No promotion wave, so promote is refused.
  • Topology input and plan validator: c35 zone and wave. The topology workflow accepts production:production-gce-c35.
  • Same-cap: c35 is in the migration-only list, and the job's Asia shape case gains c35.
  • Rehome trust probe: the regex gains c35 ("seven asia-east2 cells").
  • Tests:
    • c35 is accepted where c34 is;
    • c36 replaces c35 as the "unknown cell" example;
    • new c35 registration, topology and plan tests;
    • updated Cloud SQL budget numbers.
  • Docs: relay-workflows.md and the Terraform README.

Before: production has six Asia cells (c27–c31, c34). After merge nothing changes live. The cell is created only when the reviewed topology workflow runs for c35, then it registers as migration-only.

Why

Jinwoo approved a seventh Asia cell. Following the c34 precedent keeps every safety check (topology validator, admission waves, same-cap shape, connection budget) in force, without new logic. Promotion stays a separate reviewed change, the same as #25757.

Cloud SQL budget: the pool of 16 brings the production operating maximum to 487 of the 490 usable connections, leaving 3. That is within budget, but tight.

Linked Issue

N/A (maintainer; approved production rollout of image F)

Visual Proof

N/A. Infra and ops scripts only.

Testing

  • Every cloud/dev/scripts/*.test.mjs passes, except two that fail only in this local tree because a module is missing (tweetnacl). They also fail on main locally; CI covers them.

  • terraform fmt -check passes on production.tfvars.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

Review

An independent review is requested before merge.

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

Production config. Nothing applies until the topology workflow runs.

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)

Adds a seventh asia-east2 cell at the C34 shape (cap 3000, 6000 request
units, pool 16, e2-standard-4) in asia-east2-a, pinned to image F. It gets
its own topology and registration wave but no promotion wave, so the
admission script and workflow refuse to promote it; it stays a
migration-only spare and out of the fleet pool list. Mirrors #25336.
@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: 530cd568-084f-465f-b422-ba5f7eeee8a5

📥 Commits

Reviewing files that changed from the base of the PR and between ee34f72 and a8e9b6f.


📒 Files selected for processing (19)
  • .github/workflows/cloud-deploy-relay-asia-topology.yml
  • .github/workflows/cloud-deploy-relay-production-same-cap-job.yml
  • cloud/dev/scripts/operate-relay-asia-admission.mjs
  • cloud/dev/scripts/operate-relay-asia-admission.test.mjs
  • cloud/dev/scripts/prepare-relay-asia-topology-input.mjs
  • cloud/dev/scripts/prepare-relay-asia-topology-input.test.mjs
  • cloud/dev/scripts/prepare-relay-production-capacity-canary.test.mjs
  • cloud/dev/scripts/probe-relay-rehome-trust.mjs
  • cloud/dev/scripts/probe-relay-rehome-trust.test.mjs
  • cloud/dev/scripts/relay-asia-topology-workflow.test.mjs
  • cloud/dev/scripts/relay-cloud-sql-connection-budget.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/validate-relay-asia-topology-plan.mjs
  • cloud/dev/scripts/validate-relay-asia-topology-plan.test.mjs
  • cloud/docs/relay-workflows.md
  • cloud/infra/terraform/README.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; 8 remain after this review.



📝 Walkthrough

Walkthrough

Production configuration adds initially disabled cell C35 in asia-east2-a, with a separate topology wave and a database pool maximum of 16. Topology workflows and validation accept C35 as a standalone target. Admission rules allow C35 registration as migration-only, but do not add a promotion or recovery wave. The connection-budget expectations include a seventh Asia-east2 pool.


Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to a8e9b

C35 remains unavailable for ordinary placement until promotion. No concrete issue in the reviewed changes warrants holding this PR.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 14 files. (5 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly identifies the primary change: declaring Asia relay spare cell c35 as migration-only.
Description check Passed The description follows the repository template and explains the change, rationale, linked-issue exception, testing status, scope, and checklist. It also documents the two local test failures and CI c…
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.

Full details: Docstring Coverage

Explanation

Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 14 files. (5 skipped: 5 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 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 a4da555 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