Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the absolute/relative path weirdness when setting up WASI-based runner filesystems #3704

Merged
merged 9 commits into from
Mar 24, 2023

Conversation

Michael-F-Bryan
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan commented Mar 23, 2023

This PR introduces a bunch of hacks and workarounds so the WasiRunner can run Python scripts and the WcgiRunner can serve files from the host.

I've also introduced a TraceFileSystem that can be useful when debugging filesystem operations, and fixed the #[tracing::instrument] annotations on all our syscalls so they will actually log things like file fdescriptors (turns out #[tracing::instrument(..., fields(fd), ...)] won't actually log the fd variable).

@Michael-F-Bryan Michael-F-Bryan force-pushed the relative-vs-absolute-paths branch from a438b2f to 4d6de92 Compare March 24, 2023 06:45
@Michael-F-Bryan Michael-F-Bryan force-pushed the relative-vs-absolute-paths branch from c6de93c to b625531 Compare March 24, 2023 13:40
@Michael-F-Bryan Michael-F-Bryan marked this pull request as ready for review March 24, 2023 14:03
@Michael-F-Bryan Michael-F-Bryan merged commit 20085ec into master Mar 24, 2023
@Michael-F-Bryan Michael-F-Bryan deleted the relative-vs-absolute-paths branch March 24, 2023 15:01
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