-
Notifications
You must be signed in to change notification settings - Fork 176
[9.0] (backport #8575) [ci] fix k8s integration tests flakiness #8624
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
Conversation
* feat: vendor all necessary test artifacts for kubernetes integration to minimise flakiness due to transient errors * fix: correct decode api key * fix: clear CA_TRUSTED env var for kustomize * fix: bump memory limits for kustomize * fix: fabricate paths leveraging filepath * fix: remove redundant file moving when downloading kube stack helm chart * feat: vendor expanded archives * fix: use filepath.Join * doc: update BuildDependencies godoc (cherry picked from commit 7259e54) # Conflicts: # NOTICE-fips.txt # NOTICE.txt # go.mod # testing/integration/k8s/journald_test.go
Cherry-pick of 7259e54 has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
This pull request has not been merged yet. Could you please review and merge it @pkoutsovasilis? 🙏 |
|
💛 Build succeeded, but was flaky
Failed CI StepsHistory
|
What does this PR do?
This PR introduces the following changes:
Vendor external Kubernetes artifacts for testing:
kustomize
configuration are vendored to remove the runtime dependency onkustomize
.To support this, a new
mage
target calledintegration:buildKubernetesTestData
was added. This target is now invoked as a prerequisite by:integration:testKubernetes
integration:testKubernetesMatrix
integration:testKubernetesSingle
This aims to prevent CI failures from GitHub/network issues and addresses #8319.
Fix decoding of Beats-style API Keys in K8s tests:
Fix
%CA_TRUSTED%
environment variable injection in Kustomize tests:ca_trusted_fingerprint
values caused by%CA_TRUSTED%
placeholders not being overridden.CA_TRUSTED
to an empty value in the relevant test environments to ensure expected TLS behavior.Increase memory limits for Elastic Agent in Kustomize-based tests:
OOMKilled
errors were observed (example 1, example 2).Why is it important?
Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
None expected. All changes are isolated to the Kubernetes integration test setup and do not affect runtime or user configurations.
How to test this PR locally
Related issues
This is an automatic backport of pull request #8575 done by [Mergify](https://mergify.com).