-
Notifications
You must be signed in to change notification settings - Fork 197
[8.17] (backport #8484) [test] split up k8s integration tests #8546
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* feat: split up k8s integration test in testing/integration/k8s package * feat: remove the need of a kubernetes build tag * feat: expand k8s integration step on failure (cherry picked from commit dd52e90) # Conflicts: # docs/test-framework-dev-guide.md # go.mod # magefile.go # testing/integration/beat_receivers_test.go # testing/integration/k8s/journald_test.go # testing/integration/k8s/kubernetes_agent_standalone_test.go # testing/integration/k8s/testdata/journald-input.yml # testing/integration/k8s/testdata/journald-otel.yml # testing/integration/otel_test.go
Cherry-pick of dd52e90 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 |
8 tasks
|
💚 Build Succeeded
History
|
pkoutsovasilis
approved these changes
Jun 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
testing/integration/k8s
package.kubernetes
build tag; Kubernetes tests are now always compiled as part of the normalintegration
tag.TestMain
entrypoint in the new package, enabling centralized setup logic.integration:TestKubernetes
(formerlyintegration:Kubernetes
)integration:TestKubernetesMatrix
(formerlyintegration:KubernetesMatrix
)integration:TestKubernetesSingle
(formerlyintegration:KubernetesSingle
)journald_test.go
,kubernetes_agent_service_test.go
,kubernetes_agent_standalone_test.go
,otel_helm_test.go
, and their respective testdata).Why is it important?
This PR continues the ongoing effort of modularizing the ever-growing
integration
package as part of #8087. Specifically, it addresses the Kubernetes test split described in #8412.Having Kubernetes tests in a dedicated package offers multiple benefits:
TestMain
, we unlock further future improvements for developer velocity:Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
No user-facing disruption; internal test structure change only.
How to test this PR locally
Related issues
This is an automatic backport of pull request [test] split up k8s integration tests #8484 done by Mergify.