Skip to content
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

chore: update remaining CI pipelines to k8s v1.31.0 #41081

Merged
merged 10 commits into from
Oct 16, 2024

Conversation

mauri870
Copy link
Member

@mauri870 mauri870 commented Oct 2, 2024

Proposed commit message

This PR fixes some leftovers from #40856.

Related issues

@mauri870 mauri870 added cleanup Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Oct 2, 2024
@mauri870 mauri870 self-assigned this Oct 2, 2024
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Oct 2, 2024
@mauri870 mauri870 changed the title chore: update pipeline to k8s v1.31.0 chore: update remaining CI pipelines to k8s v1.31.0 Oct 2, 2024
Copy link
Contributor

mergify bot commented Oct 2, 2024

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @mauri870? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit

Copy link
Contributor

mergify bot commented Oct 2, 2024

backport-8.x has been added to help with the transition to the new branch 8.x.
If you don't need it please use backport-skip label and remove the backport-8.x label.

@mergify mergify bot added the backport-8.x Automated backport to the 8.x branch with mergify label Oct 2, 2024
@mauri870 mauri870 marked this pull request as ready for review October 2, 2024 16:20
@mauri870 mauri870 requested a review from a team as a code owner October 2, 2024 16:20
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@mauri870
Copy link
Member Author

mauri870 commented Oct 9, 2024

This is breaking k8s integration tests for some reason, looking at the build logs I can't spot any meaningful error messages. Leaving this as draft for now.

@mauri870 mauri870 marked this pull request as draft October 9, 2024 10:17
@mauri870
Copy link
Member Author

@elastic/obs-cloudnative-monitoring This PR is failing when running integration tests, but I can't spot any error messages in the logs. Any idea how I can go about debugging this? I can only spot a single error:

Error: failed modules: kubernetes

@gizas
Copy link
Contributor

gizas commented Oct 14, 2024

@mauri870 wondering if this has to do with the fact that you are trying to merge it 9.0 version and we still have some issues with the version of the packages.

For the troubleshooting I would advise to go to your local folder and :

cd metricbeat 
mage goIntegTest

See also here some more info for how to run go tests for metricbeat

Can you reproduce the issue locally?

@mauri870
Copy link
Member Author

Can you reproduce the issue locally?

Thanks! I tested this locally and it does not seem to fail for me. I pushed a debug log to test it on BK and I got the actual error:

Error: failed to run integration tests for module kubernetes:
1 error: kind setup failed: running "kind create cluster --name metricbeat-9-0-0-921fd909f7-snapshot --kubeconfig /opt/buildkite-agent/builds/bk-agent-prod-gcp-1729021037068466664/elastic/beats-metricbeat/metricbeat/build/kind/metricbeat-9-0-0-921fd909f7-snapshot/kubecfg --wait 300s --image kindest/node:v1.31.0" failed with exit code 126

https://buildkite.com/elastic/beats-metricbeat/builds/10481#019291a8-1c9d-4180-b768-80e832625d12/191-2135

Trying this command locally works just fine, I'm not sure what exact problem the builder is experiencing.

@mauri870 mauri870 marked this pull request as ready for review October 16, 2024 12:41
@mauri870 mauri870 requested a review from a team as a code owner October 16, 2024 12:41
@mauri870
Copy link
Member Author

@gizas Turns out something broke between kind v0.20.0 and v0.24.0 that is causing failures in BK.

@mauri870
Copy link
Member Author

Raised #41257 so we can look into the failure in a separate issue.

@mauri870 mauri870 enabled auto-merge (squash) October 16, 2024 13:28
@mauri870
Copy link
Member Author

Enabled auto-merge.

@mauri870 mauri870 merged commit 839733f into elastic:main Oct 16, 2024
148 checks passed
mergify bot pushed a commit that referenced this pull request Oct 16, 2024
* chore: update pipeline to k8s v1.31.0

* print error to debug test failures

(cherry picked from commit 839733f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.x Automated backport to the 8.x branch with mergify cleanup Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants