Skip to content

Harden std and packaging, extend Whale scalars, and make validation portable - #987

Merged
LunaStev merged 8 commits into
wavefnd:masterfrom
LunaStev:fix/eight-large-bundles
Oct 23, 2026
Merged

LunaStev merged 8 commits into
wavefnd:masterfrom
LunaStev:fix/eight-large-bundles

Conversation

@LunaStev

@LunaStev LunaStev commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Wave currently accepts destructive link-input/output aliases, packages arbitrary local std files, and leaves several std, Whale and validation contracts incomplete. This change protects those inputs, completes bounded std operations and scalar Whale lowering, and makes case contracts and supported execution levels explicit.

Eight commits group the implementation as follows:

  1. Protect explicit link inputs; package committed std blobs only and reject symlinks; include target-specific manual installation instructions. (3 issues)
  2. Complete bounded ASCII/byte/float/hex and Buffer operations; preserve C-string alias errors and EOF allocation behavior; fix UNC volume and IPv6 dotted-tail parsing. (9 issues)
  3. Reclaim inactive watches, index live tasks and dependent wakeups, and bound owned IOCP staging while preserving cancellation acknowledgement. (3 issues)
  4. Add UTF-8 input/output/environment fixtures, portability metadata, WebAssembly object checks, deterministic sharding and generator regressions; replace eight architecture copies with ABI workloads. (9 issues)
  5. Implement the Darwin environment provider through its narrow CRT process entry, and exercise injected environment boundaries on native CI platforms. (2 issues)
  6. Lower integer/float division and remainder, prepare typed call-site defaults in HIR, reset tracked local initialization, and distinguish verifier resource limits from malformed output. (5 issues)
  7. Organize existing examples, add runnable module/generic/pointer/algorithm/C/Wasm/freestanding projects, and publish exact target, std API and system-capability inventories. (13 issues)
  8. Complete maintainer/corpus/MSVC/VM/probe verification, report socket capability skips, and run unfiltered codegen regressions with each individual LLVM backend plus advertised-target variant emission. (10 issues)

Compatibility and scope:

  • LLVM remains the default; --whale, development version and official locked Whale revision are unchanged. Whale emits verified textual IR, not native executables. Floating oracle execution remains unsupported by the locked upstream interpreter.
  • Whale runtime integer division/remainder by zero traps; signed MIN / -1 traps and MIN % -1 is zero. Existing constant errors and evaluation order remain.
  • Source parameter defaults keep their existing literal-only grammar; typed/generated AST defaults are prepared per call before HIR facts are assigned.
  • Package membership uses committed std blobs and rejects symlinks; dirty tracked std inputs fail before staging, while untracked/ignored files are excluded.
  • Existing examples are relocated without changing their bodies. Replace remaining generated platform copies with layer-specific functional workloads #542 completes the requested coherent first group of eight architecture workloads; remaining generated cases are retained.
  • Other contributors’ assigned issues and open formatter PR fix(format): keep function spacing around characters and metadata #969 are excluded.

Validation:

  • Rust 1.89 / LLVM 21, Cargo jobs=2: 546 unique workspace/all-target tests passed across 67 suites, including the completed continuation after updating the obsolete empty-file allocation expectation. Default workspace/all-target Clippy passed with warnings denied.
  • All five individual LLVM backend configurations passed unfiltered codegen and payload tests: 375 test executions in total, plus Clippy with warnings denied for each. The payload matrix generated IR and objects for both fixtures across all 17 advertised targets.
  • Core64 unfiltered codegen/payload: 94 tests passed; AArch64-only workspace/all-target Clippy passed with warnings denied.
  • Python tooling: 377 tests completed, 349 passed and 28 conditional platform/compiler skips. The native std I/O checks also ran through the Rust workspace harness.
  • Current compiler corpus: 295 source checks and all 26 std examples passed, with zero example skips. New learning projects also exercised native O0/O2, C round trips, Node-hosted Wasm and freestanding symbol checks; documented RV64 hosted/freestanding commands were checked with a disposable Debian sysroot and QEMU.
  • Case runners passed 175 native cases, 81 Wasm compile/object cases and 32 architecture ABI probes. A local ten-case comparison measured removal of the old per-case delay; no remote CI wall-time improvement is claimed.
  • Boundary checks include async live-work/storage counters, mocked IOCP chunk/acknowledgement lifetimes, environment injection, byte/float bit patterns, allocation failures, committed package inputs, output aliases and UTF-8 report/fixture protection. The bounded Whale oracle covers integer execution; float lowering uses reader/verifier checks and a separate LLVM reference fixture.
  • rustfmt, touched Rust function spacing, std policy, generated API consistency and diff whitespace checks passed. Native macOS/Windows/FreeBSD results require the configured PR CI; local cross-target IR/object generation is not native execution.

