Repository navigation
[CLAUDE] Stop cron-tracking the auto-merge sweep and debounce sub-hourly monitors (AFC-626) - #553
Merged
Merged
Conversation
…minute ship monitor (Refs AFC-626)
…e threshold (Refs AFC-626)
This comment has been minimized.
This comment has been minimized.
|
Automatic approval held Kody's assessment:
|
find_cron_schedule_drift also flags UNMONITORED_SCHEDULES names that match no workflow, reported as a stale cron key, so a renamed sweep cannot leave a silent exemption behind. Mirrors the review fix on HogHunter#397 and ContactLogo#349. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
The mapped-or-unmonitored test compares names case-folded, like production. run_reporter stubs the live drift scan unless a workflow set is passed. New tests cover a stale unmonitored name raising the stale-cron-key event, matched case-insensitively. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A name in both CRON_SCHEDULES and UNMONITORED_SCHEDULES never checks in, because resolve_cron_expr() checks the unmonitored list first. find_cron_schedule_drift now returns it too, so it raises the same stale-cron-key drift event. Mirrors the Kody finding on HogHunter#397. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mapped-or-unmonitored test now compares CRON_SCHEDULES keys case-folded on both sides, like resolve_cron_expr(). Adds a test that a name in both maps is reported as drift. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
The overlap check now compares case-folded names on both sides, so a CRON_SCHEDULES key and an UNMONITORED_SCHEDULES name that differ only by case are both returned as drift instead of hiding the unmonitored one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jaywedgeworth22
marked this pull request as ready for review
November 25, 2026 05:54
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
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.
Part of AFC-626.
This mirrors BotFleet PR #2209.
Stops Sentry Crons tracking for the
Auto-merge PRssweep (AFC-626). Removes it fromCRON_SCHEDULESandCHECKIN_MARGIN_OVERRIDES, adds it to newUNMONITORED_SCHEDULES, and makesresolve_cron_expr()skip both requested and completed check-ins quietly with nounmapped-scheduledrift event. Failed sweep runs still emit the normal CI failure error event, which is unverified in production. Adds flap debouncing foriOS TestFlight ship (GitHub-hosted macOS)requiring 3 consecutive failures/misses before opening an issue and 1 success to recover. Adds stdlib-only self-tests inscripts/sentry_ci_report_test.pycovering mapping completeness, skipped sweep check-ins, preserved failure events, unmapped-schedule drift, and monitor thresholds; test execution results were not reported. Open review risks: unmonitored schedules lack a stale-key drift guard, and schedule comparison may be case-sensitive and break case-only renames.Summary
Related to AFC-626. Extends the cron schedule drift guard in
scripts/sentry-ci-report.pyto cover unmonitored and duplicated monitor names.Changes
find_cron_schedule_drift()now checks bothCRON_SCHEDULESandUNMONITORED_SCHEDULESagainst live workflowname:values, case-insensitively. A staleUNMONITORED_SCHEDULESentry is now reported as drift since it exempts nothing while the renamed workflow would raise unmapped-schedule drift.UNMONITORED_SCHEDULESwins and the cron entry would silently never check in.::error::message andstale-cron-keySentry event to report stale or duplicatedCRON_SCHEDULES/UNMONITORED_SCHEDULESnames. Operational impact is config-drift visibility only: stale or duplicated entries now surface as CI errors and Sentry config-drift events instead of being silent.Tests
ConfigDriftTestscovering stale unmonitored entries, case-insensitive matching, both-maps duplication, and the stale-key event path. Updatedrun_reporterhelper and scheduled-workflow mapping test for case-folded comparison. Tests are added inscripts/sentry_ci_report_test.py; no test run results, deployment, or runtime verification are reported here. Automated code review reported no issues in the reviewed changes.