Skip to content

fix(relay): reuse canary across completed rollout batches - #20214

Merged
Jinwoo-H merged 1 commit into
mainfrom
relay-fleet-canary-reuse
Sep 12, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
relay-fleet-canary-reuse

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​36 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​35
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3

After a successful same-cap batch advances the admission selector, the next batch rejects the original canary solely because its selector generation is older. Allow a successful canary to authorize later batches within the same exact durable-rehome control generation.

Target/rollback digests, run identity and trusted-code provenance remain exact. Each cell still verifies the exact current selector membership/generation, disabled rehome control, fresh monitor evidence, predecessor runtime and post-rollout health. Reject backwards or malformed selector generations. Intervening rehome enable/disable changes invalidate the canary as before.

Regression proved red before the change; 29 focused wave/census/monitor/aggregate tests pass. Additional regional workflow tests pass. Astra low reviewed the implementation. This changes rollout orchestration only; no relay runtime image change.

@pullfrog

pullfrog Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

This run was cancelled 🛑

The workflow was cancelled before completion. Please check the link below for details.

Pullfrog  | View workflow run | via Pullfrog | 𝕏

@Jinwoo-H
Jinwoo-H merged commit 9f7fd9a into main Sep 12, 2026
25 of 26 checks passed
@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview 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: acb8fc72-1436-433b-bf9e-525e602aa3c0

📥 Commits

Reviewing files that changed from the base of the PR and between 20ab995 and 6972d4c.

📒 Files selected for processing (3)
  • .github/workflows/cloud-deploy-relay-production-same-cap.yml
  • cloud/dev/scripts/relay-production-same-cap-wave.mjs
  • cloud/dev/scripts/relay-production-same-cap-wave.test.mjs

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The workflow input description now states that a successful same-code canary can be reused across batches within the current rehome control generation. verifyCanaryAuthority now accepts later selector generations when generation values are valid and the control epoch and authority fields match. Tests cover forward reuse, invalid generation values, mismatched fields, and batch trust at selector generation 21.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 6972d

The canary reuse change remains bounded by safe forward generation validation and unchanged authority identity checks. No merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the regression, the implementation scope, preserved validation rules, and test results. However, it omits most required template sections, including ELI5, What Changed, Why, a… Complete the required template sections. Add an ELI5 summary, explicit What Changed and Why sections, a valid Linked Issue entry, Visual Proof with N/A and a reason if applicable, detailed Testing steps and checklist status, AI Disclosure i…
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: reusing a canary across completed rollout batches.
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: Description check

Explanation

The description explains the regression, the implementation scope, preserved validation rules, and test results. However, it omits most required template sections, including ELI5, What Changed, Why, a linked issue, Visual Proof or N/A, Testing checkboxes, AI Disclosure, Review, boundary confirmation, Notes, and the Checklist.

Resolution

Complete the required template sections. Add an ELI5 summary, explicit What Changed and Why sections, a valid Linked Issue entry, Visual Proof with N/A and a reason if applicable, detailed Testing steps and checklist status, AI Disclosure if applicable, Review information, Agent skill upstream boundary confirmation, Notes, and the remaining Checklist items.

Full details: Docstring Coverage

Explanation

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

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

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.

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