Repository navigation
fix(monitoring): a deploy's journey run no longer pages "a Job or CronJob failed" - #2228
Merged
Merged
Conversation
…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
commented
Oct 15, 2026
lilyshen0722
left a comment
Contributor
Author
There was a problem hiding this comment.
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
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.
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 howDeploy 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