Skip to content

test(p2-shim): regression tests for symlink - #2234

Merged
vados-cosmonic merged 1 commit into
bytecodealliance:mainfrom
eduardomourar:chore/test-p2-shim-symlink-regression
Oct 11, 2026
Merged

vados-cosmonic merged 1 commit into
bytecodealliance:mainfrom
eduardomourar:chore/test-p2-shim-symlink-regression

Conversation

@eduardomourar

@eduardomourar eduardomourar commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add two OPFS symlink regression tests to Browser OPFS filesystem adapter that weren't covered by the existing suite, ported from scenarios exercised downstream in wasm-web-shell's Playwright tests.

Changes

  • Dangling symlink: statAt reports symbolic-link, readlinkAt returns the missing target, readDirectory lists it, and all of that survives a flush() + reload through the .__wasi_symlinks__.json sidecar.
  • Delete then recreate: unlinkFileAt on a symlink followed by a fresh symlinkAt at the same name round-trips correctly through the sidecar on reload.

Both pass against current main — this is coverage, not a bug fix. Both are non-obvious given the sidecar design: collectSymlinks/injectSymlinks rebuild the map from the tree on every flush, and injectSymlinks skips any path whose name already exists — exactly the kind of thing that can break silently later.

@eduardomourar
eduardomourar force-pushed the chore/test-p2-shim-symlink-regression branch from 189c6ec to ebabfe6 Compare October 9, 2026 09:41
@eduardomourar
eduardomourar force-pushed the chore/test-p2-shim-symlink-regression branch from ebabfe6 to 9ee56f6 Compare October 9, 2026 13:40
@vados-cosmonic
vados-cosmonic added this pull request to the merge queue Oct 11, 2026
Merged via the queue into bytecodealliance:main with commit 58a6ef5 Oct 11, 2026
65 checks passed
@eduardomourar
eduardomourar deleted the chore/test-p2-shim-symlink-regression branch October 11, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants