Skip to content

engine: fix crates.io release from tag checkouts - #4670

Merged
sxlijin merged 2 commits into
canaryfrom
sxlijin/fix-crates-release-detached-head
Sep 1, 2026
Merged

engine: fix crates.io release from tag checkouts#4670
sxlijin merged 2 commits into
canaryfrom
sxlijin/fix-crates-release-detached-head

Conversation

@sxlijin

@sxlijin sxlijin commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • allow cargo-release to run from the detached HEAD created by tag-triggered actions/checkout
  • retain the one-off 0.226.2 workflow because its single authorized run stopped before publishing and the registry gap remains

Evidence

The canonical 0.226.2 crates job failed before publishing with cannot release from branch HEAD. cargo-release 1.1.5 exposes --allow-branch, and an exact detached-HEAD dry run confirmed --allow-branch HEAD selects all four Rust SDK crates.

The one-off recovery run is preserved at https://github.com/BoundaryML/baml/actions/runs/33477729574. Its provenance and absence checks passed, but its non-publishing verification plan stopped because the runner did not have protoc; the credentialed publish step never ran and all four 0.226.2 crate URLs remain 404. No retry was submitted.

Validation

  • actionlint .github/workflows/release.yml .github/workflows/publish-crates-0.226.2.yml
  • git diff --check
  • cargo-release 1.1.5 detached-HEAD dry run with --allow-branch HEAD

@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
beps Ready Ready Preview Sep 1, 2026 6:48am UTC
developer-docs Error Error Sep 1, 2026 6:48am UTC
promptfiddle2 Ready Ready Preview Sep 1, 2026 6:48am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 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-01T06:35:51.122703Z 2d022a9 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.

@vercel
vercel Bot temporarily deployed to Preview – developer-docs September 1, 2026 06:34 Inactive
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

⏭️ Performance benchmarks were skipped

Perf benchmarks (CodSpeed) are opt-in on pull requests — they no longer run on every push. They always run automatically after merge to canary/main.

To run them on this PR, do any of the following, then push a commit (or re-run CI):

  • Add RUN_CODSPEED=1 to the PR description, or
  • Include run-perf or /perf in the PR title or any commit message.

@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 64774fee-a210-4cef-9ae8-987ca7252756

📥 Commits

Reviewing files that changed from the base of the PR and between e4cb45d and 2d022a9.

📒 Files selected for processing (2)
  • .github/workflows/publish-crates-0.226.2.yml
  • .github/workflows/release.yml
💤 Files with no reviewable changes (1)
  • .github/workflows/publish-crates-0.226.2.yml

Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review.


Important

Approval pending

CodeRabbit has no unresolved comments, but it has not reviewed the latest commit.

Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The release workflow now permits cargo-release to run from detached HEAD. The one-off 0.226.2 publishing workflow was removed.

Changes

Release workflow updates

Layer / File(s) Summary
Allow detached HEAD releases
.github/workflows/release.yml
The cargo-release invocation now includes --allow-branch HEAD.
Remove one-off publishing workflow
.github/workflows/publish-crates-0.226.2.yml
The tag-triggered workflow and its crate publication checks were removed.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: 🔵 Low · up to 2d022

This change restores tag-triggered publication of the four Rust SDK crates while retaining the existing release gates. Because repository tag protection and release-environment authorization are not confirmed here, owners should verify that only trusted release actors can trigger matching tags; the PR is otherwise mergeable with that follow-up.

Poem

A rabbit checks the release trail
Detached HEADs now pass the gate
Crates hop through the workflow
Old one-off scripts fade away
Carrots await the clean deploy

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: fixing crates.io releases from tag-triggered detached HEAD checkouts.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch sxlijin/fix-crates-release-detached-head

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@vercel
vercel Bot temporarily deployed to Preview – beps September 1, 2026 06:35 Inactive

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2d022a9d58

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/publish-crates-0.226.2.yml
@sxlijin sxlijin changed the title ci: fix crates.io release from tag checkouts engine: fix crates.io release from tag checkouts Sep 1, 2026
@sxlijin
sxlijin added this pull request to the merge queue Sep 1, 2026
@sxlijin
sxlijin removed this pull request from the merge queue due to a manual request Sep 1, 2026
@vercel
vercel Bot temporarily deployed to Preview – developer-docs September 1, 2026 06:39 Inactive
@vercel
vercel Bot temporarily deployed to Preview – beps September 1, 2026 06:40 Inactive
@sxlijin

sxlijin commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

No files to review.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@sxlijin
sxlijin added this pull request to the merge queue Sep 1, 2026
Merged via the queue into canary with commit f5a40cc Sep 1, 2026
39 of 41 checks passed
@sxlijin
sxlijin deleted the sxlijin/fix-crates-release-detached-head branch September 1, 2026 06:45
@vercel
vercel Bot temporarily deployed to Preview – promptfiddle2 September 1, 2026 06:48 Inactive
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