Repository navigation
Release: don't cancel the matrix on one failure; pin Windows targets to Rust 1.98 - #336
salmanfarisvp wants to merge 4 commits into
Conversation
…st 1.98 v26.11.0 shipped without the macOS x64 and Windows x64 binaries and MCP bundles. The windows-32 build failed to link (cannot find -lsynchronization): Rust 1.100's std links libsynchronization, which the MinGW in the cross v0.2.5 image lacks. With the default fail-fast, that failure cancelled the in-flight macOS x64 and Windows x64 jobs. - Set fail-fast: false so each platform publishes independently. - Pin the windows-32 target to Rust 1.98, the last toolchain that linked.
There was a problem hiding this comment.
🔵 Needs a closer look
The tag-only release workflow’s cross/Rust toolchain compatibility, particularly windows-32 builds and downstream artifact publishing, requires validation in an actual GitHub Actions matrix run unavailable here.
No open issues 🎉
What changed in this PR
Updates the tag-based release workflow so failures in one platform build do not cancel the remaining matrix jobs, while pinning the 32-bit Windows build to Rust 1.98 for compatibility with the current cross image.
Changes:
- Sets
fail-fast: falsefor the release build matrix. - Pins
windows-32to Rust1.98. - Keeps all other release targets on the stable Rust toolchain.
| File | Description |
|---|---|
| .github/workflows/release.yml | Adjusts release matrix failure handling and pins the Windows 32-bit build to Rust 1.98. |
Review effort: Lite
The x64 Windows build hits the same -lsynchronization link error on Rust 1.100 and is the job that produces screenly-windows-x64.mcpb. Leave the 32-bit CLI target unchanged.
The image only downloads the x86_64-unknown-linux-musl tarball, so a failure in another target (e.g. windows-32) should not skip it. If the musl tarball is missing, the Dockerfile's wget fails and nothing is pushed.
renatgalimov
left a comment
There was a problem hiding this comment.
Should fix
windows-32stays onstable, so every release run ends red and the i686 zip disappears from releases (.github/workflows/release.yml:68, inline).
Verdict: Ship; 1 is worth doing in this PR (one line), but it doesn't block the bundle fix.
What I tested
- Run 45613780678 (
test-release-no-win32.yml, allstable):deploy (windows)failed, every other job succeeded. Matches the description. - Run 45623751546 (
test-release-pr336.ymlatf558784): all 7 jobs succeeded. Diffed that workflow against this PR'srelease.yml: the only differences are the branch trigger, read-only permissions, the fixed26.11.1version, upload-artifact instead of publish/attest, no Docker job, and nowindows-32entry. So the run covers exactly the changed matrix legs. - Release assets: v26.11.0 has 6 assets (no macOS x64 tarball, no Windows zips, only the macOS arm64
.mcpb); v26.9.0 has 14, includingscreenly-cli-i686-pc-windows-gnu.zip. That confirms the cancelled-matrix story and that the i686 zip was shipped before. - Docker job:
Dockerfiledownloads onlyscreenly-cli-x86_64-unknown-linux-musl.tar.gz, andaction.ymldownloads only thex86_64-unknown-linux-gnutarball, soif: !cancelled()is safe for both consumers: a missing musl tarball failswgetbefore anything is pushed (inferred from reading; not run). - Not run: a tag-triggered run of this exact file (publish, attest, Docker push), and
cross0.2.5 + Rust 1.98 fori686-pc-windows-gnu(inferred from the v26.9.0 asset).
Reviewed by an AI agent (Hermes) on behalf of @renatgalimov.
Rust 1.100's std links synchronization on every windows-gnu target, so the i686 build fails the same way as x64. Pinning keeps the 32-bit zip in releases and lets a complete release run finish green.
There was a problem hiding this comment.
🔵 Needs a closer look
The release orchestration and conditional Docker publication require validating GitHub Actions dependency and condition behavior, as well as recovery and push semantics during failed matrix runs, which automated review cannot establish.
No open issues 🎉
Review effort: Lite
renatgalimov
left a comment
There was a problem hiding this comment.
Re-review at 3a83b42: my finding 1 (pin windows-32) is fixed. No new findings.
Verdict: Ship.
What I tested
git diff 02d2344 3a83b42: onlyrust: "1.98"(plus a comment) on thewindows-32entry.- Run 45772911596 (
test-release-pr336-full.ymlatcf41276): all 8deployjobs succeeded,windows-32on 1.98 included; 8 artifacts uploaded (windows-329.0 MB). - The
matrix:block of that test workflow is byte-identical to this PR'srelease.yml(diffed), so the run covers the exact matrix. - Not run: a tag-triggered run of
release.ymlitself (publish, attest, Docker push).
Reviewed by an AI agent (Hermes) on behalf of @renatgalimov.

Why
The v26.11.0 release has only one MCP bundle (
screenly-macos-arm64.mcpb).screenly-macos-x64.mcpb,screenly-windows-x64.mcpb, the macOS x64 tarball and both Windows zips are missing.synchronizationon every*-windows-gnutarget (new#[link(name = "synchronization")]inlibrary/windows_link). The MinGW in thecrossv0.2.5 image doesn't have that library, so Windows builds fail withld: cannot find -lsynchronization. v26.9.0 was built with Rust 1.98.1 and linked fine.fail-fast: true, that cancelled the macOS x64 and Windows x64 jobs before they packed their.mcpbfiles. Re-running those jobs doesn't help: GitHub cancels them again because the strategy still has a failed job.Changes
fail-fast: falseon the release matrix, so one failing target can't cancel the others.x86_64-pc-windows-gnu, which also buildsscreenly-windows-x64.mcpb, andi686-pc-windows-gnu) to Rust1.98, the version v26.9.0 shipped with. All other targets stay onstable.dockerjob runs withif: ${{ !cancelled() }}, so a failure in an unrelated target no longer skips it. The image only needs the linux-musl tarball; if that tarball is missing, the Dockerfile'swgetfails and nothing is pushed.Testing
Ran the release matrix from temporary branches, without the publish, attest and Docker steps:
stable): Windows x64 failed withx86_64-w64-mingw32-ld: cannot find -lsynchronization. Run 45613780678..mcpbfiles andscreenly-cli-i686-pc-windows-gnu.zipwere produced. Run 45772911596.screenly-windows-x64.mcpband checked its contents:manifest.json(platformwin32, entry pointserver/screenly.exe) and a valid PEscreenly.exe.cargo +1.98.1 check --release --lockedpasses locally.Follow-up
windows-latestbuilt cleanly in a test) are to be discussed with the team.