Skip to content

fix(ci): auto-sync master uses --no-ff so releases don't break on branch divergence#3255

Merged
drewstone merged 1 commit into
developfrom
fix/auto-sync-no-ff
May 31, 2026
Merged

fix(ci): auto-sync master uses --no-ff so releases don't break on branch divergence#3255
drewstone merged 1 commit into
developfrom
fix/auto-sync-no-ff

Conversation

@tangletools
Copy link
Copy Markdown
Contributor

Problem

The auto-sync-master-with-develop workflow ran git merge --ff-only <develop> onto master. That fails permanently once master diverges from develop — which happens whenever a develop→master promotion lands as a PR (a merge/squash commit on master that isn't on develop). This is exactly what stalled the tangle-cloud v0.0.4 release: the [RELEASE] commit landed on develop, auto-sync failed on --ff-only, and the promotion had to be done by hand (PR #3254).

Fix

Use git merge --no-ff (with a message). It always succeeds, is non-destructive (master keeps its own commits; develop's release commits merge in), and still changes CHANGELOG.md so release-dapps.yml deploys. Future [RELEASE] pushes to develop will auto-sync to master without manual promotion.

Note

Surfaced alongside a second pre-existing infra issue (separate fix, needs a secret rotation): create-dapp-release's secrets.REPO_TOKEN is expired — the release-tag step fails with "Bad credentials." That only tags a GitHub release (the CF Pages deploy is git-integration-driven), but it should be rotated.

YAML-only change (outside the prettier/nx-lint globs); pushed through the pre-push hook.

…ergence

The auto-sync did 'git merge --ff-only <develop>', which fails permanently once
master diverges from develop — and it does whenever a develop->master promotion
lands as a PR (a merge/squash commit on master that isn't on develop). That's
exactly what stalled the tangle-cloud v0.0.4 release (auto-sync failed; the
promotion had to be done by hand). A --no-ff merge always succeeds, is
non-destructive (master keeps its commits, develop's release commits merge in),
and still changes CHANGELOG.md so release-dapps deploys.
@tangletools tangletools requested a review from AtelyPham as a code owner May 31, 2026 00:38
@drewstone drewstone merged commit f6a8934 into develop May 31, 2026
7 of 8 checks passed
@drewstone drewstone deleted the fix/auto-sync-no-ff branch May 31, 2026 00:43
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