Skip to content

Run formatter and WebAssembly output-host unit suites in CI #940

Closed

Description

@LunaStev

Motivation

The recently added tools/test_format_rust.py and tools/test_wasm_host.mjs suites are executable locally but are not referenced by the tracked CI plans/procedures or operation implementations. Regressions in their focused contracts therefore need not fail CI.

Source audit at master d59bdab376bdc04edacdc8029b256cb8d55b5adf: the Python command lists in tools/ci/procedures.json:71 omit tools.test_format_rust, and no CI command invokes tools/test_wasm_host.mjs. These tests came with #926 and #932 respectively. Existing end-to-end cases do not replace their lexical-state and output-host memory/error unit checks.

Executed controls on this revision:

python3 -m unittest tools.test_format_rust  # 6 passed
node tools/test_wasm_host.mjs              # 8 passed
rg -n 'test_format_rust|test_wasm_host' tools/ci .github/workflows
# No matches.

Scope

Add both suites to appropriate existing CI procedures: Python tooling validation and a lane already provisioning Node for WebAssembly. Propagate failure status. Do not introduce duplicate workflows or require Node in lanes that currently do not need it. Difficulty: easy, with tools/test_ci.py as a starting point for procedure coverage.

This is separate from #893, which requests running the formatting policy checker itself. Here the requested gate executes the helper/host regression tests, not format-rust.py --check.

Completion criteria

  • The relevant CI plans execute both suites and preserve their failure exit status.
  • Add focused procedure/operation regression coverage so the commands cannot silently disappear.
  • Keep existing Python and WebAssembly validation commands and supported host toolchain pins intact.

Activity

  1. added
    enhancement
    good first issue
    ci
    on Oct 18, 2026
  2. hiyouwhatsapp commented on Oct 18, 2026

    @hiyouwhatsapp
    Contributor

    I'd like to take this. The Python tooling procedures can include tools.test_format_rust in their existing unittest commands. For the WebAssembly build lane, I'll add a small command procedure running node tools/test_wasm_host.mjs after tool verification (the CI job already sets up Node 22), and add tools/test_ci.py assertions for both wiring paths and nonzero-exit propagation. I'll leave the separate formatting-policy checker in #893 alone.

  3. added a commit that references this issue on Oct 18, 2026
    ec320e9
  4. added a commit that references this issue on Nov 13, 2026
    bd9608c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cienhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions