Skip to content

Unblock the current BAML language release - #4215

Merged
rossirpaulo merged 2 commits into
canaryfrom
agent/unblock-current-language-release
Jul 27, 2026
Merged

rossirpaulo merged 2 commits into
canaryfrom
agent/unblock-current-language-release

Conversation

@rossirpaulo

@rossirpaulo rossirpaulo commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • regenerate the root pnpm lockfile for the BEP app's new Mermaid dependency
  • make the C# CancelToken.any consumer assert its asynchronous propagation with a bounded wait instead of a same-tick race
  • supply the public NuGet trusted-publishing username from vars.NUGET_USER instead of the environment secret that repeatedly resolved empty
  • update the release contract assertion for the NuGet variable

Root causes

Current canary CI could not attest a release because typescript/apps/beps/package.json added mermaid without updating pnpm-lock.yaml. Independently, the C# macOS Phase 12 consumer cancelled an input token and immediately sampled the asynchronously linked composite token; macOS repeatedly exposed that scheduling race.

The two latest properly attested releases both reached NuGet with no user input even though the NUGET_USER environment secret existed and had been refreshed. The NuGet profile name is public configuration, so this PR reads the existing boundary-tools-prod environment variable instead. vars.NUGET_USER=boundaryml is configured on that existing environment.

Impact

A green canary CI can once again create the immutable source tag and dispatch the language release. The C# test retains a strict one-second propagation bound, and NuGet OIDC can receive the required profile name without depending on secret delivery.

Validation

  • root corepack pnpm install --frozen-lockfile
  • 19 release-pipeline contract tests
  • exact C# Phase 12 native consumer test on Linux
  • actionlint on publish2-csharp-sdk.yaml
  • YAML parsing
  • git diff --check
  • repository pre-commit hooks

macOS CI remains the decisive proof for the scheduling fix; the subsequent production release remains the decisive proof for NuGet trusted publishing.

Summary by CodeRabbit

  • Bug Fixes

    • Improved test reliability of cancellation checks by allowing a short period for cancellation to propagate before asserting results.
    • Updated NuGet publishing authentication in the release workflow to use the configured workflow variable for the username.
  • Tests

    • Strengthened release pipeline contract validation to ensure the workflow references the revised NuGet authentication configuration.

@vercel

vercel Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
beps Ready Ready Preview, Comment Jul 27, 2026 8:36am
promptfiddle Ready Ready Preview, Comment Jul 27, 2026 8:36am
promptfiddle2 Ready Ready Preview, Comment Jul 27, 2026 8:36am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 27, 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: Pro Plus

Run ID: 9ac971cd-dfed-4c1d-b60a-9f02f37e5870

📥 Commits

Reviewing files that changed from the base of the PR and between ee5b662 and 846224a.

📒 Files selected for processing (1)
  • baml_language/sdk_tests/crates/csharp/phase12_resources/Program.cs
🚧 Files skipped from review as they are similar to previous changes (1)
  • baml_language/sdk_tests/crates/csharp/phase12_resources/Program.cs

📝 Walkthrough

Walkthrough

The NuGet publisher now sources its username from a repository variable, with contract coverage updated accordingly. The C# cancellation test now polls for asynchronous cancellation using a timeout helper.

Changes

Release credential wiring

Layer / File(s) Summary
NuGet username workflow contract
.github/workflows/publish2-csharp-sdk.yaml, scripts/tests/test_release_pipeline_contract.py
The workflow uses vars.NUGET_USER, and the contract test verifies that secrets.NUGET_USER is not referenced.

C# cancellation validation

Layer / File(s) Summary
Eventual cancellation assertion
baml_language/sdk_tests/crates/csharp/phase12_resources/Program.cs
The cancellation test waits up to one second for the combined token to cancel using the new RequireEventuallyAsync polling helper.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Poem

A bunny checks the NuGet gate,
With variables set straight.
Cancellation hops, then waits,
While Stopwatch guards the gates.
Tests now catch the timing tune—
Hip-hop, reliable SDK moon!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the PR's main goal of unblocking the BAML language release.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/unblock-current-language-release

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.

@github-actions

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.

@rossirpaulo
rossirpaulo marked this pull request as ready for review July 27, 2026 08:06
@vercel
vercel Bot temporarily deployed to Preview – beps July 27, 2026 08:06 Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@baml_language/sdk_tests/crates/csharp/phase12_resources/Program.cs`:
- Around line 545-561: Update RequireEventuallyAsync so each loop checks elapsed
time before invoking condition(), preventing polls after timeout. Compute the
remaining timeout and bound Task.Delay to that duration instead of always
waiting 10 ms; after the bounded wait, throw InvalidOperationException only when
the timeout has actually been exceeded.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6e94fef7-9348-4b31-a291-a5e24f50cea1

📥 Commits

Reviewing files that changed from the base of the PR and between 4edb237 and ee5b662.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • .github/workflows/publish2-csharp-sdk.yaml
  • baml_language/sdk_tests/crates/csharp/phase12_resources/Program.cs
  • scripts/tests/test_release_pipeline_contract.py

@vercel
vercel Bot temporarily deployed to Preview – beps July 27, 2026 08:14 Inactive
@vercel
vercel Bot temporarily deployed to Preview – promptfiddle2 July 27, 2026 08:22 Inactive
@github-actions

Copy link
Copy Markdown

Binary size checks passed

✅ 7 passed

Artifact Platform File Gzip Gated on Baseline Delta Status
✅ baml-cli Linux 🔒 27.3 MB 11.6 MB file 27.1 MB +190.2 KB (+0.7%) OK
✅ packed-program Linux 🔒 17.7 MB 7.3 MB file 17.6 MB +38.7 KB (+0.2%) OK
✅ baml-cli macOS 🔒 21.2 MB 10.1 MB file 21.0 MB +182.2 KB (+0.9%) OK
✅ packed-program macOS 🔒 13.8 MB 6.4 MB file 13.8 MB +49.7 KB (+0.4%) OK
✅ baml-cli Windows 🔒 22.8 MB 10.3 MB file 22.7 MB +162.3 KB (+0.7%) OK
✅ packed-program Windows 🔒 14.7 MB 6.5 MB file 14.7 MB +35.1 KB (+0.2%) OK
✅ bridge_wasm WASM 16.5 MB 🔒 4.5 MB gzip 4.5 MB +29.8 KB (+0.7%) OK

🔒 = the size this artifact is GATED on (ceiling + delta). Binaries gate on file size (installed binary); WASM gates on gzip (download size). The other size is shown for information only.


Generated by cargo size-gate · workflow run

@vercel
vercel Bot temporarily deployed to Preview – promptfiddle July 27, 2026 08:36 Inactive
@rossirpaulo
rossirpaulo added this pull request to the merge queue Jul 27, 2026
Merged via the queue into canary with commit 999dcda Jul 27, 2026
73 checks passed
@rossirpaulo
rossirpaulo deleted the agent/unblock-current-language-release branch July 27, 2026 08:43

This branch was previously deployed

3 inactive deployments
Preview – promptfiddle — 846224a4 Deployed Jul 27, 2026 by vercel[bot]
Preview – promptfiddle2 — 846224a4 Deployed Jul 27, 2026 by vercel[bot]
Preview – beps — 846224a4 Deployed Jul 27, 2026 by vercel[bot]
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