Skip to content

ci(release): accept a base_commit on the release candidate - #155

Merged
Troublor merged 2 commits into
mainfrom
troublor/ci/candidate-base-commit
Sep 11, 2026
Merged

Troublor merged 2 commits into
mainfrom
troublor/ci/candidate-base-commit

Conversation

@Troublor

Copy link
Copy Markdown
Collaborator

release-candidate gained a base_commit input in megaeth-labs/.github, for releasing a commit that is not the tip of the default branch. A workflow_dispatch input has to be declared in each workflow before it can be passed, so without this the feature cannot be dispatched here at all.

Two additions, matching the updated workflow-templates/release-candidate.yml:

  • the base_commit dispatch input, optional and blank by default;
  • passing it through to the propose step.

Blank keeps today's behaviour exactly: the candidate PR goes to the default branch and the cut job creates the release branch at the merge commit. Given a commit, propose cuts release-vX.Y.Z at that commit and aims the candidate PR at it, so the default branch is untouched and cut does not run.

gh workflow run release-candidate.yml -R OWNER/REPO --ref DEFAULT \
  -f version=X.Y.Z -f base_commit=$(git rev-parse origin/DEFAULT~4)

The commit must be reachable from the default branch. Note that v* tags are not, because settlement commits the dated changelog on the release branch. Full guide: megaeth-labs/.github/.github/actions/RELEASE.md, section "Releasing a commit that is not the tip".

actionlint clean.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-11T09:00:11.471246Z 9625bd8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

Mutation testing - PASS

Nothing to test: no viable mutants were generated.

release-candidate now takes a base_commit, to release a commit that is
not the tip of the default branch. A workflow_dispatch input must be
declared per workflow before it can be passed, so the feature is not
dispatchable here until this lands.

Blank is today's behaviour unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Mutation testing - PASS

Nothing to test: no viable mutants were generated.

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Performance Benchmark Comparison

Compared 5 benchmark(s) against the latest main baseline.

Detailed Comparison
Benchmark Baseline Throughput (Kelem/s) New Throughput (Kelem/s) Change
update 10000 KVs/1 threads 71.31 78.62 +10.25%
update 10000 KVs/2 threads 135.06 137.86 +2.07%
update 10000 KVs/4 threads 254.01 267.47 +5.30%
update 10000 KVs/8 threads 431.66 454.16 +5.21%
update 10000 KVs/16 threads 576.51 605.50 +5.03%

The header still said the cut job always creates the release branch at
the merge commit. With base_commit, propose creates it at the named
commit and cut does not run at all, so an operator reading only the
header would be misled about which branch the candidate PR touches.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Troublor
Troublor merged commit 8a5535b into main Sep 11, 2026
16 checks passed
@Troublor
Troublor deleted the troublor/ci/candidate-base-commit branch September 11, 2026 09:45
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