Skip to content

chore(windows-cross-compiler): move both images to Ubuntu 26.04 - #5448

Merged
shepherdjerred merged 6 commits into
mainfrom
chore/windows-cross-compiler-ubuntu-26
Nov 29, 2026
Merged

shepherdjerred merged 6 commits into
mainfrom
chore/windows-cross-compiler-ubuntu-26

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Why

The U5 dependency majors move the shared Ubuntu base from 24.04 to 26.04 LTS. The Windows cross-compiler images were still on noble. These images are released by hand, off CI, as #5084 was, so this PR rebuilds them, publishes them and re-pins the consumers.

What

  • packages/windows-cross-compiler/Dockerfile:
    • ubuntu:26.04@sha256:d66b366dac61…, the same pin as packages/homelab/images/redlib.
    • LLVM 21 replaces LLVM 20, since 21 is resolute's default. clang-cl 21.1.8 with lld-link and llvm-lib.
    • libicu78 replaces libicu74, for the .NET SDK.
    • WineHQ resolute is a single amd64 wine-stable package in Wine's WoW64 mode. WineHQ publishes no i386 or -amd64/-i386 split packages for resolute, so dpkg --add-architecture i386 and those packages are removed. The pin is 11.0.0.0~resolute-1: the same Wine 11.0 the patched DLLs are built from. The Renovate registryUrl and the apt source move to resolute.
    • The winui stage now checks that the stock msxml3/ntdll/shcore DLLs exist under /opt/wine-stable/lib/wine/x86_64-windows/ before the patched ones overwrite them. If the package layout changed, the patches could no longer land in the wrong place unnoticed.
  • test/selftest-*.sh: file 5.46 (26.04) describes PEs as PE32+ executable for MS Windows 6.00 (console), x86-64, with ARM64 instead of Aarch64. The checks now require that whole shape: PE32+, the subsystem ((console) for the base samples, (GUI) for WinUI) and the exact machine token. A PE32, wrong-architecture (including ARM64EC) or wrong-subsystem binary fails.
  • scripts/release/windows-cross-compiler.ts (added on main by fix(ci): harden vitest/eslint caches, lefthook, verify diagnostics, woodpecker gates, test-postgres, and dotfiles #5274) had never completed a release on this Mac. Two fixes:
    • Its isolated DOCKER_CONFIG had no cli-plugins, so docker buildx create failed with unknown flag: --name wherever buildx is a CLI plugin (OrbStack, Docker Desktop). The isolated config now links the caller's plugin directory (scripts/release/docker-cli-plugins.ts).
    • Its credential helper was registered only for the bare Docker Hub hostnames. buildx looks credentials up under https://index.docker.io/v1/, so the push went out anonymously: push access denied ... insufficient_scope: authorization failed. The helper is now registered for that key as well.
  • That script rebuilt both images on the cluster BuildKit from e552c630f9 (release 20504), ran the self-tests and re-pinned images/*/DIGEST, STATE.json and the cross-compilers site. The rebuild also picks up cargo-xwin 0.24.2 from chore(deps): refresh toolchain pins to newest in-range releases #5389, which main's current pins (still on 0.23.1) predate.
Image Old digest New digest
windows-cross-compiler sha256:dd2cfece09ec… sha256:75af1042c5c3ac74bd381f5a781aae1285442b76c8d0a3f0d3355254cfbdf2a3
windows-cross-compiler-winui sha256:24139a5765e3… sha256:006a92bda67d79eb0258354ffa7cc305546c9dee4afec8ef07269cfdb48d49e3

Demo

Toolchain probe inside each pinned image on linux/amd64 (cluster BuildKit):

Before (dd2cfece… / 24139a57…) After (75af1042… / 006a92bd…)
OS Ubuntu 24.04.5 LTS Ubuntu 26.04.1 LTS
clang-cl --version Ubuntu clang 20.1.2 (0ubuntu1~24.04.3) Ubuntu clang 21.1.8 (6ubuntu1)
lld-link --version Ubuntu LLD 20.1.2 Ubuntu LLD 21.1.8
dotnet --info 10.0.404, OS ubuntu 24.04, RID linux-x64 10.0.404, OS ubuntu 26.04, RID linux-x64
ICU libicu74 74.2-1ubuntu3.1 (amd64 + i386) libicu78 78.2-2ubuntu1 (amd64)
rustc --version 1.100.0 1.100.0
cargo xwin --version 0.23.1 0.24.2
makensis -VERSION v3.09-4 v3.10-2
wine --version (winui) wine-11.0: wine-stable, -amd64, -i386 11.0.0.0~noble-1 wine-11.0: wine-stable 11.0.0.0~resolute-1 (WoW64)

Image self-test (bun ci/scripts/images/selftest-ci-image.ts, cluster BuildKit) on the new Dockerfile:

ok: hello-c-x86_64-pc-windows-msvc.exe (PE32+ executable for MS Windows 6.00 (console), x86-64, 7 sections)
ok: hello-cpp-x86_64-pc-windows-msvc.exe (PE32+ executable for MS Windows 6.00 (console), x86-64, 8 sections)
ok: rust/x86_64-pc-windows-msvc/release/hello-windows.exe (PE32+ executable for MS Windows 6.00 (console), x86-64, 6 sections)
ok: dotnet-win-x64/HelloWindows.exe (PE32+ executable for MS Windows 6.00 (console), x86-64, 6 sections)
ok: hello-c-aarch64-pc-windows-msvc.exe (PE32+ executable for MS Windows 6.00 (console), ARM64, 6 sections)
ok: hello-cpp-aarch64-pc-windows-msvc.exe (PE32+ executable for MS Windows 6.00 (console), ARM64, 7 sections)
ok: rust/aarch64-pc-windows-msvc/release/hello-windows.exe (PE32+ executable for MS Windows 6.00 (console), ARM64, 6 sections)
ok: dotnet-win-arm64/HelloWindows.exe (PE32+ executable for MS Windows 6.02 (console), ARM64, 6 sections)
ok: HelloWinUI_1.0.0.0_x64.msix (PE32+ executable for MS Windows 6.00 (GUI), x86-64, 6 sections, 3 XBF)
ok: HelloWinUI_1.0.0.0_arm64.msix (PE32+ executable for MS Windows 6.02 (GUI), ARM64, 6 sections, 3 XBF)
ok: standalone/HelloWinUI.exe (PE32+ executable for MS Windows 6.00 (GUI), x86-64, 6 sections, merged manifest, PRI payload)

The first self-test run on 26.04 failed on the old assertion: hello-c-x86_64-pc-windows-msvc.exe is 'PE32+ executable for MS Windows 6.00 (console), x86-64, 7 sections', expected a PE32+ x86-64 Windows executable. That failure is what led to the test fix above.

A real consumer: tasknotes-windows scripts/cross-build.sh (main, after bun run generate) in the pinned winui image, on cluster BuildKit:

Before (24139a57…, noble) After (006a92bd…, resolute)
cross-build.sh exit 0 0
MSIX TaskNotes.Windows.App_0.1.0.0_x64.msix 32,545,979 bytes 32,545,986 bytes
Standalone win-x64-standalone/TaskNotes.Windows.App.exe 301,568 bytes, PE32+ executable (GUI) x86-64, for MS Windows 301,568 bytes, PE32+ executable for MS Windows 6.00 (GUI), x86-64

The cross-compilers site's built HTML carries only the new digests: windows-cross-compiler@sha256:75af1042c5c3 (5 references) and windows-cross-compiler-winui@sha256:006a92bda67d (1). The only page change is the digest strings, so there are no screenshots.

Verification

  • bun ci/scripts/images/selftest-ci-image.ts with the strict PE checks, on the cluster BuildKit: base and winui pass.
  • bun scripts/release/windows-cross-compiler.ts --release-number 20504 --commit e552c630f9…: exit 0. It builds and pushes both images, runs selftest-ci-image.ts (base and winui pass) and re-pins. build-ci-image.ts ran its anonymous-pull check (ensureDockerHubAccess) on both digests.
  • tasknotes-windows cross-build.sh in the final winui image: MSIX and standalone exe produced, exit 0.
  • bunx turbo run build typecheck test lint --filter=@shepherdjerred/cross-compilers-site --filter=windows-cross-compiler --filter=@shepherdjerred/root-scripts (25 tasks; includes the new docker-cli-plugins tests and the updated release-script tests), plus hadolint, shellcheck and bunx lefthook run pre-commit.
  • An earlier pair built before the restack (896ec50c…, 0b742468…, without cargo-xwin 0.24.2) stays on Docker Hub as unpinned candidate-71f2737330d5… tags, and nothing references it. The repository has no supported way to expire or delete Docker Hub candidate tags (toolkit tend prunes local Docker only), so they are left in place rather than deleted by hand.
  • Extended tier: no affected workspace declares tier: "extended" steps.
  • Not run:
    • Woodpecker image lanes, which are intentionally off CI.
    • A linux/arm64 build of base. The cluster BuildKit is amd64-only, and resolute's arm64 archive has the same package names (clang-21, lld-21, llvm-21, libicu78, nsis), checked in an arm64 ubuntu:26.04 container.
    • Windows runtime checks, which need Windows.

🤖 Generated with Claude Code

@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@greptile-apps

greptile-apps Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for 623f7e3 from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T18:08:52.983771Z 623f7e3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 623f7e310e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shepherdjerred
shepherdjerred force-pushed the chore/windows-cross-compiler-ubuntu-26 branch from 623f7e3 to 67b4bd4 Compare November 28, 2026 18:44
shepherdjerred and others added 6 commits November 28, 2026 13:13
Why
Renovate's U5 dependency major moves the shared Ubuntu base from 24.04 to
26.04 LTS. The cross-compiler images were the last first-party Dockerfile on
noble.

What
- Base image ubuntu:26.04 (same digest as redlib's pin).
- LLVM 21, resolute's default, replaces LLVM 20; libicu78 replaces libicu74.
- WineHQ's resolute build is a single amd64 wine-stable package in WoW64
  mode, so the i386 multiarch and the wine-stable-amd64/-i386 split packages
  are gone. The pin moves to 11.0.0.0~resolute-1 (same Wine 11.0 the patched
  DLLs build from). The build now asserts that the patched DLLs' target
  directory holds the stock DLLs before overwriting them.
- The self-tests match file 5.46's PE description ("PE32+ executable for MS
  Windows 6.00 (console), x86-64"; ARM64 instead of Aarch64).

Verification
- bun ci/scripts/images/selftest-ci-image.ts on the cluster BuildKit
  (linux/amd64): base and winui self-tests pass.
- windows-cross-compiler pins test, hadolint, shellcheck, lefthook pre-commit.
- Not run: Windows runtime checks (need Windows).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pins windows-cross-compiler sha256:896ec50cb2cb… and
windows-cross-compiler-winui sha256:0b742468cbf6…, built from a207546 on
the cluster BuildKit, and points the cross-compilers site at them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…elease config

The release script's isolated DOCKER_CONFIG had no cli-plugins, so on hosts
where buildx is a Docker CLI plugin (Docker Desktop, OrbStack) the first
`docker buildx create` failed with "unknown flag: --name". The isolated
config now links the caller's cli-plugins directory.

Verification: release script and docker-cli-plugins vitest (11 tests), eslint
and tsc for the scripts workspace, then a real release run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…or Docker Hub's index URL

buildx looks up Docker Hub credentials under https://index.docker.io/v1/, not
the bare hostnames the release config listed, so the push ran anonymously and
failed with insufficient_scope.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o-xwin 0.24.2

Main moved cargo-xwin to 0.24.2 after the first 26.04 images were built.
scripts/release/windows-cross-compiler.ts rebuilt both from e552c63
(release 20504), ran the self-tests and re-pinned: windows-cross-compiler
sha256:75af1042c5c3…, windows-cross-compiler-winui sha256:006a92bda67d….

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… in PE checks

The self-tests now match file 5.46's whole PE description:
"PE32+ executable for MS Windows <ver> (console|GUI), <machine>, ". A PE32,
wrong-architecture (including ARM64EC) or wrong-subsystem binary fails.

Verification: selftest-ci-image.ts on the cluster BuildKit passes (base and
winui); the patterns reject GUI-for-console, ARM64-for-x86-64, PE32 i386 and
ARM64EC descriptions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shepherdjerred
shepherdjerred force-pushed the chore/windows-cross-compiler-ubuntu-26 branch from b75ff8a to a1cd904 Compare November 28, 2026 21:13
@shepherdjerred
shepherdjerred merged commit bb813d7 into main Nov 29, 2026
8 checks passed
@shepherdjerred
shepherdjerred deleted the chore/windows-cross-compiler-ubuntu-26 branch November 29, 2026 00:08
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