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
cover pkg/ipmi 2 try #2252
cover pkg/ipmi 2 try #2252
Conversation
aa30a21
to
42fe33d
Compare
Codecov Report
@@ Coverage Diff @@
## main #2252 +/- ##
==========================================
+ Coverage 67.02% 67.14% +0.12%
==========================================
Files 381 383 +2
Lines 39582 39615 +33
==========================================
+ Hits 26529 26599 +70
+ Misses 11970 11916 -54
- Partials 1083 1100 +17
Continue to review full report at Codecov.
|
I will give it a try and start working on an integration test. |
Wait. @rjoleary did you suggest I write a whole new docker image and make a custom qemu version run in the CI just to test ipmi? Because that's what I understand from the comment you left and the pdf you refered to. |
Could you do this PR without moving code around? It's a lot harder to review without knowing what you changed, and we'd have a clearer diff if no code was moved. |
I will let @rjoleary clarify but an automated test with a real IPMI target to test against would be really really dope and really good use of time. Updating the QEMU in our existing docker image is not a lot of work. |
This is just a new branch with the same commit as in #2182 This PR was reviewed by @rminnich until it reached a good state and then I squashed it into one commit. |
42fe33d
to
56428ae
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.
Unless @rjoleary or @rminnich agreed to or requested it, would you mind undoing the code moving? It makes it harder to see the diff of the ipmi code and what in the code changed. I don't disagree with the new split, actually, I would just rather see it in a different PR so that the diff is clean to read in this PR.
(Ignore my comment, I see this is obsolete in favor of the VM test) |
@johnnylinwiwynn Thank you very much. This can be merged when #2274 is done. |
56428ae
to
6488e2d
Compare
7d5ac7a
to
dd43815
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.
Unless @rjoleary or @rminnich agreed to or requested it, would you mind undoing the code moving? It makes it harder to see the diff of the ipmi code and what in the code changed. I don't disagree with the new split, actually, I would just rather see it in a different PR so that the diff is clean to read in this PR.
Since we do plan to merge this, would you mind addressing this?
Will do |
Also this has to wait a little longer. Need to comply with the comment here first before we can get this in. |
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'm approving it and it's up to you.
pkg/ipmi/handler.go
Outdated
return conn.Read(f) | ||
} | ||
|
||
type handler interface { |
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.
Here is where this gets weird and why it's hard for me to say.
Will this test run on a plan 9 system, and use an imported /sys from a linux system? Or vice versa? That's extremely unlikely, but my world, not uncommon. But at that point, we might someday choose to support multiple GOOS in one binary ... but that's a very unlikely situation?
Anyway, I tend to trust Chris K on stuff like this, so I'd take his direction; or, since he does not feel too strongly, this may be a case where we should let you decide, since the big goal here is to have 9e make more decisions of this type as time goes on. Are you comfortable making this decision? I am fine with whatever you wish to do.
As you can see, it's kind of borderline.
c3ec4e6
to
f9da4fd
Compare
…n-image-amd64 * Updated docker images has been deployed but without version increase, because version was tainted. Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
f9da4fd
to
8bb2b2f
Compare
Looking forward to the last review or will it be merged directly? Only the flying spaghetti monster knows! |
This. Any idea might help. I'm a little clueless now. Is there a different solution of the RawConn problem and I dont see it? |
I think we've worked it out, and we need to get this in. Sorry if that was the wrong thing to do.
Signed-off-by: Christopher Meis christopher.meis@9elements.com