-
Notifications
You must be signed in to change notification settings - Fork 185
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
ci: Shifting deploy and undeploy logic for IG to actions #2833
ci: Shifting deploy and undeploy logic for IG to actions #2833
Conversation
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.
Hi!
Thank you for working on this!
I am nonetheless not sure about the Makefile part, as we need to have Inspektor Gadget deployed before running the integration tests.
So, we should cope with this in this PR too.
Best regards.
I did some investigation and it seems this is coming from
Having said that we are using minikube |
I'm a bit lost. Is this only related to the "make minikube-deploy" target or also to the CI? I see we use in the CI |
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.
Just a minor nit. LGTM otherwise.
I think we can require Inspektor Gadget to be deployed before running
But again, IMO it's not worth it. |
I do not see the plus-value. By the way, the following also have to be updated:
|
Good old version mismatch! It seems the issue only happens on Docker Version: 25 and CI seem to be running Docker Version: 24. I also confirmed I am running Docker Version: 25+ on my machine! So CI isn't broken yet! |
We need this in order to implement tests for image-based gadgets like gadgets/trace_open/test/trace_open_test.go. In those ones we don't have a TestMain where we can put the logic to deploy Inspektor Gadget.
Are you really using this target in that way? I think the 99% of the times I use it I pass the |
This should be highlighted in the commit message.
Not that often, this is just for external users who may want to have something fully automatic. |
Signed-off-by: pawarpranav83 <pawar.pranav83@gmail.com>
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. I'll merge once the CI is green. Thanks for handling this.
Failing test is another instance of #2358, merging this. |
da1a1ac
into
inspektor-gadget:main
Shifting deploy and undeploy logic from
integration_test_kubectl_gadget.go
to.github/actions/run-integration-tests/action.yml
.This change is required since tests for image-based gadgets don't have a TestMain file.
Testing done
Passing of Integration Tests in the CI.