-
Notifications
You must be signed in to change notification settings - Fork 97
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
[refactor] split sandbox shim #345
Conversation
4f5f18b
to
1440c73
Compare
7ed6f58
to
3fe149b
Compare
Is this ready to review? |
This is waiting on #342 as it builds up on top of it. |
8097bb8
to
7d21b2e
Compare
7d21b2e
to
80b1901
Compare
80b1901
to
764d6bf
Compare
This is now ready for review :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the cleaning up! I really love the refactoring work here and the new addition of RemoteEventSender
.
At the same time, I think this PR is bigger than a chore PR. I've asked some questions regarding the code difference between the old shim.rs
and the refactored files. I want to make sure that as a spliting PR, no logic has changed in the shim file.
Could you please review this PR? @cpuguy83
3a2c703
to
d27c35a
Compare
d27c35a
to
2126707
Compare
Changed the title to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a rebase
2126707
to
d65c7e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I am hoping to get a second pair of eyes for reviewing. @jsturtevant @cpuguy83
Signed-off-by: Jorge Prendes <[email protected]>
d65c7e2
to
fa88237
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one comment about the mod declaration. Not sure if its an issue.
@@ -14,7 +14,7 @@ pub mod sync; | |||
pub use error::{Error, Result}; | |||
pub use instance::{Instance, InstanceConfig}; | |||
pub use manager::{Sandbox as SandboxService, Service as ManagerService}; | |||
pub use shim::{Cli as ShimCli, Local}; | |||
pub use shim::Cli as ShimCli; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My editor is complaing about pub mod shim
at line 10 now that shim.rs
is gone.
I'm a bit fuzzy on module semantics, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this was just an editor thing. It disappered on its own.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one comment about the mod declaration. Not sure if its an issue.
This PR splits the
sandbox/shim.rs
module into smaller more maintainable submodules.In the process of doing so this PR also:
shim
module that were publicly visible but not used outside the module.stdin
,stdout
,stderr
, andbundle
) are stored inInstanceConfig
to avoid unnecessary convertions toString
back and forth. This also affects (hopefully simplifies) thestdio
module..unwrap()
in theshim
module outside of tests and mutex poisoning.Local
's event handling to avoid spining a thread just to forward messages.