Skip to content

release: make every Release leg able to go green (toward v0.15.2.2 with SDKs on all platforms) - #1155

Merged
ehartford merged 3 commits into
mainfrom
release-v0.15.2.2
Sep 16, 2026
Merged

ehartford merged 3 commits into
mainfrom
release-v0.15.2.2

Conversation

@ehartford

@ehartford ehartford commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Toward cutting v0.15.2.2 with a compiler and an LLVM SDK for all five platforms, under the local-first process ruled 2026-09-16 (the Mac publishes darwin-aarch64 and linux-aarch64; CI builds and appends linux-x86_64, windows-x86_64 and windows-aarch64).

The Release workflow had failed on every leg since 2026-09-12. Per-leg root causes and status:

leg was cause status
linux-aarch64 seed-driver: … is not the pinned seed v0.15.2.0 (79a63ff…) release_asset_for_host() had no linux-aarch64 case → darwin fallthrough (also fed test-green, last-green, seed, SDK asset name) ✅ fixed; gate passes in the test-channel run
linux-aarch64 undefined symbol: with_vec_append_bytes in one spec test the single known-issue #916 file; #916 does not reproduce on aarch64 (native arm64 container build: 209/210 pass, that one "expected red but passed") ✅ skip-on: linux-aarch64; residue tracked in #1156
windows-aarch64 nm failed for emit_obj_globals Release job never exported NM; MSYS nm can't read arm64 COFF ✅ NM=<sdk>/bin/llvm-nm.exe
windows-x86_64 last-green: stale test pass marker gates relink the compiler per step on every platform (#1157); only Windows bytes changed (lld-link wall-clock PE timestamp + PDB GUID) ✅ /Brepro; build/fixpoint/test/last-green now pass on that leg
darwin, linux-x86_64, windows release UAT: zlib raw c_import function call requires unsafe context, sqlite3 type mismatch in binding, openssl undefined variable not a compiler regression: with get now fetches zlib 1.3.2 and OpenSSL 4.0.2, whose headers reach three latent c_import generator gaps (the 09-06 compiler fails identically) ✅ generator fixes; zlib and sqlite3 UATs pass end to end locally
darwin, linux-x86_64 openssl UAT: compiler double free in compile_source_frontend_mode on evp.h main regression since v0.15.2.1, layout-dependent (#729 class) ⏳ #1158 — decision pending (chase now / pin openssl 3.x for this release / waive)
windows-x86_64 bzip2 UAT exit 124 Windows-only timeout (runs to "UAT passed" on darwin and linux) 🔎 to characterize on the next test-channel run

Process and automation in this PR: tools/docker/linux-aarch64/Dockerfile (the native arm64 release host; a bare ubuntu fails silently without g++/libxml2), tools/release_local.w (with run tools/release_local.w vX.Y.Z: darwin gates → :release-uat → package → publish-first, then the same inside the container for linux-aarch64), the workflow split (build-darwin-aarch64 and build-linux-aarch64 gated on github.event_name != 'push'), and two new runbook sections.

Validation: test-channel Release runs on this branch (workflow_dispatch, channel: test); the first (35134417320, pre-generator-fix) already proved the seed-driver, /Brepro and per-leg gates. A second run on this commit exercises the generator fixes, the NM fix and the aarch64 skip. Then src/version → v0.15.2.2, merge, tag, with run tools/release_local.w v0.15.2.2.

Compiler-source changes here (src/compiler/Link.w /Brepro, src/CImport.w generator) are release blockers and are flagged as such.

…map, windows-aarch64 NM, reproducible Windows links)

The Release workflow has failed on every platform since 2026-09-12; v0.15.2.1
shipped SDKs for three of five platforms because its Windows legs never
finished. Three of the causes, each verified against the failed run
35102512299:

- build.w: release_asset_for_host() / supported_release_platform_tag() had
  no linux-aarch64 case and fell through to the darwin asset, so on that
  host the seed-driver, test-green, last-green and seed targets — and the
  SDK asset name — all keyed on darwin ("the driving compiler ... is not the
  pinned seed v0.15.2.0 (79a63ff...)" compared the linux-aarch64 seed to the
  darwin digest). Add the case.

- nightly-release.yml, windows-aarch64: the toolchain step never exported
  NM, so cli-selfhost-object-symbol-tests and bundle-interface-tests ran
  the runner's MSYS nm, which cannot parse an arm64 COFF image ("nm failed
  for emit_obj_globals"). Point NM at the SDK's llvm-nm.exe, as
  selfhost-windows-aarch64.yml already does.

- src/compiler/Link.w: pass /Brepro on the COFF link. The seed-driven gates
  relink the release compiler in every step on every platform (a separate
  inefficiency), and only on Windows did the bytes change, because lld-link
  stamps the PE header and PDB GUID from the wall clock; fixpoint compares
  emitted objects, never the linked image, so it never saw the churn. That
  is the "last-green: stale test pass marker" failure on windows-x86_64:
  the marker's compiler sha256 was taken before the relink.
Eric Hartford added 2 commits September 16, 2026 12:53
…elease process, linux-aarch64 Docker host

The release UAT's zlib, sqlite3 and openssl legs broke because `with get`
now fetches zlib 1.3.2 and OpenSSL 4.0.2, whose headers reach three latent
gaps in the c_import modeler (the 09-06 compiler fails on them identically):

- src/CImport.w: an object-like macro whose value is a call is recorded
  untranslated, like a function alias — a known C function would be a raw
  call at program start (`#define zlib_version zlibVersion()`, "raw c_import
  function call requires unsafe context"), and a callee this import never
  emitted leaves a dangling name (`#define OSSL_DEPRECATEDIN_4_0
  OSSL_DEPRECATED(4.0)`, "undefined variable"). Referencing such a macro is
  the loud, allow-gated omission error.
- src/CImport.w: every type position now spells a raw C function pointer
  `unsafe extern "C" fn(...)` — the constant-probe emitter, the typedef
  alias resolver and ci_infer_cast_return_type had kept the safe spelling,
  so sqlite3's `#define SQLITE_STATIC ((sqlite3_destructor_type)0)` became
  `let SQLITE_STATIC: extern "C" fn(...) = (0 as unsafe extern "C"
  fn(...))`, a binding type mismatch.
- build/release_uat_fixtures/openssl_main.w: `write` is import-gated
  (#750); add `use std.builtins.write`.
- test/spec/spec_ss14_11_await_combinator_cancel_joins.w: `skip-on:
  linux-aarch64` — #916 does not reproduce there, so the known-issue gate
  reported "expected red but passed" (the one red file of 210 on that leg).

The openssl UAT still fails on darwin/linux until #1158 (a double free in
compile_source_frontend_mode while modeling OpenSSL 4.0.2's evp.h; a main
regression since v0.15.2.1, layout-dependent).

Process (Eric, 2026-09-16): the Mac builds and publishes darwin-aarch64 and
linux-aarch64; CI builds and appends the rest.
- tools/docker/linux-aarch64/Dockerfile: the native linux/arm64 release
  host (an Apple Silicon Mac runs it natively); bakes in what a bare
  ubuntu:24.04 lacks and fails silently without (g++, libxml2).
- tools/release_local.w: `with run tools/release_local.w vX.Y.Z` — the
  darwin gates, :release-uat, packaging and publish-first, then the same
  inside the container for linux-aarch64 (pins from seed.lock and the
  linux-aarch64 lane).
- .github/workflows/nightly-release.yml: darwin-aarch64 leaves the unix
  matrix for its own job; it and build-linux-aarch64 run only when
  github.event_name != 'push', so a tag push builds linux-x86_64,
  windows-x86_64 and windows-aarch64 and the nightly/test channels still
  exercise all five.
- docs/with-release-runbook.md: "Linux aarch64 Release Host (Docker on
  Apple Silicon)" and "Local-first: the Mac publishes darwin and
  linux-aarch64; CI appends the rest".
…nd the two open decisions

Replaces the stdlib-sourcing/corpus-registry handoff (that work is merged:
#1129, #1142, #1151). Records the release state at 4ecfddb: what each
Release leg failed on and which fix addresses it, the evidence on this
commit (battery green through last-green; :release-uat red on openssl
alone), the two decisions blocking the cut (#1158 openssl double free,
windows-aarch64 placement), the exact publish sequence, the issues filed
today, and the environment traps that cost rebuild cycles to find.
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