Skip to content

fix(sync): alert on backfill dispatch aborts - #15459

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/sync-backfill-dispatch-abort-alert
Sep 22, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/sync-backfill-dispatch-abort-alert

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

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 metric sync_backfill_dispatch_abort and 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)

  • 30 WARNING lines in /tmp/backfill-warn.txt on backend-sync-backfill (2026-09-21 06:33–07:05Z)
  • 7 ERROR lines in /tmp/rev-start.txt at revision start 06:33:25–06:33:35Z

Product invariants affected

none

How it was verified

BACKEND_UNIT_TEST_FILE_LIST=/tmp/omi-pr2-tests.txt bash backend/test.sh

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.yml provisions sync_backfill_dispatch_abort with 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.

Review in cubic

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
@Git-on-my-level
Git-on-my-level merged commit fc94c1e into main Sep 22, 2026
64 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/sync-backfill-dispatch-abort-alert branch September 22, 2026 01:08
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