Repository navigation
fix(sync): alert on backfill dispatch aborts - #15459
Merged
Merged
Conversation
Cold-start instance starvation on backend-sync-backfill was only visible as unstructured Cloud Run abort lines. Add a logging metric and monitoring policy on the existing budget-alert provision path. Failure-Class: new
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed and why
backend-sync-backfill cold-start dispatch aborts (
The request was aborted because there was no available instance) were unstructured log lines with no metric or alert. Add a Cloud Logging metricsync_backfill_dispatch_abortand a monitoring policy on the existing budget-alert provision path (prod ALERT_CHANNELS). Queue rate limits are unchanged.Evidence (2026-09-21 06:33–07:05Z)
/tmp/backfill-warn.txton backend-sync-backfill (2026-09-21 06:33–07:05Z)/tmp/rev-start.txtat revision start 06:33:25–06:33:35ZProduct invariants affected
none
How it was verified
Focused file:
tests/unit/test_sync_two_lane.py(test_deploy_contract_routes_both_backfill_budget_alerts).Tests
Contract assertion that
.github/actions/sync-backfill-lifecycle/action.ymlprovisionssync_backfill_dispatch_abortwith the no-available-instance filter, alongside the existing 70/90 budget alerts.Failure class (fixes)
Failure-Class: new
Failure-class transition narrative (only when needed)
Violated contract: a Cloud Run dispatch abort on backend-sync-backfill must be alertable, not only a log line. Canonical guard: logging metric + monitoring policy in the existing lifecycle action, using ALERT_CHANNELS when budget alerts are provisioned. This PR adds
.github/failure-classes/FC-sync-backfill-dispatch-abort-unobserved.json.