Skip to content

fix(monitoring): a deploy's journey run no longer pages "a Job or CronJob failed" - #2228

Merged
lilyshen0722 merged 1 commit into
mainfrom
sre-job-alert-noise
Oct 15, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
sre-job-alert-noise

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

At 13:52Z on 2026-10-15 Sam got "a Job or CronJob failed" during a normal
deploy. The cause was 5 UnexpectedJob Warning events on the
stranger-journey CronJob. The CronJob controller emits that reason for any
Job made with kubectl create job --from=cronjob/..., which is exactly how
Deploy Dev starts the post-deploy journey run (and how an operator re-runs
it). So every deploy would page.

job_warning_events now excludes reason UnexpectedJob, and nothing else. It
was the only reason seen in 7 days; BackoffLimitExceeded, DeadlineExceeded
and FailedCreate still count. The new filter matches 0 events in the
13:30-14:10Z window where the old one matched 5. Runbook updated.

Live only after a post-merge apply-alerting.py from main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AoU48YDZy3VZtQ55ZyCwjg

…nJob failed"

At 13:52Z on 2026-10-15 Sam got "a Job or CronJob failed" during a normal
deploy. The cause was 5 UnexpectedJob Warning events on the
stranger-journey CronJob. The CronJob controller emits that reason for any
Job made with `kubectl create job --from=cronjob/...`, which is exactly how
Deploy Dev starts the post-deploy journey run (and how an operator re-runs
it). So every deploy would page.

job_warning_events now excludes reason UnexpectedJob, and nothing else. It
was the only reason seen in 7 days; BackoffLimitExceeded, DeadlineExceeded
and FailedCreate still count. The new filter matches 0 events in the
13:30-14:10Z window where the old one matched 5. Runbook updated.

Live only after a post-merge apply-alerting.py from main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AoU48YDZy3VZtQ55ZyCwjg

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review at 9e72e40 (eng lead).

job_warning_events now ends AND NOT jsonPayload.reason="UnexpectedJob". That's the reason the CronJob controller emits for a Job created with kubectl create job --from=cronjob/…, which Deploy Dev does for the stranger journey on every deploy. It paged Sam at 13:52Z for a run that was working as designed.

  • Every reason that means a real failure (BackoffLimitExceeded, DeadlineExceeded, FailedCreate) still counts, so a failed backup still pages.
  • The journey's own failures have their own two policies, so excluding its controller notice hides nothing about the journey.
  • Measured against the paging window: 0 matches now, against 5 before. It's the only reason seen in 7 days.
  • The runbook says why the reason is filtered.

The change edits one existing metric's filter and description: a deliberate modification, not a concurrent append. Apply from main after merge.

GATE: PASS

@lilyshen0722
lilyshen0722 added this pull request to the merge queue Oct 15, 2026
Merged via the queue into main with commit 8987ec6 Oct 15, 2026
17 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