Repository navigation
Move CI jobs off the retired macos-14 runner image - #20651
Conversation
[Medium impact] The PR appears safe to merge. Reviews (2) · Last reviewed commit: "Move CI jobs off the retired macos-14 ru..." · Reviewed by Greptile |
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
GitHub retires the macOS 14 runner images on 2026-11-02, with scheduled brownouts before that. Use macos-latest, like the release build matrix already does.
a75ff3f to
186baaa
Compare
…20667) ## Summary `@tailwindcss/[email protected]` hangs forever when it loads, for example with `NAPI_RS_FORCE_WASI=error node -e "require('@tailwindcss/oxide')"` in Node 24, or in a WebContainer. Version 4.3.3 works. The `.wasm` file of 4.3.4 does not export `_initialize`. All other exports are the same as in 4.3.3. Without `_initialize`, the thread setup of wasi-libc never runs, and Rust's std loops forever in `pthread_key_delete` when the module registers. `napi-build` links `crt1-reactor.o` and adds `--export=_initialize` only when it finds the file at `$RUSTC/../../lib/rustlib/<target>/lib/self-contained/crt1-reactor.o`. Otherwise it prints only a warning. #20651 moved the release job to `macos-latest` (`macos-26-arm64`). There, Cargo gives a bare `rustc` in `$RUSTC`, so the path is empty. The [v4.3.4 release log](https://github.com/tailwindlabs/tailwindcss/actions/runs/41526897752) shows: ``` warning: [email protected]: crt1-reactor.o not found at , the multi-threaded runtime may not be initialized correctly ``` The insiders builds show the same warning, so they are broken too. This PR: - Changes `crates/node/build.rs`. For a wasi target, it gets the sysroot with `$RUSTC --print sysroot`, and points `$RUSTC` at the `rustc` of that sysroot before `napi_build::setup()`. It fails the build when `crt1-reactor.o` does not exist. This fixes the wasm build in each environment (release, CI and local), so the workflows need no extra `RUSTC` variable. - Adds an integration test to `integrations/oxide/wasm.test.ts`. It installs `@tailwindcss/oxide` from the packed tarballs in `dist`, and loads it with `NAPI_RS_FORCE_WASI=error`. It checks that the `.wasm` file exports `_initialize`, and scans a string. It kills `node` after 10s, so a hang fails the test. The test reads no files through WASI, so it runs on Linux and macOS (not on Windows). For this, `exec` in `integrations/utils.ts` gets a `timeout` option, and its error message says `Killed after <timeout>ms` when it kills the command. - Runs that test file in the `release` and `prepare-release` jobs, before anything is published. On PRs, the `Linux / oxide` integration job runs it. npm does not allow a second publish of 4.3.4, so the fixed package needs a 4.3.5 release. ## Test plan - Published tarballs, in a clean npm project with Node 24, with `NAPI_RS_FORCE_WASI=error node -e "require('@tailwindcss/oxide')"`: `4.3.3` returns in 48ms, and `4.3.4` hangs (killed after 20s). - Before this PR, `RUSTC=rustc pnpm run build:wasm` in `crates/node` prints the `crt1-reactor.o not found at ,` warning. The `.wasm` file has the same exports as `4.3.4` (no `_initialize`), and it hangs in the same way. - After this PR, the same build prints no warning. The `.wasm` file has the same exports as `4.3.3`, and the package loads in 254ms. - With a fake `rustc` that gives a sysroot without `crt1-reactor.o`, the build fails with `crt1-reactor.o not found at …`. - The new integration test passes on macOS with the fixed tarball in `dist`. With the tarball of the build without the fix in `dist`, it fails with `Killed after 10000ms`. With `CI=true`, the release step `pnpm run test:integrations ./integrations/oxide/wasm.test.ts` exits with code 1 after 3 tries (33s). - `pnpm run build`, the `oxide` integration tests and `pnpm run test` pass. - The release job cannot run on a PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
[ci-all]
GitHub retires the macOS 14 runner image on 2026-11-02. Before that, scheduled brownouts cancel the jobs that use it. See actions/runner-images#13518.
Example of a brownout failure: https://github.com/tailwindlabs/tailwindcss/actions/runs/41349787381/job/124977275843?pr=20650
This PR changes the 3 remaining
macos-14references tomacos-latest. The release build matrix already usesmacos-latest..github/workflows/integration-tests.yml: the macOS integration tests matrix entry.github/workflows/release.yml: thereleasejob (publishes to npm).github/workflows/prepare-release.yml: thepreparejob (makes the GitHub release)Test plan
[ci-all]is in this description, so the macOS integration tests run on this PR. They prove the change.releaseandpreparejobs cannot be tested on this PR. They run only for a release.Possible follow-up
.github/workflows/ci.ymlusesmacos-15with a comment about Playwright 1.62+ and WebKit on macOS 14. This PR does not change it. It can move tomacos-latestin a separate PR.Sent by an AI assistant on behalf of @RobinMalfait.