[session 2] docs(platform.ci-cd): back-merge main into develop before cutting a release #46
Reference in New Issue
Block a user
Delete Branch "docs/backmerge-before-release"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Session: 2
Why
A hotfix merged straight to
mainis not indevelop. Nothing warns you the branches have diverged — the bill arrives at the next release, as a conflict on the prod branch.hiveops-remote, 2026-07-20.mainhad 5 commitsdevelophad never seen (OWASP suppressions #17, jackson-bom fix #16, jackson bump #14, cd-main rework #12, sonar-pr removal #15) againstdevelop's 9, including thehiveops-bom1.0.2 → 1.0.8 bumps. Both sides had fixed the same jackson/spring/tomcat CVEs by different routes —mainsuppressed them,developbumped the BOM — sodevelop → mainconflicted inpom.xmlwithmain's hotfixes at risk of being clobbered by an olderdevelopstate.Resolved via back-merge first (hiveops-remote#18, merged);
main-not-in-developis now 0.What
New section in
platform.ci-cd, placed after Branch lifecycle (same family of trap):git rev-list --count origin/develop..origin/mainandgit merge-tree --write-treeexit code — to run before assuming a release is cleandevelopwhere CI validates and nothing is prod-bound, then cut the release)--ours/--theirssilently reverts a shipped hotfixdevelopPR flow lose their issue paperwork.hiveops-agent#62,hiveops-bom#6andhiveops-devices#55/#60all sat open with a shipped fix, noVerify Fixand no milestone.Docs only — one file, 37 lines added, no code or schema changes.
Refs hiveops-remote#18, hiveops-bom#6, hiveops-agent#62.