Wave icon indicating copy to clipboard operation
Wave copied to clipboard

Move release planning and publication gates into tools.ci.release

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.

Release and Nightly identity/eligibility/promotion policy now lives in tools/src/publication.rs. The explicit release/nightly workflows own scheduling. Exact source identity, complete successful jobs, installer approvals and asset checks remain required.

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

.github/workflows/release.yml contains version/tag validation, target selection, package coordination, checksum verification and publication checks. These procedures cannot currently be reproduced through one local release command.

Scope

Depends on #825, #826, #827 and #828. Implement tools/ci/release.py as the coordinator: release gates → version validation → target matrix → wavec build → std/sysroot staging → Vex package layout → archives → checksums → metadata.

Support the requested local form python3 -m tools.ci.release --target riscv64-linux and the documented aliases. Building local artifacts must not silently create tags or publish; remote publication is a separate explicit action with existing permissions and draft/prerelease settings. Preserve canonical-master revalidation immediately before publication (#706), source SHA consistency, tag collision checks and failure-closed behavior. Difficulty: hard.

Completion criteria

  • [ ] Local and CI release commands select the same target/version/source and execute the same stages.
  • [ ] Failed tests, missing packages, incompatible std or invalid checksums prevent publication.
  • [ ] Tests cover dev/mismatched versions, existing tags, canonical master advancement/API failure and incomplete target sets without creating remote releases.
  • [ ] The release workflow delegates procedural decisions to Python while retaining jobs, dependencies, credentials and artifact transport.

LunaStev avatar Sep 30 '26 11:09 LunaStev