Skip to content

Fix/prepare rc self ci check - #3762

Merged
Fokko merged 3 commits into
apache:masterfrom
RussellSpitzer:fix/prepare-rc-self-ci-check
Sep 3, 2026
Merged

Fokko merged 3 commits into
apache:masterfrom
RussellSpitzer:fix/prepare-rc-self-ci-check

Conversation

@RussellSpitzer

Copy link
Copy Markdown
Member

What changes are included in this PR?

The "Prepare Release" job now ignores github actions on a commit that are related to the release. Previously we would check that no actions were running (to make sure CI had finished) but by running the release job we started a new action on that commit. To fix this we just ignore all jobs that start with release-*.

Are these changes tested?

New Bats tests checking this situation

Are there any user-facing changes?

No

RussellSpitzer and others added 3 commits September 3, 2026 11:13
check_github_checks_passed queried the check-runs API and counted the currently-executing "Prepare Release Candidate" job as an incomplete check, so the step always failed with dry_run=false. Switch to the workflow-runs API and filter out any workflow whose path starts with .github/workflows/release-, so this run's self-reference and any historical release-process attempts on the same commit are ignored while real code CI (ci-hadoop3, vector-plugins, ci-release-scripts) is still enforced.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Rewrites the "still running" and "failed conclusion" tests around the
workflow-runs mock shape, and adds three tests covering the release-*.yml
filter: in-progress self-reference is ignored, historical failed release
runs on the same commit are ignored, and real CI failures are still
detected when release workflows are mixed in.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Drop the two separate "ignores release-*.yml" tests and keep one test
that exercises both the filter and the failure detection: a release
workflow in-progress alongside a failed CI workflow.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

@Fokko Fokko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The LLM approves 👍 Thanks @RussellSpitzer

@Fokko
Fokko merged commit 8000e23 into apache:master Sep 3, 2026
6 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.

2 participants