Skip to content

ci(root): block release when rel/latest is ahead of master#9153

Open
rashadjnizar wants to merge 1 commit into
masterfrom
HSM-436-block-release-when-rel-ahead
Open

ci(root): block release when rel/latest is ahead of master#9153
rashadjnizar wants to merge 1 commit into
masterfrom
HSM-436-block-release-when-rel-ahead

Conversation

@rashadjnizar

Copy link
Copy Markdown
Contributor

HSM-436

Summary

Back merges from rel/latest into master (e.g. #9127) are missed frequently. When that PR is skipped, rel/latest stays ahead of master, and the next release merges/publishes on top of an out of sync rel/latest.

This PR adds a verify-back-merge gate to npmjs-release.yml that fails the release if rel/latest is not an ancestor of master, forcing the previous back merge to land before a new release can run.

What changed

  • New verify-back-merge job runs git merge-base --is-ancestor origin/rel/latest origin/master. Exit 0 → release proceeds; otherwise it errors, prints the offending commits, and fails.
  • release-bitgojs now needs the gate and adds && needs.verify-back-merge.result != 'failure' to its if.

Behavior

Scenario Gate Release
Normal release, back-merge landed success runs
Normal release, back-merge missing failure blocked
Recovery mode (rel/latest intentionally ahead) skipped runs

@rashadjnizar rashadjnizar requested review from a team as code owners June 30, 2026 23:13
@linear-code

linear-code Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

HSM-436

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