Wave icon indicating copy to clipboard operation
Wave copied to clipboard

Centralize policy and artifact gates in tools.ci.validate

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 contracts are in tools/src/checks.rs, tools/src/binary.rs, tools/src/storage.rs and tools/src/maintenance.rs. Direct Cargo checks and independent runtime/package acceptance remain separate gates.

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

Formatting, lint, std policy and artifact gates are spread across the workflows and helpers such as tools/test_contracts.py, tools/check_msvc_package.py and tools/check_std_policy.py. Release and ordinary CI need the same checks.

Scope

Depends on #824. Add tools/ci/validate.py to compose existing validators for Rust formatting/Clippy/docs, Python tooling, std binding policy, source/corpus checks, ELF/COFF/WASM contracts as supported, and extracted-package acceptance.

Keep each existing validator authoritative; move orchestration and aggregate result handling, not language/runtime policy. Preserve report/input collision guards, nonempty-selection requirements, missing-tool failures and compiler/std compatibility checks. The checksum coverage defect is tracked separately in #820. Difficulty: medium.

Completion criteria

  • [ ] The target plan chooses explicit required gates and records exact commands and outcomes.
  • [ ] Missing tools, missing artifacts, malformed reports and failed prerequisite stages cannot be reported as successful validation.
  • [ ] Unit tests cover both successful and negative paths without requiring a full compiler build.
  • [ ] CI and release call the same gate implementations; existing focused validator tests remain active.

LunaStev avatar Sep 30 '26 11:09 LunaStev