Repository navigation
chore(windows-cross-compiler): move both images to Ubuntu 26.04 - #5448
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
@codex review Automated re-review request for |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
623f7e3 to
67b4bd4
Compare
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>
b75ff8a to
a1cd904
Compare
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 aspackages/homelab/images/redlib.wine-stablepackage in Wine's WoW64 mode. WineHQ publishes no i386 or-amd64/-i386split packages for resolute, sodpkg --add-architecture i386and those packages are removed. The pin is11.0.0.0~resolute-1: the same Wine 11.0 the patched DLLs are built from. The RenovateregistryUrland the apt source move toresolute.msxml3/ntdll/shcoreDLLs 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 asPE32+ executable for MS Windows 6.00 (console), x86-64, withARM64instead ofAarch64. 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:DOCKER_CONFIGhad nocli-plugins, sodocker buildx createfailed withunknown flag: --namewherever buildx is a CLI plugin (OrbStack, Docker Desktop). The isolated config now links the caller's plugin directory (scripts/release/docker-cli-plugins.ts).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.e552c630f9(release 20504), ran the self-tests and re-pinnedimages/*/DIGEST,STATE.jsonand 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.windows-cross-compilersha256:dd2cfece09ec…sha256:75af1042c5c3ac74bd381f5a781aae1285442b76c8d0a3f0d3355254cfbdf2a3windows-cross-compiler-winuisha256:24139a5765e3…sha256:006a92bda67d79eb0258354ffa7cc305546c9dee4afec8ef07269cfdb48d49e3Demo
Toolchain probe inside each pinned image on linux/amd64 (cluster BuildKit):
dd2cfece…/24139a57…)75af1042…/006a92bd…)clang-cl --versionlld-link --versiondotnet --inforustc --versioncargo xwin --versionmakensis -VERSIONwine --version(winui)wine-stable,-amd64,-i38611.0.0.0~noble-1wine-stable11.0.0.0~resolute-1(WoW64)Image self-test (
bun ci/scripts/images/selftest-ci-image.ts, cluster BuildKit) on the new Dockerfile: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, afterbun run generate) in the pinned winui image, on cluster BuildKit:24139a57…, noble)006a92bd…, resolute)cross-build.shexitTaskNotes.Windows.App_0.1.0.0_x64.msixwin-x64-standalone/TaskNotes.Windows.App.exePE32+ executable (GUI) x86-64, for MS WindowsPE32+ executable for MS Windows 6.00 (GUI), x86-64The cross-compilers site's built HTML carries only the new digests:
windows-cross-compiler@sha256:75af1042c5c3(5 references) andwindows-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.tswith 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, runsselftest-ci-image.ts(base and winui pass) and re-pins.build-ci-image.tsran its anonymous-pull check (ensureDockerHubAccess) on both digests.cross-build.shin 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 newdocker-cli-pluginstests and the updated release-script tests), plus hadolint, shellcheck andbunx lefthook run pre-commit.896ec50c…,0b742468…, without cargo-xwin 0.24.2) stays on Docker Hub as unpinnedcandidate-71f2737330d5…tags, and nothing references it. The repository has no supported way to expire or delete Docker Hub candidate tags (toolkit tendprunes local Docker only), so they are left in place rather than deleted by hand.tier: "extended"steps.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 arm64ubuntu:26.04container.🤖 Generated with Claude Code