-
Notifications
You must be signed in to change notification settings - Fork 354
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
Remove unnecessary chdir #2780
Remove unnecessary chdir #2780
Conversation
I've checked the relevant tests that came from containerd were passed. |
@@ -44,8 +44,7 @@ Vagrant.configure("2") do |config| | |||
./script/setup/install-cni | |||
./script/setup/install-critools | |||
rm -rf /bin/runc /sbin/runc /usr/sbin/runc /usr/bin/runc | |||
|
|||
cp /vagrant/youki/youki /usr/bin/runc | |||
ln -s /vagrant/youki/youki /usr/bin/runc |
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.
It'd be more beneficial because we don't need to copy again when we rebuild.
I'll check CI. |
Co-authored-by: jiaxiao zhou <[email protected]> Co-authored-by: Jorge Prendes <[email protected]> Signed-off-by: utam0k <[email protected]>
@Furisto Can you take a look at this PR? |
Signed-off-by: utam0k <[email protected]>
Signed-off-by: utam0k <[email protected]>
@Mossaka can you confirm that this branch's youki build resolved the original perf issues you were facing? So that once this PR is checked from the our side, we can merge and make a release. |
Signed-off-by: utam0k <[email protected]>
Just confirmed, it solved the original perf issue we are facing |
Signed-off-by: utam0k <[email protected]>
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.
Hey, can you take a look at two comments I have? Apart from them, it is lgtm
Signed-off-by: utam0k <[email protected]>
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 👍
Not merging it in case you want to do something before release, or anyone else has a review comment
Thanks @utam0k !
use std::{fs, io::Write, os::unix::prelude::RawFd, path::PathBuf, rc::Rc}; | ||
|
||
use libcgroups::common::CgroupManager; | ||
use nix::unistd::Pid; | ||
use oci_spec::runtime::Spec; | ||
|
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.
thought: We should have a rustfmt.toml
to standardize this.
I personally like the one that @Mossaka put together for runwasi.
https://github.com/containerd/runwasi/blob/main/rustfmt.toml
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.
I didn't know that. It is what I want! Thanks for sharing.
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.
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 @utam0k !
I left a minor comments.
Otherwise, LGTM.
Signed-off-by: utam0k <[email protected]>
Fix: #2772
These
chdir
are unexpected forlibcontainer
's users.