Repository navigation
ci(release): build both binaries per target and verify in parallel - #2387
Conversation
build-binaries ran one job per (binary, target), so each of the five shared targets compiled the iroh/alloy dependency graph twice from cold. It now runs one job per target that builds decdn-node and decdn-cli in one target/ with two separate invocations (one invocation would unify features across both packages). Archive names, contents and the eleven-archive count are unchanged. The release job's fmt/clippy/nextest and publish dry-run (~14 min) ran before any binary build could start. The job is split: `tag` (semver, signature, version match) gates everything; `verify` runs alongside build-binaries and still creates the draft last. upload-assets and docker need verify, so nothing is uploaded or pushed for an unverified release. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
The tag-only release workflow cannot be exercised by PR CI, leaving artifact and publishing behavior dependent on the next release run.
0 open findings
What changed in this PR
Refactors the release workflow to reduce build time while preserving release artifacts.
Changes:
- Builds both binaries per target in shared jobs.
- Runs verification and binary builds in parallel.
- Updates release documentation to reflect the new job order.
| File | Description |
|---|---|
.github/workflows/release.yml |
Splits tag/verification jobs and consolidates the build matrix. |
RELEASING.md |
Documents parallel verification and target-based builds. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Review follow-ups: - build-binaries gets a "Check archives" step, so a leg missing one of its archives, or with an empty or malformed `builds` entry, fails on its own instead of surfacing later as an archive-count mismatch in upload-assets. - ci.yml's rust-cache env comment names the `verify` job. - Comments state what holds: the run's workflow artifacts exist before verification, nothing reaches the release or registry until it passes, `needs: verify` also orders the draft upload, the tag job's full fetch keeps the annotated tag for `git verify-tag`, and the Windows shell note describes the bash loop. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Code Coverage OverviewLanguages: Rust, Solidity Rust / code-coverage/cargo-llvm-covThe overall line coverage in commit 6e83906 in the Show a line coverage summary of the most impacted files.
Solidity / code-coverage/forgeThe overall line coverage in commit 6e83906 in the Updated |
Gas snapshotNo gas changes vs base. |
Summary
Cuts avoidable build time from the release workflow, found by looking at the v0.0.1 run (37914881533).
One build job per target, not per binary.
decdn-nodeanddecdnbuilt in separate jobs on the same five targets, so each target compiled the shared iroh/alloy dependency graph twice from cold. That came to about 60 macOS runner-minutes (17m + 16m on x86_64, 15m + 12m on aarch64). The matrix now has six entries, each listingpackage:binarypairs. A job builds both packages one after the other in a singletarget/. It uses twocargo build/cross buildruns, not one-p a -p b: a single run would merge features across both packages and could change the daemon binary. Archive names, archive contents and the eleven-archive count are unchanged, sosign-release.shandpublish-crates.shneed no change.Verification no longer blocks the builds. The
releasejob ran fmt, clippy, nextest (9m10s) and the publish dry-run (5m) before any build could start. It is now split in two:tag(semver, signature, crate-version match, ~1 min) gates everything.verify(fmt, clippy, tests, publish dry-run, semver-checks, then draft creation) runs alongsidebuild-binaries.upload-assetsanddockerneedverify, so nothing is uploaded and no image is pushed, even untagged, for a release that failed verification. Total compute is the same; the wall-clock time drops by about 14 min.RELEASING.md§ What CI does with the tag describes the new order.Test plan
actionlint .github/workflows/release.ymlBuild <target>jobs pass, the draft has 11 archives plusSHA256SUMS, the docker job finds both Linuxdecdn-nodearchives, andVerify releaseoverlaps the builds in the run timeline🤖 Generated with Claude Code