Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

enable handle_run to accept io redirect paths#342

Merged
devigned merged 1 commit intodeislabs:mainfrom
devigned:ioredirect
Mar 14, 2023
Merged

enable handle_run to accept io redirect paths#342
devigned merged 1 commit intodeislabs:mainfrom
devigned:ioredirect

Conversation

@devigned
Copy link
Member

@devigned devigned commented Mar 2, 2023

Currently, handle_run does not enable the caller to specify I/O redirection for modules running in slight. This PR allows the caller of handle_run to specify paths for std{out, in, err} which will be used to redirect WASI stdio.

Out of scope for the PR:

  • Adding command line args to slight

@devigned devigned force-pushed the ioredirect branch 6 times, most recently from ac438b5 to 7bf15d0 Compare March 2, 2023 19:40
@devigned devigned marked this pull request as draft March 2, 2023 23:12
@devigned
Copy link
Member Author

devigned commented Mar 2, 2023

Going to give this a bit more testing. I'm running into 502 errors when running this in the containerd-shim.

@Mossaka
Copy link
Member

Mossaka commented Mar 8, 2023

Let me know if this is ready to review again @devigned

@devigned
Copy link
Member Author

devigned commented Mar 8, 2023

Let me know if this is ready to review again @devigned

I think this last push should satisfy the linter. Should be good to go.

@devigned devigned marked this pull request as ready for review March 8, 2023 21:46
@devigned
Copy link
Member Author

@danbugs and @Mossaka, can I get another review?

Copy link
Member

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Left some comments

@devigned
Copy link
Member Author

@Mossaka I've updated the PR based on your feedback. Ready for the next round of reviews.

Signed-off-by: David Justice <david@devigned.com>
@devigned devigned added the ✨ feature New feature or feature request label Mar 13, 2023
Copy link
Member

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Again, thank you @devigned

@devigned devigned merged commit 5e71d2b into deislabs:main Mar 14, 2023
@devigned devigned deleted the ioredirect branch March 14, 2023 12:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

✨ feature New feature or feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments