Skip to content

fix(cloud): tolerate sparse director errors in rollout monitor - #20238

Merged
Jinwoo-H merged 1 commit into
mainfrom
fix/relay-monitor-director-error-budget
Sep 12, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
fix/relay-monitor-director-error-budget

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{+}}}$​20 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6

The production serving-cell upgrade repeatedly stopped before changing any cells because its monitor required zero unexpected director errors. The observed baseline was three HTTP 500s in an hour (about 33,600 responses), caused by two-second PostgreSQL connection timeouts.

Allow up to three non-503 director 5xx responses per rolling five-minute window; four freezes the rollout. Auth remains zero-tolerance, and freshness, probes, SQL/pool pressure, latency, capacity, and migration gates are unchanged. This bounded allowance does not resolve the underlying intermittent timeouts and can permit persistent low-frequency errors below the limit. No runtime deployment is needed for this monitor-source change.

Validation: regression demonstrated red before the change; relay-ops suite 96 tests passed across 12 files; relay-ops typecheck passed. Boundary coverage verifies 1–3 allowed, 4 blocked, and auth/CPU gates still block. Astra low independently reviewed the threshold approach. Fresh strict monitor evidence is required before the fleet rollout resumes.

@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 | 𝕏

@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: 87c55b91-b7a4-46ee-8de9-e065d0702f64

📥 Commits

Reviewing files that changed from the base of the PR and between 341b13c and a250830.

📒 Files selected for processing (3)
  • cloud/apps/relay-ops/src/incident-monitor.test.ts
  • cloud/apps/relay-ops/src/incident-monitor.ts
  • cloud/docs/relay-incident-monitor.md

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


📝 Walkthrough

Walkthrough

The incident monitor now allows up to three director.errors events per five-minute window. Four events still freeze the run. The auth.errors and cloud_sql.cpu gates remain unchanged. Tests cover the new allowance and the unchanged freeze conditions. Documentation separates director and auth thresholds and records the allowance.

Priority: ⬇️ Low

Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to a2508

The rollout monitor change is covered by matching implementation, documentation, and regression tests with no unresolved merge-blocking risk.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change, motivation, scope, risks, and validation, but it omits required template sections and information, including the linked issue, explicit ELI5, Visual Proof with `N/… Use the repository template headings. Add the issue reference after Fixes #, add an explicit ELI5 section, mark Visual Proof as N/A with a reason, complete the Testing checkboxes, and complete or explicitly mark the remaining applicable…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: allowing sparse director errors in the rollout monitor.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 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.
Full details: Description check

Explanation

The description explains the change, motivation, scope, risks, and validation, but it omits required template sections and information, including the linked issue, explicit ELI5, Visual Proof with N/A and a reason, checklist status, and review or AI disclosure details.

Resolution

Use the repository template headings. Add the issue reference after Fixes #, add an explicit ELI5 section, mark Visual Proof as N/A with a reason, complete the Testing checkboxes, and complete or explicitly mark the remaining applicable sections and checklist items.

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

@Jinwoo-H
Jinwoo-H merged commit 1a9a5f9 into main Sep 12, 2026
25 of 26 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