Issue completion references:

Fixes #851
Fixes #903
Fixes #858
Fixes #854
Fixes #757
Fixes #758
Fixes #760
Fixes #764
Fixes #765
Fixes #766
Fixes #946
Fixes #549
Fixes #532
Fixes #533
Fixes #534
Fixes #428
Fixes #427
Fixes #870
Fixes #871
Fixes #876
Fixes #883
Fixes #895
Fixes #353
Fixes #369
Fixes #357
Fixes #356
Fixes #459
Fixes #463
Fixes #465
Fixes #461
Fixes #542
Fixes #352
Fixes #354
Fixes #578
Fixes #499
Fixes #653
Fixes #654
Fixes #672
Fixes #455
Fixes #490
Fixes #454
Fixes #656
Fixes #657
Fixes #658
Fixes #659
Fixes #660
Fixes #661
Fixes #662
Fixes #663
Fixes #664
Fixes #376
Fixes #378
Fixes #401
Fixes #372

Related: #773, #444, #445. These broader parity and async trackers remain separate.

CI follow-up:

  • Initial run 39900580342 completed with 42 successful jobs and eight failures. New tool tests compared canonical compiler paths with symlink/short temporary paths on macOS/Windows; expectations now compare the selected file consistently. A symlinked temporary-root replay passes all 15 related tests.

  • Strict UTF-8 pipe output is collected as bytes and decoded in the caller, so Windows reader-thread decoding failures cannot disappear as None output. Both captured streams, Unicode input, newline translation and cleanup remain covered.

  • The new native environment case is explicitly excluded only from bare Wasm32/Wasm64 and freestanding targets that have no environment provider. Hosted native coverage is retained; WASI still compiles the case without claiming native-only runtime execution. All three originally failing compile shards now pass locally: 81 + 81 + 80 cases.

  • The cold FreeBSD guest stopped with SIGILL during rustup, before source compilation. Its disposable build host now explicitly selects KVM's host CPU or TCG's bounded Nehalem CPU instead of the implicit qemu64 model and records the guest model. Rust/LLVM pins, emitted target baseline, package acceptance and cache integrity checks are unchanged. A local disposable guest on the exact pinned image passed SSH startup, official rustup, and an actual Rust 1.89.0 invocation with Nehalem. Full native package acceptance still awaits the final CI run.

  • Final tooling validation: all 377 Python tests completed (349 passed, 28 conditional skips), with 19 focused FreeBSD/cache/release tests and generated std API/std policy/diff checks passing. Rust source and dependencies did not change in this CI follow-up.

  • The next run exposed a Windows-only path-separator expectation in the corpus test and a FreeBSD sshd crash with TCG max. The test now compares normalized file paths, and TCG uses Nehalem instead of optional max features. Local pinned-image SSH + Rust 1.89 installation/execution passed, as did the final 377 Python tests and the actual symlink-temp-root replay. These follow-ups are folded into the existing validation commit; the PR still has exactly eight commits.

@LunaStev
LunaStev force-pushed the fix/eight-large-bundles branch from 1adea7e to 55a89e7 Compare October 23, 2026 11:27
@LunaStev
LunaStev force-pushed the fix/eight-large-bundles branch from 55a89e7 to bc5c243 Compare October 23, 2026 11:49
@LunaStev
LunaStev merged commit 540728c into wavefnd:master Oct 23, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment