Skip to content

ci: keep the ci-broken issue open for parts stuck without a result - #365

Draft
tnazarew wants to merge 1 commit into
mainfrom
ci/escalate-stuck-parts
Draft

tnazarew wants to merge 1 commit into
mainfrom
ci/escalate-stuck-parts

Conversation

@tnazarew

Copy link
Copy Markdown
Collaborator

Why

The release check retries a part (component × component version × OpenLineage version) that produced no result on every scheduled run (pending_runs.json, #354). Nothing raised it when a part kept failing: the ci-broken issue (#363) only tracks failed jobs, and a part can stay without a report while its jobs pass (for example, validation is skipped because the producer job didn't run).

What changes

  • scripts/ci_alarm.py run-status --pending FILE [--escalate-after 3]:
    • the issue lists every part without a result, with the runs in a row and the run it started in;
    • a part at 3 runs in a row is stuck: one comment when it gets there, the issue stays open (or opens) even when every job passed, and it closes only once the part has a result again;
    • comments now also say which jobs stopped failing when a stuck part keeps the issue open.
  • pipeline_alarm.yml: new input pending-artifact. It downloads this run's updated-pending-runs artifact, and falls back to the committed pending_runs.json with a warning when collect didn't run.
  • main_new_release.yml passes pending-artifact: updated-pending-runs. The spec-change check passes nothing and is unchanged.

Example body (dry run with a fixture: every job green, one part at 3 runs):

Every job of Release check passed in its latest run (…/runs/103), but some parts have had no result for 3 runs in a row or more. …

Part Runs in a row without a result Since
hive_dataproc 3.1.3 × OL 1.55.0 1 run
spark_dataproc 3.5.1 × OL 1.55.0 3 run

Closed automatically once no part has gone 3 runs without a result.

Tests

scripts/tests/test_ci_alarm.py +9: a part at 2 is listed without a comment; with green jobs, a part at 2 opens nothing; reaching 3 adds one comment, and staying at 4 adds none; a stuck part keeps the issue open when the jobs pass, or opens one; a part with a result is removed and the issue closes; a stuck part recovering while a job still fails gets a comment; consumer parts are labelled without versions; the CLI reads --pending and --escalate-after. 194 tests pass. actionlint reports no new findings.

🤖 Generated with Claude Code

The release check retries parts without a result on every run
(pending_runs.json), but nothing told anyone when a part kept failing:
the ci-broken issue only tracked failed jobs, and a part can stay
without a report while its jobs pass (e.g. validation skipped because
the producer job didn't run).

The release check's alarm now reads this run's updated pending list
(the committed one if collect didn't run):
- the issue lists every part without a result (runs in a row, since),
- a part at 3 runs in a row is stuck: it gets one comment, keeps the
  issue open (or opens one) even when every job passed, and the issue
  closes only once it has a result again.

The spec-change check passes no pending list and is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: tnazarew <tomasz.nazarewicz@getindata.com>
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