Skip to content

Stabilize pre-beta runtime checks and native release packages - #843

Merged
LunaStev merged 9 commits into
wavefnd:masterfrom
LunaStev:fix/pre-beta-release-final
Oct 3, 2026
Merged

LunaStev merged 9 commits into
wavefnd:masterfrom
LunaStev:fix/pre-beta-release-final

Conversation

@LunaStev

@LunaStev LunaStev commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Complete the final v0.2.1-pre-beta stabilization batch and require all nine native distributions in CI, release, and Nightly. Fix macOS versioned LLD provisioning and transitive dylib bundling, correct the LoongArch LLD build target, and replace the RISC-V emulated compiler build with an amd64 cross-build plus QEMU package execution.

  • Add a pinned FreeBSD 14.4-RELEASE amd64 VM build, bundled LLVM/LLD dependencies, extracted-package tests, and matching archive/checksum/metadata requirements.
  • Download checksum-pinned LLVM 21.1.8 SDKs for RISC-V64 and LoongArch64 from the official site. Build these relocatable SDKs separately on demand; ordinary distribution jobs do not rebuild LLVM or fall back to a source build. Retain Cargo caching, streamed command output, and elapsed-time reporting.
  • Rotate Windows event delivery to prevent starvation when the output buffer is smaller than the ready set.
  • Validate smoke/exclusion case ownership, verify DCO across entire patch series, restore verification state on failure/interruption, and align Cargo checks with contributor checks.
  • Add browser/WASI smoke-host regressions. Generate release notes from the exact release-to-source range with PR-author, commit-author, and co-author credit.
  • Set the compiler version to 0.2.1-pre-beta and retain std compatibility revision 5.

Motivation

Nightly exposed missing or mismatched packaging dependencies, while RISC-V compilation under emulation made builds excessively slow. The release also lacked a native FreeBSD compiler archive and the remaining selected runtime/tooling safeguards.

Closes #791
Closes #530
Closes #646
Closes #647
Closes #638
Closes #639
Closes #652
Closes #643

Tracked in #832. The roadmap distinguishes merged work from this batch and its pending native CI validation.

Target and compatibility impact

Native distributions: Linux amd64/arm64/riscv64/loongarch64, macOS amd64/arm64, Windows MSVC amd64/arm64, and FreeBSD amd64. Unix archives use tar.gz and Windows archives use zip. FreeBSD uses the approved 14.4 baseline, bundles LLVM 21/LLD and non-system dependencies, and retains base OS libraries as external prerequisites. wasm64 remains a compiler output target rather than a separate SDK archive; existing wasm32 coverage is preserved.

No language or C ABI changes. Windows ready-event delivery becomes fair across successive waits. Manifest validation rejects case paths outside the selected suites. Patch verification requires a clean starting repository and checks every patch-series commit's DCO trailer. Release metadata describes dependency requirements; missing package dependencies fail validation with diagnostics. Nightly retains its existing validated-source publication policy.

Validation

Passed locally:

  • All tools.test_* Python modules: 262 tests, 236 passed and 26 environment-dependent skips; includes the new smoke-host tests and temporary-repository patch-verification tests.
  • cargo +1.89 test --locked --jobs 2 --test native_providers native_provider_os_boundary_failures -- --nocapture with LLVM 21.
  • cargo +1.89 test --locked --jobs 2 --test native_providers windows -- --nocapture with LLVM 21; Windows amd64/arm64 object checks, not native Windows execution.
  • Linux amd64 x.py release, followed by extracted-package compilation/execution with an isolated HOME/PATH and matching std; object generation and missing-library diagnostics also checked.
  • Release-note generation against the actual canonical history; roadmap inventory verified for 85 merged PRs by Git ancestry.
  • Actionlint for all three changed workflows, ignoring only its unrecognized existing windows-11-vs2026-arm runner label; shell syntax, Python compilation, cargo +1.89 fmt --all --check, and git diff --check.

Pending CI: the new FreeBSD VM and RISC-V distribution builds, plus native macOS/Windows package execution. Local mocks and cross-object checks do not establish those native results. The workflows now include distribution acceptance jobs for all nine packages. No release has been published by this change.

Initial CI failures and follow-up

Commit f9e88182 addresses the seven failed jobs from run 37025858466:

  • macOS/Windows tests: normalize temporary-path aliases; isolate patch fixtures from Git sign-off configuration; preserve universal-newline behavior in streamed output and retry only bounded Windows sharing violations after server shutdown.
  • LoongArch distribution: create LLD command aliases explicitly and inspect their resolved ELF binaries; use target sysroot directories when collecting dependencies.
  • RISC-V distribution: make llvm-sys discover the explicit QEMU llvm-config wrapper through its supported prefix, and validate shared LLVM link inputs before Cargo.
  • FreeBSD distribution: wait for the entire SSH public-key record before pinning it, resize the detected UFS partition, and select the native C linker.

