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
pkg/ipmi: Restructure, rework and test coverage #2182
Conversation
quick question: this is 12 commits. does it make sense to squash into fewer commits? Mainly asking, I really don't know. |
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 really nice, I only had a few nits, hope they are helpful.
overall: be sure to golint in the pkg and other directory and go vet . -- they will complain about missing comments and that sort of thing. This is a big improvement, so let us know how we can help further to get it done. |
I use that per default, but it explodes with u-root. ~1k annotations over the whole project. T_T |
da0b171
to
c7f4bd7
Compare
Codecov Report
@@ Coverage Diff @@
## main #2182 +/- ##
==========================================
- Coverage 61.62% 61.19% -0.43%
==========================================
Files 384 402 +18
Lines 39990 40663 +673
==========================================
+ Hits 24643 24884 +241
- Misses 14345 14733 +388
- Partials 1002 1046 +44
Continue to review full report at Codecov.
|
Any other suggestions for improvements before I squash it all together? |
This is still not ready. Needs reimplementation of tests in the desired pattern. |
4b3bfd0
to
d3d7d79
Compare
836ba80
to
b9df5b3
Compare
This is also a big change. I'd feel a lot more comfortable if we
|
The work for the first option is way too much, especially if you have such tests in place internally already. |
It possible to test SEL with QEMU's BMC sim. See http://www.linux-kvm.org/images/7/76/03x08-Juniper-Corey_Minyard-UsingIPMIinQEMU.ods.pdf |
* Move structures to structure.go * Move constants to constants.go * Remove unused fdset function * Abstract syscall implementation behind interface * Hide syscalls behind interface to improve testability * Add tests for ipmi Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
This PR is tained somehow. I have to reopen i guess. |
No description provided.