Skip to content

Release: don't cancel the matrix on one failure; pin Windows targets to Rust 1.98 - #336

Open
salmanfarisvp wants to merge 4 commits into
masterfrom
ci/release-windows32-rust-pin
Open

salmanfarisvp wants to merge 4 commits into
masterfrom
ci/release-windows32-rust-pin

Conversation

@salmanfarisvp

@salmanfarisvp salmanfarisvp commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

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.

  • Rust 1.100's std links synchronization on every *-windows-gnu target (new #[link(name = "synchronization")] in library/windows_link). The MinGW in the cross v0.2.5 image doesn't have that library, so Windows builds fail with ld: cannot find -lsynchronization. v26.9.0 was built with Rust 1.98.1 and linked fine.
  • In v26.11.0 the windows-32 job failed first. Because of the default fail-fast: true, that cancelled the macOS x64 and Windows x64 jobs before they packed their .mcpb files. Re-running those jobs doesn't help: GitHub cancels them again because the strategy still has a failed job.

Changes

  • fail-fast: false on the release matrix, so one failing target can't cancel the others.
  • Pin both Windows targets (x86_64-pc-windows-gnu, which also builds screenly-windows-x64.mcpb, and i686-pc-windows-gnu) to Rust 1.98, the version v26.9.0 shipped with. All other targets stay on stable.
  • The docker job runs with if: ${{ !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's wget fails and nothing is pushed.

Testing

Ran the release matrix from temporary branches, without the publish, attest and Docker steps:

  • Current settings (all stable): Windows x64 failed with x86_64-w64-mingw32-ld: cannot find -lsynchronization. Run 45613780678.
  • This PR's exact matrix: all 8 jobs passed (Linux ×4, macOS x64/arm64, Windows x64, windows-32). The three .mcpb files and screenly-cli-i686-pc-windows-gnu.zip were produced. Run 45772911596.
  • Opened screenly-windows-x64.mcpb and checked its contents: manifest.json (platform win32, entry point server/screenly.exe) and a valid PE screenly.exe.
  • cargo +1.98.1 check --release --locked passes locally.

Follow-up

  • Getting the missing files onto a release needs a new tag, for example v26.11.1. Re-runs of the v26.11.0 run use the workflow file at that tag.
  • The 1.98 pin is a stopgap: it breaks once a dependency or our code needs a newer Rust. Native Windows builds (MSVC on windows-latest built cleanly in a test) are to be discussed with the team.

…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.
Copilot AI lite review requested due to automatic review settings November 25, 2026 12:05

Copilot AI 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.

🔵 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: false for the release build matrix.
  • Pins windows-32 to Rust 1.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.
Copilot AI lite review requested due to automatic review settings November 25, 2026 13:36
@salmanfarisvp salmanfarisvp changed the title Release: don't cancel the matrix on one failure; pin windows-32 to Rust 1.98 Release: don't cancel the matrix on one failure; pin Windows x64 (MCPB) to Rust 1.98 Nov 25, 2026

Copilot AI 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.

🟡 Changes recommended

The release workflow still has a critical matrix failure that causes the dependent Docker build and push to be skipped, leaving the release unable to publish its Docker artifacts.

1 open issue

Review effort: Lite

Comment thread .github/workflows/release.yml Resolved
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.
Copilot AI lite review requested due to automatic review settings November 25, 2026 15:00

Copilot AI 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.

🟢 Approval recommended

No active review issues were identified in the release workflow changes.

No open issues 🎉

1 resolved since last review

Review effort: Lite

@renatgalimov renatgalimov 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.

Should fix

  1. windows-32 stays on stable, 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, all stable): deploy (windows) failed, every other job succeeded. Matches the description.
  • Run 45623751546 (test-release-pr336.yml at f558784): all 7 jobs succeeded. Diffed that workflow against this PR's release.yml: the only differences are the branch trigger, read-only permissions, the fixed 26.11.1 version, upload-artifact instead of publish/attest, no Docker job, and no windows-32 entry. 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, including screenly-cli-i686-pc-windows-gnu.zip. That confirms the cancelled-matrix story and that the i686 zip was shipped before.
  • Docker job: Dockerfile downloads only screenly-cli-x86_64-unknown-linux-musl.tar.gz, and action.yml downloads only the x86_64-unknown-linux-gnu tarball, so if: !cancelled() is safe for both consumers: a missing musl tarball fails wget before anything is pushed (inferred from reading; not run).
  • Not run: a tag-triggered run of this exact file (publish, attest, Docker push), and cross 0.2.5 + Rust 1.98 for i686-pc-windows-gnu (inferred from the v26.9.0 asset).

Reviewed by an AI agent (Hermes) on behalf of @renatgalimov.

Comment thread .github/workflows/release.yml Resolved
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.
Copilot AI lite review requested due to automatic review settings November 26, 2026 07:14
@salmanfarisvp salmanfarisvp changed the title Release: don't cancel the matrix on one failure; pin Windows x64 (MCPB) to Rust 1.98 Release: don't cancel the matrix on one failure; pin Windows targets to Rust 1.98 Nov 26, 2026

Copilot AI 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.

🔵 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 renatgalimov 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.

Re-review at 3a83b42: my finding 1 (pin windows-32) is fixed. No new findings.

Verdict: Ship.

What I tested
  • git diff 02d2344 3a83b42: only rust: "1.98" (plus a comment) on the windows-32 entry.
  • Run 45772911596 (test-release-pr336-full.yml at cf41276): all 8 deploy jobs succeeded, windows-32 on 1.98 included; 8 artifacts uploaded (windows-32 9.0 MB).
  • The matrix: block of that test workflow is byte-identical to this PR's release.yml (diffed), so the run covers the exact matrix.
  • Not run: a tag-triggered run of release.yml itself (publish, attest, Docker push).

Reviewed by an AI agent (Hermes) on behalf of @renatgalimov.

This branch has not been deployed

No deployments
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.

3 participants