Added regressions pass locally. Native/VM/cross-distribution validation of this follow-up remains pending the new CI run; no failing check was disabled.

Published LLVM SDK validation

Both LLVM 21.1.8 r1 SDKs are now available at https://wave-lang.dev/toolchains. Their complete public downloads match the sizes and SHA-256 values committed in tools/ci/llvm_bundles.json; public checksum sidecars match as well. Website delivery uses the Git-deployed toolchains/ directory. The nine LLVM bundle regression tests pass locally.

The standalone SDK builds validated target tools under QEMU and repeated validation after extraction at a different prefix. The new PR CI run validates their use in complete RISC-V64 and LoongArch64 compiler distributions; SDK validation alone does not establish that end-to-end result.

CI follow-up: ca0cc96

Addresses the five failed jobs in run 37114923891:

  • RISC-V64 and LoongArch64 distributions: disable Inkwell's unconditional libffi link request. Wave does not use its execution engine; the selected LLVM SDK still supplies its own dependency requirements through llvm-config.
  • macOS amd64/arm64: explicitly exit on missing DCO trailers under Bash 3.2, and compare canonical paths in the SDK extraction test. The extraction regression now exercises a symlinked destination on Linux as well.
  • FreeBSD distribution: load bootstrap commands from the mounted ISO to avoid truncation in the serial terminal input buffer, propagate bootstrap failure status, and grow the mounted root by mount point so the GPT device alias is recognized.

Validation: 62 Python tests and 11 Node smoke-host tests passed; the seven DCO tests reproduce the original two failures under GNU Bash 3.2 and all pass after the fix. Cargo check and a compiler build with LLVM 21 passed locally. Native macOS/FreeBSD and complete cross-distribution acceptance remain for the new CI run.

Package acceptance follow-up: 261d82a

Run 37116193978 passed macOS and the complete RISC-V64 distribution. The remaining two failures were in extracted-package checks:

  • FreeBSD completed workspace/frontend tests and the release build, then rejected an extra object passed to wavec run. The C-provider smoke now uses wavec build <source> <object> --run. Timestamped guest phase messages and unbuffered Python output make long VM stages visible.
  • LoongArch64 built its archive, then failed to locate libc/libm in the isolated smoke environment. Cross-package checks now pass the provisioned --sysroot explicitly; QEMU's loader prefix alone does not configure Wave's linker search paths.

Validation: 33 Python tests (including both cross-target sysroot checks), 11 Node tests, generated guest shell syntax, and a real local C-object build/run using paths with spaces passed. Final FreeBSD and LoongArch64 package acceptance remains pending the new CI run.

FreeBSD build reuse: 19aa516

Run 37118458634 passed every job, including native FreeBSD and LoongArch64 package acceptance. This follow-up reduces repeat FreeBSD setup/build work:

  • CI, Nightly and release restore the same version/configuration-scoped VM cache. Python derives its identity from the pinned FreeBSD image, Rust/LLVM versions, Cargo lockfile/manifests and build recipes; each source commit gets a new cache key with a compatible restore prefix.
  • Each job boots a disposable overlay, refreshes the exact source checkout while keeping Cargo outputs, and reruns unit/frontend tests, packaging and extracted-package acceptance. A cache hit never bypasses validation.
  • Only a successful, cleanly powered-off guest is flattened into a standalone qcow2 snapshot. Temporary SSH credentials and release archives are removed first. Restore checks identity, SHA-256 and standalone/clean image metadata; unusable caches fall back to fresh provisioning.

Validation: 57 Python tests and 11 Node tests passed, including real qemu-img flatten/restore after deleting the original backing disk, cache invalidation, and no cache publication after acceptance/shutdown failure. All three workflow YAMLs and generated guest shell scripts parse. No local VM build was rerun. The first CI run must populate the cache; actual warm-run timing remains to be measured.

Checklist

  • Commits include a DCO Signed-off-by line.
  • Tests cover new behavior or the PR explains why no test is needed.
  • User-facing changes include documentation or diagnostics updates.
  • The change preserves the license boundary between the compiler and std/.

@LunaStev LunaStev mentioned this pull request Oct 2, 2026
@LunaStev
LunaStev merged commit ad05406 into wavefnd:master Oct 3, 2026
69 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment