Repository navigation
Integrate WSON and parsed AST output with shared Python CI procedures - #837
Merged
Merged
Conversation
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Unify compiler serialization under Utils WSON, give parsed AST output an explicit schema, and move CI/release procedures from shell-heavy workflows into
tools/ci/.utils::jsonand duplicated diagnostic/CLI serializers with a shared WSON value model, parser and writer. Preserve strict JSON output contracts, exact integer/decimal spelling, Unicode handling and bounded nesting without adding Rust dependencies.--emit=ast --ast-format=wson|json|sexpr. Keep import declarations and original literal spellings/bytes without import expansion or type checking for AST-only emission.ci.yml. Shared Python plans account for the previous 29 jobs and 225 procedures, retain feature-isolated and platform-specific checks, and record failure, timeout, cancellation, interruption and unstarted work. Provisioning and release publication require explicit flags.printfformats and explicitputs, preserve raw bytes and exact six-decimal float formatting, and propagate exit status. No external runtime dependency is added.Motivation
Separate JSON implementations and Rust-derived AST dumps make output contracts difficult to maintain. Workflow-owned procedures cannot be reproduced through the same local commands and repeat platform/toolchain decisions.
Closes #835.
Closes #836.
Closes #824.
Closes #825.
Closes #826.
Closes #827.
Closes #828.
Closes #829.
Closes #830.
Part of #832. Nightly publication (#831) remains a separate final step. Vex artifact selection for Windows MSVC/ARM64 and Linux LoongArch64 is tracked separately in wavefnd/Vex#154.
Target and compatibility impact
ConstInt; duplicate keys and unsupported JSON-mode WSON values are explicit errors.Debugto a parsed-source schema. Default AST artifacts are.ast.wson; JSON uses.ast.json, S-expression uses.ast. CLI help and deterministic snapshots describe the new selection..metadata.jsonsidecars are additive. OS SDK/system-library prerequisites remain external. Native toolchain pins are shared with the provisioning helpers.Validation
Rust commands used
LLVM_SYS_211_PREFIX=/usr/lib64/llvm21where required and Cargo--jobs 2:cargo +1.89 test --jobs 2 --workspace --lib: 65 passed.cargo +1.89 test --jobs 2 --test ast_serialization --test frontend_regressions --test release_stabilization --test release_constants: 35 passed.cargo +1.89 clippy --jobs 2 --all-targets -- -D warningsandcargo +1.89 fmt --all --checkpassed.All
tools.test_*unittest modules: 220 tests, 27 skipped under their platform/runtime prerequisites; no failures. Coverage includes stage failure/cancellation, publication gates, all eight package layouts and rollback at each archive/sidecar replacement boundary.Browser/WASI smoke passed with the source-built compiler through both the Node hosts and
wavec run. Invalid WASI fixture contents return status 10 through both paths; a minimal guest verifies that the host propagates status 7.Actual
python3 -m tools.ci.test --target linux-amd64 --lane cases/case-configpassed; build and release plan commands also succeeded.AST JSON output was independently parsed with Python's JSON parser; WSON/JSON/S-expression snapshots and literal-preservation tests passed.
Actionlint passed for both migrated workflows with existing newer runner labels declared locally;
git diff --checkand Python compilation passed.Full manifest-selected WebAssembly runtime suites passed locally through the compiler's actual execution plans: wasm32 unknown 146/146, WASI 146/146, wasm64 unknown 147/147 (439 total, no failures or exclusions). This resolves the previously deferred 63 host-import failures in each lane.
Exact output and exit status passed at O0/O2 on all three WASM targets. Node host unit checks cover byte/pointer handling, memory growth, mixed variadic alignment, floating-point ties/negative zero/large values, invalid memory, unsupported formats and write failures. Existing WASM ABI, allocator and WASI process-exit regressions passed.
Windows profile-isolation regression passed: installed std remains available in the isolated profile, while the upload tree contains only execution evidence. Hosted Windows amd64/ARM64 builds, runtime checks and artifact uploads now pass after the profile-directory separation.
The latest hosted run passed 25/26 checks, including all Windows and WASM lanes. macOS ARM64 exposed a removed Node/V8
--experimental-wasm-memory64startup flag. The host now probes memory64 at execution time, starts directly when supported, or restarts once with the legacy flag for older engines. Dry-run plans no longer unconditionally pass the flag.The same O0/O2 output and exit-status regression passed with Node 22.0.0 (legacy-flag path), 22.22.1 and 24.19.0 (native memory64 path), for all three WASM targets. The dry-run argument regression, Clippy and formatting checks passed. The macOS hosted result for this final compatibility fix is pending.
Extracted production-release package execution remains for the release pipeline.
Checklist
Signed-off-byline.std/.