Wave icon indicating copy to clipboard operation
Wave copied to clipboard

Build Vex-compatible release packages through tools.ci.package

Open LunaStev opened this issue 2 months ago • 0 comments

Current status — historical Python implementation superseded

This issue remains completed. PR #1071 subsequently replaced the project-owned Python execution/verification code with the native Rust wave-tools crate while retaining Cargo and Meson.

Current packaging and runtime staging are in tools/src/package.rs. FreeBSD host cross-build/VM acceptance is in tools/src/freebsd.rs. Archive, std, checksum, metadata and install layout contracts remain in force.

The scope below records the earlier implementation and is retained for traceability. It is not current guidance to recreate tools.ci modules, x.py, or the removed Python test packages. Shared Python runtime support for Meson and the offline high-precision reference generator are deliberately retained.

Historical implementation scope and evidence

Motivation

Packaging is split between x.py, tools/package_linux_riscv64.sh, tools/package_linux_loongarch64.sh and Windows helpers. stage_release_package copies std only through the Windows resource path; Linux/macOS smoke programs do not import std. A common packaging path should make the requested compiler/std/sysroot distribution explicit.

Scope

Depends on #824, #825 and #827. Implement tools/ci/package.py for staging the selected compiler, compatible std, required CRT/sysroot/tool/runtime assets, licenses, archives, checksums and machine-readable artifact metadata. Keep x.py entry points compatible while moving reusable packaging procedures.

Validate existing Vex consumption contracts before changing archive names or directory layouts. Include compiler version/source revision, std compatibility identity, target/ABI, required external prerequisites and archive digest in the agreed metadata. Sysroot contents must be target-specific and redistributable; do not invent a FreeBSD native bundle or wasm64 host compiler. Coordinate #791 separately. Difficulty: very hard.

Completion criteria

  • [ ] All currently shipped Linux/macOS/Windows packages retain working native tool/dependency closure and target architecture validation.
  • [ ] An extracted package can compile a real std-importing fixture outside the checkout with an isolated home and explicitly selected packaged std, without downloading std.
  • [ ] Archives, checksums and metadata identify the same target/version/source; missing or incompatible inputs fail without replacing a valid previous package.
  • [ ] Fixture-based layout tests and native extracted-package smoke tests cover all shipped target families.

Design decision needed: Confirm the Vex metadata schema, any required layout/version compatibility changes, and redistributable sysroot contents as one packaging contract before implementing those changes.

Please mention @LunaStev to discuss the design before starting implementation.

LunaStev avatar Sep 30 '26 11:09 LunaStev