-
Notifications
You must be signed in to change notification settings - Fork 290
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
integration-test: Implement running on VMs #733
Conversation
✅ Deploy Preview for aya-rs-docs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
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 biggest feedback about this PR at this point is that there's a lot of context in your brain about how these pieces fit together that aren't really apparent without unpacking the structure of the code.
In particular, a doc comment on the init process would be good. Also good would be a comment in xtask::run
with a high-level overview of what's going on.
Thanks for making this all work on the mac! Very handy
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.
Done.
Reviewable status: 0 of 11 files reviewed, all discussions resolved (waiting on @dave-tucker)
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.
This is looking great! Pure Rust 🦀 and few external deps.
Thanks for doing this - looks like it will be pretty easy to build upon.
A couple of nits and things that could use some commenting for coherence.
@@ -72,6 +74,7 @@ lazy_static = { version = "1", default-features = false } | |||
libc = { version = "0.2.105", default-features = false } | |||
log = { version = "0.4", default-features = false } | |||
netns-rs = { version = "0.1", default-features = false } | |||
nix = { version = "0.26.2", default-features = false } |
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 for one am very pro nix
and have 0 objections to using it in xtask
.
ISTR in any we only used libc
and I don't think we need to be as strict, but flagging it anyway.
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.
Ack.
Wait for at least one log and increase the wait time 10x.
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.
Yes, the comments please. Thank you.
Reviewable status: 0 of 11 files reviewed, 12 unresolved discussions (waiting on @dave-tucker and @tamird)
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 review!
line.with_context(|| format!("failed to read line from {qemu:?}"))?; | ||
println!("{}", line); | ||
if let Some(line) = line.strip_prefix("init: ") { | ||
let previous = match line { |
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.
Can you be more specific?
Implements running integration tests on multiple VMs with arbitrary kernel images using `cargo xtask integration-test vm ...`. This changes our coverage from 6.2 to 6.1 and 6.4.
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 on green ✅
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.
Reviewable status: 0 of 11 files reviewed, 12 unresolved discussions (waiting on @dave-tucker)
a discussion (no related file):
Previously, dave-tucker (Dave Tucker) wrote…
I missed the parens when reviewing. I see them now.
Done.
a discussion (no related file):
Previously, dave-tucker (Dave Tucker) wrote…
If it's useful we keep it.
Done.
See individual commits.
This change is