-
Notifications
You must be signed in to change notification settings - Fork 197
[test] split up k8s integration tests #8484
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
[test] split up k8s integration tests #8484
Conversation
eae684f
to
b9d6713
Compare
💛 Build succeeded, but was flaky
Failed CI StepsHistory
|
b9d6713
to
6879538
Compare
6879538
to
d6b76a0
Compare
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
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 🚀
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.
Noice.
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, just a super nit comment with a super nit improvement 👼
@Mergifyio backport 8.17 8.18 8.19 9.0 |
✅ Backports have been created
|
* 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
* 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
* 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: # magefile.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
* 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: # 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
* [test] split up k8s integration tests (#8484) * 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 * fix: resolve conflicts * fix: remove irrelevant files * fix: update NOTICE.txt --------- Co-authored-by: Panos Koutsovasilis <[email protected]>
* [test] split up k8s integration tests (#8484) * 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: # 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 * fix: resolve conflicts * fix: go mod tidy --------- Co-authored-by: Panos Koutsovasilis <[email protected]>
* 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: # magefile.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
* [test] split up k8s integration tests (#8484) * 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: # magefile.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 * feat: move journald-input.yml * feat: remove journald-otel.yml --------- Co-authored-by: Panos Koutsovasilis <[email protected]>
* 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
* [test] split up k8s integration tests (#8484) * 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 * fix: resolve conflicts * fix: remove irrelevant files --------- Co-authored-by: Panos Koutsovasilis <[email protected]>
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