Skip to content

fix(ci): unblock release pipeline on push to main#264

Merged
polaz merged 1 commit intomainfrom
fix/#263-ci-release-pipeline
Feb 2, 2026
Merged

fix(ci): unblock release pipeline on push to main#264
polaz merged 1 commit intomainfrom
fix/#263-ci-release-pipeline

Conversation

@polaz
Copy link
Copy Markdown
Member

@polaz polaz commented Feb 2, 2026

Summary

  • Add !cancelled() to docker-build job if condition to prevent cascading skip when PR-only gate job is skipped on push events
  • Add explicit needs.quality-checks.result == 'success' check for safety
  • Release pipeline was blocked since v6.50.0 due to regression in 54c6358

Root Cause

The docker-build job depends on a PR-only gate job via needs. On push to main, the gate is skipped, and GitHub Actions default behavior skips all dependent jobs without evaluating their if conditions. This cascaded to skip semantic-release, preventing all releases after v6.50.0.

Test plan

  • CI passes on this PR (docker-build should NOT be skipped)
  • After merge, verify semantic-release runs and publishes pending versions

Fixes #263

- Add !cancelled() to docker-build job if-condition to prevent
  cascading skip when PR-only gate job is not applicable
- Add explicit quality-checks result validation
- Release pipeline was blocked since v6.50.0 (54c6358)

Fixes #263
Copilot AI review requested due to automatic review settings February 2, 2026 04:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a critical regression in the release pipeline that has prevented any releases since v6.50.0. The issue was caused by GitHub Actions' default behavior of skipping dependent jobs when any needs dependency is skipped, which cascaded from the PR-only review-thread-gate job to docker-build and ultimately semantic-release.

Changes:

  • Added !cancelled() to the docker-build job's if condition to prevent cascading skips when review-thread-gate is skipped on push events
  • Added explicit needs.quality-checks.result == 'success' check for additional safety
  • Added clarifying comments explaining why !cancelled() is necessary

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@polaz polaz merged commit 59b8cbe into main Feb 2, 2026
23 checks passed
@polaz polaz deleted the fix/#263-ci-release-pipeline branch February 2, 2026 04:15
polaz added a commit that referenced this pull request Feb 2, 2026
- Make gate job always run instead of skipping on non-PR events
- Add early exit for non-PR events with allow_heavy=true output
- Simplify docker-build condition to check gate output only
- Revert !cancelled() approach from #264 (insufficient fix)

Fixes #265
polaz added a commit that referenced this pull request Feb 2, 2026
* fix(ci): prevent transitive skip propagation in release pipeline

- Make gate job always run instead of skipping on non-PR events
- Add early exit for non-PR events with allow_heavy=true output
- Simplify docker-build condition to check gate output only
- Revert !cancelled() approach from #264 (insufficient fix)

Fixes #265

* fix(ci): move gate check into docker-build, remove standalone gate job

- Delete separate gate job that broke needs chain on push to main
- Add gate step as first step of docker-build (runs on pull requests only)
- docker-build now depends only on quality-checks
- Simplify summary job status reporting

Fixes #265

* fix(ci): fail-closed on incomplete pagination, rename quality-checks job

- Fail with exit 1 on inconsistent pagination (empty page or missing
  cursor with hasNextPage=true) instead of silently breaking the loop
- Rename quality-checks display name to "Quality Checks" to avoid
  collision with legacy "Lint, Test & Build" expected-status job

* fix(ci): fix off-by-one in pagination guard, remove unused output

- Only fail on MAX_PAGES when hasNextPage is still true (avoids
  false positive when scan completes exactly on the last page)
- Remove unused image-built output from docker-build job
- Add comment explaining intentional fail-on-unresolved design

* fix(ci): add timeout-minutes to docker-build job

- Set 30-minute timeout for docker-build (multi-arch build ~8min +
  margin for cache misses and gate check)

* fix(ci): document always() behavior on summary job

- Add comment explaining why needs lists all jobs (output access)
  and why always() guarantees execution despite skipped dependencies
sw-release-bot bot pushed a commit that referenced this pull request Feb 2, 2026
## [6.51.0](v6.50.0...v6.51.0) (2026-02-02)

### Features

* **docs:** consent banner + vue-privacy 1.2.2 with gtag fix ([#255](#255)) ([75eb54b](75eb54b))

### Bug Fixes

* **ci:** prevent transitive skip propagation in release pipeline ([#266](#266)) ([f809a7a](f809a7a)), closes [#264](#264) [#265](#265) [#265](#265)
* **ci:** replace heredoc with quoted strings in thread-gate job ([#246](#246)) ([9470b50](9470b50)), closes [#243](#243) [#245](#245)
* **ci:** unblock release pipeline on push to main ([#264](#264)) ([59b8cbe](59b8cbe)), closes [#263](#263)
* **deps:** update hono from 4.11.5 to 4.11.7 ([#248](#248)) ([71cc831](71cc831)), closes [#247](#247)
* **docs:** resolve SEO issues in VitePress documentation ([#249](#249)) ([#250](#250)) ([3e05717](3e05717))
* **docs:** use canonical URL for TOOLS reference in README ([#252](#252)) ([5ac56cc](5ac56cc)), closes [#251](#251)
* **pipelines:** serialize array query params as key[] for GitLab Rails API ([#262](#262)) ([955a3c1](955a3c1)), closes [#261](#261)
@sw-release-bot
Copy link
Copy Markdown

sw-release-bot bot commented Feb 2, 2026

🎉 This PR is included in version 6.51.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release pipeline broken since v6.50.0: review-thread-gate skips cascade to semantic-release

2 participants