-
Notifications
You must be signed in to change notification settings - Fork 1k
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
govmm: Use it from our own repo #3496
govmm: Use it from our own repo #3496
Conversation
Let's stop using govmm from kata-containers/govmm and let's start using it from our own repo. Fixes: kata-containers#3495 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
govmm, from now on, should follow the same guidelines from contributing, copying, and etc as kata-containers does. The go.mod is not needed anymore as the project lives inside the runtime. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
govet checks have been ignored on govmm repo, but those are enabled on kata-containers one. So, in order to avoid failing our CIs let's just keep ignoring the checks for the govmm structs and have an issue opened for fixing it whenever someone has cycles to do it. The important bit here is, we're not making anything worse that it already is. :-) Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
Both projects follow the same license, Apache-2.0, but the header saying that comes from govmm is different from the one expected for the tests present on the kata-containers repo. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
/test |
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 @fidencio
@Jakob-Naucke, It seems we didn't have the tests running against s390x on GoVMM before and that's the reason the issue I'm facing here was never ever caught. :-)
EDITED: #3500 |
/test-s390x |
If we can make it pass on s390x, we are good to call |
1fcc14a
to
4d0bb58
Compare
/test-s390x |
4d0bb58
to
24fc84e
Compare
/test-s390x |
/test |
24fc84e
to
2eed94e
Compare
/test-s390x |
2eed94e
to
c482a1e
Compare
/retest-s390x |
c482a1e
to
53787d8
Compare
/retest-s390x |
For now a bunch of tests are simply not working. Let's skip them all, and re-enable them once kata-containers/issues/3500 gets fixed. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
53787d8
to
5ce9011
Compare
/test |
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!
@fidencio s390 seems to be still failing. |
/retest-s390x |
Yep, but the last failures were the "normal" processes being left behind, rather than something specific to GoVMM. |
clh-crio:
|
@Jakob-Naucke, s390x is constantly failing with:
That's not related to this PR and I will go ahead as soon as the clh-crio CI passes to unblock things here. |
@@ -250,6 +239,7 @@ const ( | |||
) | |||
|
|||
// Object is a qemu object representation. | |||
// nolint: govet |
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.
@fidencio By the way, do we need to deal with the problem that arises here, i.e. field alignment?
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.
At some point we may need to, indeed.
One thing to keep in mind is that this specific check was never ever made on GoVMM repo. The reason we see this failure on our repo is because we, however, do check for that.
So, right now, we're not making anything worse, we're just using GoVMM as we've always been using it, without any change.
I also mentioned this in the commit itself:
govmm: Ignore govet checks, at least for now
govet checks have been ignored on govmm repo, but those are enabled on
kata-containers one. So, in order to avoid failing our CIs let's just
keep ignoring the checks for the govmm structs and have an issue opened
for fixing it whenever someone has cycles to do it.
The important bit here is, we're not making anything worse that it
already is. :-)
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
Did I answer your question, @Bevisy?
Also, pleasel if that's something you'd be willing to work on, feel free to jump on it! With the caveat that with the transition to the rust shim, GoVMM may become ... dead, in the near future.
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.
Thank you for your reply, I know what I need to do next 😄
Our e2e's use either waitForProcess() or `kubectl wait` for waiting resources on the test cluster. Both rely on timeouts, being the later set to 30s by default and the former requires the user to pass wait_time and sleep_time parameters. Some tests leave the defaults, others set a value, and a bunch relies on $timeout (variable defined in .ci/lib.sh). It isn't uncommon to see tests failing on CI because they hit a timeout. This changed all the tests to use a mininum of 90s (current value of $timeout) on wait operatios, with the hope those fails will become really rare. Fixes kata-containers#3496 Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com> (cherry picked from commit 66c96a3)
On #3468 we brought the
govmm
project into our own repo, now it's time to use it.We also need to ensure CI is correctly passing and in order to do so I've:
//nolint
to the code, as those were not being checked as part of the GoVMM repo