feat(release): automate the ORB stable-release channel with a standing Release PR - #5063
Merged
Merged
Conversation
…g Release PR The ORB (self-host container image) beta channel has been fully automated since #4160, but promoting to a STABLE orb-vX.Y.Z release stayed a fully manual git tag dance with no scheduled cadence -- the one release surface in this repo not already brought up to release-please parity (MCP/engine here, plus metagraphed's own release-please setup). Adds a release-please-equivalent for ORB, hand-rolled because ORB's image-relevant scoping is cross-cutting (src/** shared with UI/MCP-only subtrees it must exclude) rather than a clean directory component the way packages/gittensory-mcp and packages/gittensory-engine are: - buildOrbStableReleaseReport (orb-release-core.mjs) infers the next stable version from conventional commits since the last stable orb-v tag, reusing the same image-relevant commit filtering the beta channel already uses. - orb-stable-release-pr.yml runs on the same schedule as mcp-release-please.yml (plus workflow_dispatch) and keeps a standing release-orb-stable branch + PR in sync with that proposal -- nothing ships until a maintainer reviews and merges it. - orb-stable-release-tag.yml fires on that PR's merge, tags orb-vX.Y.Z, and dispatches release-selfhost.yml exactly like the beta workflow does, landing on the human-gated `release` environment (not `release-beta`) for a second, independent approval. The daily, fully-unattended beta channel is unchanged.
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5063 +/- ##
=======================================
Coverage 94.13% 94.13%
=======================================
Files 465 465
Lines 39554 39554
Branches 14433 14433
=======================================
Hits 37235 37235
Misses 1664 1664
Partials 655 655
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
orb-beta-release.yml), but promoting to a stableorb-vX.Y.Zrelease stayed a fully manualgit tagdance with no scheduled cadence -- the one release surface in this repo not already brought up to release-please parity (MCP/engine here viamcp-release-please.yml, plus metagraphed's ownrelease-please.yml).src/**shared with UI/MCP-only subtrees it must exclude -- seeorb-release-core.mjs'sIMAGE_RELEVANT_PREFIXES/EXCLUDED_PREFIXES) rather than a clean directory component the waypackages/gittensory-mcpandpackages/gittensory-engineare, so release-please's own path-scoped commit scanning doesn't fit cleanly.buildOrbStableReleaseReport(scripts/orb-release-core.mjs) infers the next stable version from conventional commits since the last stableorb-vtag, reusing the same image-relevant commit filtering the beta channel already uses.orb-stable-release-pr.ymlruns on the same 2-day schedule asmcp-release-please.yml(plusworkflow_dispatch) and keeps a standingrelease-orb-stablebranch + PR in sync with that proposal (bumpsorb-manifest.json, lists the relevant commits) -- nothing ships until a maintainer reviews and merges it, same UX contract as every other package's release automation in this org.orb-stable-release-tag.ymlfires on that PR's merge (a genuine human GitHub-UI action, not a bot-authored push, so none of theGITHUB_TOKENrecursion-prevention caveats the other release workflows document apply here), tagsorb-vX.Y.Z, and dispatchesrelease-selfhost.ymlexactly like the beta workflow does -- landing on the human-gatedreleaseenvironment (notrelease-beta) since the version has no-beta.suffix, so promoting to stable still gets a second, independent reviewer approval beyond the PR merge itself.Maintainer PR (JSONbored) -- no linked issue per the repo's maintainer exception.
Scope
type(scope): short summaryConventional Commit format.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally -- new pure logic (buildOrbStableReleaseReport, exportedinferReleaseType, the newcommitsSinceStablereport field) is 100% covered by new/extended tests intest/unit/orb-release.test.ts;scripts/**is outside Codecov'ssrc/**patch-coverage scope regardless.npm run test:workers(vianpm run test:ci)npm run build:mcp(vianpm run test:ci)npm run test:mcp-pack(vianpm run test:ci)npm run ui:openapi:check(vianpm run test:ci) -- no API/schema changes.npm run ui:lint(vianpm run test:ci)npm run ui:typecheck(vianpm run test:ci)npm run ui:build(vianpm run test:ci)npm audit --audit-level=moderate-- 0 vulnerabilities.test/unit/orb-release.test.tsadditions (patch/minor/major inference, no-commits/UI-only-excluded not-due paths, zero-stable-tags baseline, omitted-commitsSinceStabledefault).Safety
UI Evidencesection. (N/A -- no UI changes.)Notes
UI Evidencesection is included.orb-stable-release-prrun (or an on-demandworkflow_dispatch) will open the initialrelease-orb-stablePR proposingorb-v0.4.0from the currentorb-v0.3.0baseline.