Skip to content

👷 fix(ci): drop doomed changelog:verify from preflight - #139

Merged
konih merged 1 commit into
mainfrom
fix+preflight-drop-changelog-verify
Jul 30, 2026
Merged

konih merged 1 commit into
mainfrom
fix+preflight-drop-changelog-verify

Conversation

@konih

@konih konih commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Problem

The Preflight badge is permanently red. Root cause is structural, not a transient failure:

  1. git-cliff embeds each [Unreleased] entry's commit SHA (hack/release/cliff.toml). Rebase-merges reassign SHAs, so task changelog:verify always drifts on the merge commit (and on PRs) — every recent preflight run, on both push and pull_request, fails at exactly this step.
  2. The self-healing changelog-sync workflow regenerates CHANGELOG.md after the merge, but its commit only touches CHANGELOG.md — which is in preflight's own paths-ignore — so the healed commit can never re-trigger preflight to clear the red.

Net: preflight is guaranteed red after every user-facing merge, and the badge freezes on the pre-sync failure.

Fix

Remove the Verify CHANGELOG.md is up to date step from preflight. CHANGELOG.md correctness is already owned by the changelog-sync workflow; the task changelog:verify task remains available for local use. Also corrects a now-stale comment in changelog-sync.yaml.

The remaining preflight steps (markdown lint, go mod tidy, go.sum verify, generated-artifacts verify) all pass on the current tip. Pushing this change (preflight.yaml is not paths-ignored) triggers a fresh preflight run that greens the badge.

Alternatives considered

  • Drop [skip ci] from changelog-sync — red herring; paths-ignore already blocks the healed commit from re-triggering preflight.
  • Stop embedding SHAs in cliff.toml — the true root cause, but a deliberate format choice the whole self-heal loop is built around; out of scope.

git-cliff embeds each [Unreleased] commit SHA, so rebase-merges reassign
SHAs and changelog:verify ALWAYS drifts on the merge commit and on PRs.
The healed changelog-sync commit is paths-ignored, so preflight could
never re-run to clear the failure — the badge was permanently red.
CHANGELOG.md correctness is owned by the changelog-sync workflow; the
task remains available locally.
@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

Copy link
Copy Markdown

@konih
konih merged commit 33ac595 into main Jul 30, 2026
29 checks passed
@konih
konih deleted the fix+preflight-drop-changelog-verify branch July 30, 2026 15:04
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