-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix cronjob version in manifest used for tests #30733
Conversation
Signed-off-by: chrismark <[email protected]>
This pull request does not have a backport label. Could you fix it @ChrsMark? 🙏
NOTE: |
@mdelapenya any ideas here about how we can get more about the failure? Running |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
Hey @ChrsMark I was able to reproduce it locally: Commands:
Output:
This seems the error:
|
If you take a look at the logs, the kind version uses |
@mdelapenya thanks for taking the time to check this. I was about to note this to you. What is weird is that based on https://github.com/elastic/beats/pull/30732/files#diff-cca0972262451be53fcc0836d303fdfe24e6e04fedef3a1e9741c1941d80aa1cR21 we shouldn't test against (Master seems to be updated also) My local run passes giving me:
|
Signed-off-by: chrismark <[email protected]>
Looking into the code ( beats/dev-tools/mage/kubernetes/kind.go Line 99 in a92e38f
K8S_VERSION env variable is not present.
I wonder if we can get those verbose output by the run of CI, it would help. |
Signed-off-by: chrismark <[email protected]>
If you configure the env variable Though, I don't know if that's what you mean and what's the implications in terms of debugging, as it might contain massive logs |
Signed-off-by: chrismark <[email protected]>
Looking into the verbose logs I find Line 305 in c058122
|
Signed-off-by: chrismark <[email protected]>
@ChrsMark, this is a bit complex to explain but in a nutshell: k8s specific tests in the CI are defined in beats/deploy/kubernetes/Jenkinsfile.yml Lines 20 to 22 in 2107f58
That's the reason
So far the existing CI pipeline only configures the kind/k8s when there are changes in:
If it's needed to run for the stage Could you add the env variable to the build system itself? |
Signed-off-by: chrismark <[email protected]>
Thanks for the explanation @v1v . We can handle the absence of beats/dev-tools/mage/kubernetes/kind.go Line 100 in 0e973f3
I wonder how beats/metricbeat/Jenkinsfile.yml Lines 27 to 30 in 2107f58
|
As far as I know both beats/deploy/kubernetes/Jenkinsfile.yml Lines 20 to 22 in 2107f58
There are no installed while using beats/metricbeat/Jenkinsfile.yml Lines 27 to 30 in 2107f58
mage: is a generic step and does nothing but configuring the Go/Mage/Environments.
To clarify this, the existing pipeline was refactored (with the |
It seems that beats/dev-tools/mage/kubernetes/kind.go Line 63 in 0e973f3
beats/metricbeat/Jenkinsfile.yml Lines 27 to 30 in 2107f58
Would it be possible to provide a way to define both k8s and kind version while running this goIntegTest step?
|
Signed-off-by: chrismark <[email protected]>
Signed-off-by: chrismark <[email protected]>
As we can see at https://beats-ci.elastic.co/blue/organizations/jenkins/Beats%2Fbeats/detail/PR-30733/8/pipeline/8526#step-16121-log-1 the k8s module tests are passing when run under |
Signed-off-by: chrismark <[email protected]>
Will rebase on top of #30747 and hopefully it will go green. |
Signed-off-by: chrismark <[email protected]>
/test |
@ChrsMark and @mdelapenya , much better now:
You don't need to rebase anything since the builds in the CI are already doing that as part of the build itself. |
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
Thanks @v1v @mdelapenya for helping with this! Merging. |
What does this PR do?
Reopening #30685
Why is it important?
Cronjob
objects have been move frombatch/v1beta1
API tobatch/v1
API of k8s afterv1.21+
. In this regard we need to update the spec used for our tests accordingly.