Repository navigation
Conversation
There was a problem hiding this comment.
Devin Review found 1 potential issue.
2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
| # job can depend on it directly instead of polling the release for assets. | ||
| cdylib: | ||
| needs: resolve-tag | ||
| if: ${{ needs.resolve-tag.outputs.published != 'true' || inputs.dry_run }} |
There was a problem hiding this comment.
🟡 Missing Dart libraries cannot be repaired
When a published version loses a host library, published skips the cdylib upload even on a repair run. Verification reports the missing asset, but rerunning the Dart publisher cannot restore it.
Learn more
The Dart package loads native libraries from release assets at consumer build time. The release upload attaches these assets, and the new verification detects a missing zip or checksum. Once pub.dev lists the package version, this guard skips the only automated path that can replace those assets, even if the publisher workflow is dispatched again. Registry publication and asset completeness need separate recovery gates.
Example: Version 0.15.0 exists on pub.dev, but build-aarch64-apple-darwin.zip is removed from its GitHub release. Verification fails and recommends dispatching the Dart publisher. That dispatch sees the pub.dev version, skips cdylib, and leaves the zip missing.
Recommended fix: Check the required build-*.zip and checksum assets before deciding whether to run cdylib. Continue skipping build-and-publish when pub.dev already contains the version, but allow cdylib to restore absent assets independently.
Was this helpful? React with 👍 or 👎 to provide feedback.
5e06057 to
f841fd7
Compare
f841fd7 to
050ae6e
Compare
A run for a release where one registry failed now repairs it: the UniFFI jobs also run for a complete release, each publish asks its registry and skips a version that is there, and the last job of release.yml asks pub.dev, Maven Central, the Swift repository and the host libraries. ffi-builds.yml checks out the tag of the release before the commit of the run. The crates.io and npm publish jobs each have a concurrency group, so two release runs do not publish at the same time. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
050ae6e to
fd73597
Compare
A release hardening audit of #1682 found four weaknesses that can leave a release incomplete or stuck. One of them already fired for
livekit-ffi0.13.3. That version has its release files and is on npm and pub.dev. Maven Central and the Swift repository never got it. The UniFFI run of 2026-10-28 failed, in a run of its own, and nobody repaired it. This PR is based on #1682 and merges after it.Change
ffi-builds.ymlnow also run for a complete release.uniffi-android.ymlasks Maven Central, anduniffi-dart-publish.ymlasks pub.dev.uniffi-swift.ymlasks the hosting repository for the tag or an open pull request. A version that is there is not built and not published again. Before, a second run failed on the registry that already had the version.release.ymlasks each place that gets thelivekit-ffiversion. Afterverwalter status --checkand npm, it asks pub.dev, Maven Central and the Swift repository. It also checks the 24 host library files on the release. It waits up to 30 minutes for Maven Central. Each error names the workflow that repairs it. A Swift pull request that waits for a merge is a warning.ffi-builds.ymlchecks out the tag of the release. The order is nowinputs.tag_name || inputs.ref. verwalter reports a draft on each run until it is public, so a later release run can finish an older draft. Before, it built its own commit under the older tag.publish-cratesinrelease.ymland the publish job ofnode-builds.ymleach have a concurrency group without cancellation. On npm, the older of two versions can otherwise finish last and takelatest.Failure case
Replay of 0.13.3 with this PR: the release files are complete, and Maven Central and Swift are missing. Start
release.ymlby hand withpackage: livekit-ffiandrefset to the tag. The run finds the release complete and skips the build. The Dart job finds a publishing run that passed. The Android and Swift jobs find nothing in their registries, so they build and publish. The last job then passes, or names what is still missing.A concurrency group holds one running and one waiting job. A third job cancels the one that waits, and that run needs a second start.
Verified
bash -n.Not done yet
!cancelled()and the concurrency groups need a real run.yq. I tested with a stand-in, becauseyqis not on my machine.release.ymlfrom any branch. A dry run skips the UniFFI workflows.download_ffi.pyfails without the tag and the file name.🤖 Generated with Claude Code