Skip to content

feat(release): support independent release source branches - #680

Merged
yyjeqhc merged 2 commits into
mainfrom
feat/release-source-ref
Sep 25, 2026
Merged

yyjeqhc merged 2 commits into
mainfrom
feat/release-source-ref

Conversation

@yyjeqhc

@yyjeqhc yyjeqhc commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Summary

Decouple WebCodex release stabilization from the moving main branch while preserving exact-source release safety.

  • support main or exactly release/v<VERSION> as the pre-tag release source ref
  • run ordinary exact-source push CI on release/** branches
  • bind readiness to the exact source ref, source SHA, and successful source-branch CI run/attempt
  • persist source_ref in readiness/release-plan durable state with backward-compatible migration for older state files
  • after readiness creates the immutable annotated tag, make that tag the source authority for release-build; current main or the release branch may advance without invalidating build/collection/publication
  • keep bundle collection bound to exact workflow run + source SHA rather than a mutable branch name
  • update preflight, doctor, guarded tag reclaim, operator CLI, static contracts, tests, and release documentation
  • document the normal release/v<VERSION> flow and the hotfix-from-previous-tag flow, including forward-porting product fixes back to main

This removes the need to temporarily revert unrelated post-release feature PRs just to publish a focused hotfix.

Safety properties retained

  • selected source branch must exactly equal the requested source SHA before readiness
  • readiness still proves one exact successful push CI run/attempt for that branch/SHA
  • release tag must remain an annotated immutable tag resolving to the readiness-approved SHA
  • final build is dispatched from that exact tag and remains bound to exact source/tag/request identity
  • same-run bundle, npm staging, draft digest verification, and publication boundaries are unchanged

Validation

No Rust/Cargo compilation was run for this workflow-only change.

  • python3 -m unittest discover -s scripts/tests -p 'test_release*.py' — 57 passed
  • release Python tooling self-tests — 270 passed
  • actionlint on CI/readiness/build/post-release workflows — passed
  • bash scripts/release_check.sh --static-only — passed
  • Markdown local links — 654 checked, 0 missing
  • npm existing-binary release smoke — passed
  • git diff --check origin/main...HEAD — passed

Repository setting follow-up

Before relying on release/** as a protected stabilization line, add a GitHub ruleset for release/** with the desired PR/status-check/non-force-push protections. This PR changes the repository-side release contract only; it does not mutate repository settings.

@yyjeqhc
yyjeqhc merged commit 49b328f into main Sep 25, 2026
18 checks passed
@yyjeqhc
yyjeqhc deleted the feat/release-source-ref branch September 25, 2026 14:18
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