feat: POSIX conformance test suite and implementation fixes (99.4%)#46
Merged
NathanFlurry merged 1 commit intomainfrom Mar 23, 2026
Merged
feat: POSIX conformance test suite and implementation fixes (99.4%)#46NathanFlurry merged 1 commit intomainfrom
NathanFlurry merged 1 commit intomainfrom
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Integrate the os-test POSIX.1-2024 conformance suite into WasmVM: - Add os-test fetch, WASM + native build targets to Makefile - Create posix-conformance.test.ts test runner with native parity checks - Create posix-exclusions.json schema and validation tooling - Add CI workflow, report generation, and docs integration - Fix 47 implementation gaps in wasi-libc (pthread, fcntl, strfmon, fmtmsg, inet_ntop, open_wmemstream, swprintf, realloc, pipe polling) - Move all libc fixes to patched sysroot (not test-only overrides) - Move POSIX directory hierarchy from test runner to kernel - Add pipe FD polling support, /dev/full ENOSPC, /dev/ptmx device - Centralize exclusion schema as shared TypeScript module - Harden import-os-test.ts with safe extraction Result: 3347/3350 tests passing (99.9%), 3 genuine exclusions remaining (ffsll wasm-limitation, statvfs/fstatvfs wasi-gap). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6b165d7 to
b1d7866
Compare
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
What changed
Infrastructure (US-001 → US-011)
make fetch-os-test/make os-test/make os-test-nativebuild targetsposix-exclusions.jsonschema with honest categorization (wasm-limitation / wasi-gap / implementation-gap)posix-conformance.test.tstest runner with native parity detectionvalidate-posix-exclusions.tsvalidation scriptgenerate-posix-report.tsMDX report generatorimport-os-test.tsupstream update script.github/workflows/posix-conformance.ymlCI workflowKernel & runtime fixes (US-012 → US-034)
spawnManaged()fdOpendetects directories by stat; VFS populated from native buildfstatatparent-relative path lookupREALLOC_ZERO_BYTES_FREESin dlmallocmain()for compile-only header conformance checks-lc-printscan-long-doubleIntegrity fixes (US-023 → US-025, US-028, US-033)
Remaining exclusions (20 tests)
Test plan
make -C native/wasmvm/c os-test os-test-nativecompiles all testspnpm vitest run packages/wasmvm/test/posix-conformance.test.tspassespnpm tsx scripts/validate-posix-exclusions.tspasses🤖 Generated with Claude Code