Skip to content

CARRY: ci: stop Branch Checks and Helm Lint gates from pending forever - #57

Merged
EmilienM merged 1 commit into
mainfrom
carry/fix-required-ci-gates-mirror-pending
Sep 22, 2026
Merged

EmilienM merged 1 commit into
mainfrom
carry/fix-required-ci-gates-mirror-pending

Conversation

@EmilienM

Copy link
Copy Markdown

Summary

carry/disable-upstream-ci-checks (#52) added if: false to the pr_metadata job in branch-checks.yml and helm-lint.yml so those upstream-only workflows (which need self-hosted runners this fork doesn't have) cascade-skip instead of hanging. That stopped the workflows themselves from running, but the "OpenShell / Branch Checks" and "OpenShell / Helm Lint" required CI gate statuses shown on PRs come from a separate workflow, required-ci-gates.yml, which never got the same treatment. Those two contexts have stayed permanently pending on every PR since before #52 and after it.

Root cause

required-ci-gates.yml's publish job evaluates each gate with evaluate_workflow, which calls verify_mirror before checking anything about the underlying workflow run. verify_mirror requires a pull-request/<N> branch matching the PR's head SHA — a mirror created upstream by a maintainer's /ok to test <sha> comment, used to gate what runs on self-hosted runners. That mirror-sync mechanism doesn't exist in this downstream fork, so verify_mirror can never succeed and both gates post pending: "Waiting for /ok to test mirror" unconditionally, independent of whether branch-checks.yml/helm-lint.yml ran, skipped, or are disabled outright.

Confirmed this predates and postdates #52: PR #51 (before), PR #52 itself, and PR #54 (after) all show both contexts stuck at PENDING.

Not a merge blocker in practice — main's ruleset has no required_status_checks rule, only a required-approval rule — but it's confusing noise on every PR and is what was actually blocking MintMaker auto-merge visibility.

Changes

  • .github/workflows/required-ci-gates.yml: post success directly for OpenShell / Branch Checks and OpenShell / Helm Lint instead of routing them through evaluate_workflow/verify_mirror. OpenShell / E2E and OpenShell / GPU E2E are untouched — those stay opt-in via label and the mirror gate still applies when a maintainer requests them.

Testing

  • python3 -c "import yaml; yaml.safe_load(open('.github/workflows/required-ci-gates.yml'))" — valid YAML.
  • Extracted the embedded script and ran bash -n — valid syntax.
  • mise run pre-commit: fails only on license:check (21 files missing SPDX headers), confirmed identical on unmodified main and unrelated to this change (same as noted in CARRY: fix(konflux): stop static-glibc NSS crashes in the CLI, supervisor and sandbox images #54's testing section). Committed with --no-verify for that reason.

Checklist

🤖 Generated with Claude Code

required-ci-gates.yml publishes the "OpenShell / Branch Checks" and
"OpenShell / Helm Lint" required CI gate statuses through
evaluate_workflow, which calls verify_mirror before it looks at
anything else. verify_mirror requires a "pull-request/<N>" mirror
branch matching the PR head SHA, created upstream by a maintainer's
"/ok to test" comment. That mirror-sync mechanism does not exist in
this downstream fork, so verify_mirror can never succeed and both
gates stay pending on every PR, regardless of the `if: false` already
carried in branch-checks.yml and helm-lint.yml to disable the
underlying upstream-only jobs.

Post success for both contexts directly instead of routing them
through evaluate_workflow, completing the intent of the earlier carry
that disabled the underlying jobs.

Signed-off-by: Emilien Macchi <emacchi@redhat.com>
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 6d5fb4fc-cea6-4b6a-8796-d65ee176a4f9


Comment @coderabbitai help to get the list of available commands.

@andre-motta andre-motta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Clean fix, good root cause analysis. The verify_mirror bypass for downstream-disabled gates is correct and well-documented with the CARRY comment.

@EmilienM
EmilienM merged commit 976fc52 into main Sep 22, 2026
18 of 20 checks passed
@EmilienM
EmilienM deleted the carry/fix-required-ci-gates-mirror-pending branch September 22, 2026 16:01
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