Skip to content

[CI] Make a failing release dry run block the merge #252

Closed

Description

@saworbit

What happens

A pull request that touches .github/workflows/release.yml runs the release dry run (release.yml, on: pull_request with paths: ['.github/workflows/release.yml']). Branch protection requires only Build and test, which is the ci-ok job in ci.yml. Its needs are [lint, test, msrv, docs, audit, dependency-review, typos, workflows], so the dry run isn't part of it.

So a PR that breaks the release build still gets a green Build and test, and with auto-merge on it merges. The break shows up on the next tag. #241 and #242 both change release.yml, and the last issue soak left them open for this reason.

Where

  • .github/workflows/ci.yml, the ci-ok job (around line 227)
  • .github/workflows/release.yml, the pull_request trigger and its build jobs
  • branch protection on main (required check Build and test)

Proposed fix

Making the dry run a required check of its own doesn't work: PRs that don't touch release.yml never report it, so they'd wait on it forever.

Instead, bring it under the gate. Either:

  • add a release-dry-run job to ci.yml that calls the release build (as a reusable workflow, or the same steps) only when the PR changes release.yml, and add it to ci-ok's needs, with ci-ok treating skipped as a pass, as it already must for conditional jobs; or
  • have ci-ok look up the release workflow's run for the same head SHA when release.yml changed, and fail if it failed.

The first keeps everything in one workflow and is easier to read.

Acceptance

  • A PR that breaks a build step in release.yml gets a red Build and test.
  • A PR that doesn't touch release.yml isn't slowed down or blocked by it.
  • docs/CI_CD_STRATEGY.md says which checks gate a release change.

Activity

  1. saworbit commented on Nov 16, 2026

    @saworbit
    OwnerAuthor

    Fix is in 437ca98 on #257, auto-merge on. ci.yml runs the release builds (now release-build.yml) when a PR changes release.yml, release-build.yml or the Dockerfile, and ci-ok needs that job, so a broken release build turns Build and test red. Other PRs skip it. CHANGELOG and docs/CI_CD_STRATEGY.md updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions