Skip to content

Refactor filesystem tests to have a root directory#264

Merged
andreiltd merged 5 commits into
WebAssembly:mainfrom
alexcrichton:single-root-directory
Jun 18, 2026
Merged

Refactor filesystem tests to have a root directory#264
andreiltd merged 5 commits into
WebAssembly:mainfrom
alexcrichton:single-root-directory

Conversation

@alexcrichton

Copy link
Copy Markdown
Collaborator

This commit is a refactor of all filesystem tests and their configuration to have only a single root directory instead of a list of preopened directories. The purpose of this change is to start moving in the direction of "there's just a root filesystem for WASI guests" as opposed to guests having a set of preopened directories they get to choose from. Tests are refactored in how they access preopened directories and search around for them. The JSON configuration of dirs is now just root and is optionally specified like before. Additionally passing the name of the first preopen as an argument is now no longer necessary so that's removed too.

This commit is a refactor of all filesystem tests and their
configuration to have only a single root directory instead of a list of
preopened directories. The purpose of this change is to start moving in
the direction of "there's just a root filesystem for WASI guests" as
opposed to guests having a set of preopened directories they get to
choose from. Tests are refactored in how they access preopened
directories and search around for them. The JSON configuration of `dirs`
is now just `root` and is optionally specified like before. Additionally
passing the name of the first preopen as an argument is now no longer
necessary so that's removed too.
@alexcrichton alexcrichton requested a review from andreiltd as a code owner June 18, 2026 05:53
@andreiltd

Copy link
Copy Markdown
Collaborator

The wasmtime p3 tests are still skipped, should we wait with merging until wasmtime is bumped and all tests are passing or you need these changes in wasmtime?

@alexcrichton

Copy link
Copy Markdown
Collaborator Author

I tested this locally against a main-built wasmtime with the updated WASI versions and everything passed locally. One option is to use the dev release of Wasmtime here but that's a moving target so I wouldn't want to inflict that on the CI here

@andreiltd andreiltd merged commit edf255a into WebAssembly:main Jun 18, 2026
6 checks passed
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