Repository navigation
ci: raise an alarm when the pipeline itself breaks - #363
Merged
Merged
Conversation
A failed job in the release or spec-change check used to skip every later job (report update, tables, site, issues) without anyone noticing: the site stayed stale for five months on an expired token, and on 2026-11-23 collect crashed and nothing after it ran. - pipeline_alarm.yml + scripts/ci_alarm.py run-status: the last job of both checks keeps one `ci-broken` issue per workflow open while a job failed or was cancelled. It comments only when the set of failing jobs changes and closes once the failed jobs run again and pass. Outside main it only prints the plan. - ci_health.yml + ci_alarm.py health (weekly): an issue per push token that is expired or expires within 30 days (with the rotation steps), the site behind the report, the release check not running. - publish_site.yml: publish main's report to the site without a test run. - Collect no longer fails on new compatibility failures; it outputs `new_failures`. The spec-change check notifies on it, the PR check fails in its own "new-compatibility-failures" job. A red job now always means a broken pipeline. - Collect reads main's report.json from git instead of uploading and downloading it as an artifact, which raced in run 45167537161. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: tnazarew <tomasz.nazarewicz@getindata.com>
… pipeline alarm Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: tnazarew <tomasz.nazarewicz@getindata.com>
tnazarew
force-pushed
the
ci/pipeline-alarm
branch
from
November 24, 2026 12:19
d74e47d to
23137b7
Compare
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.
Stacked on #352 (uses its
scripts/testssetup andscript-testsjob); retarget tomainonce #352 merges.Why
A failed job in the release check or the spec-change check skips every later job (report update, compatibility tables, site, issues) and nobody is told:
OL_SITE_PUSH_TOKENhad expired andupdate-sitefailed in 8 of 14 runs.FileNotFoundError: ./reports/report.json, and nothing after it ran.What changes
pipeline_alarm.yml,scripts/ci_alarm.py run-status): the last job of both checks (if: always()). While any job of the run failed or was cancelled, it keeps oneci-brokenissue open per workflow, listing the failed jobs.mainonly print the plan to the job summary.ci_health.yml,ci_alarm.py health, Mondays 06:00 UTC plus manual dispatch):publish_site.yml: publishesmain'sreport.jsonto the site without running any tests, e.g. after rotating the site token.new_failuresinstead.new-compatibility-failuresjob.update-repo-files, so the report is updated, as in the release check.main'sreport.jsonfrom git, instead of uploading it as an artifact and downloading it a second later.The scripts only touch issues that carry their hidden marker.
Testing
scripts/tests/test_ci_alarm.py: 26 tests covering create, update without a comment, comment on change, reopen, close, a skipped failed job keeping the issue open, unmarked issues left alone, the token, site and release-check checks, and the CLI dry run.CI token expired/invalid: OL_SITE_PUSH_TOKEN.🤖 Generated with Claude Code