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

[k8scluster/receiver] Add more e2e test coverage #36114

Merged
merged 5 commits into from
Nov 5, 2024

Conversation

jvoravong
Copy link
Contributor

Description

  • Add more e2e test coverage for cronjob, hpa, job, and statefulset objects
  • Updated the golden file (expected.yaml) used for test validation
  • Added some test helpers to help create and delete multiple Kubernetes test objects
  • No .chloggen entry is needed for this PR because all the changes are for testing enhancements

Testing

  • Tested locally and in Github CI/CD

@jvoravong jvoravong marked this pull request as ready for review November 1, 2024 16:32
@jvoravong jvoravong requested a review from a team as a code owner November 1, 2024 16:32
@jvoravong
Copy link
Contributor Author

Can someone add a "Skip Changelog" label to this PR?

@TylerHelmuth TylerHelmuth added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Nov 1, 2024
@TylerHelmuth TylerHelmuth added the ready to merge Code review completed; ready to merge by maintainers label Nov 4, 2024
@TylerHelmuth TylerHelmuth merged commit 5a3892e into open-telemetry:main Nov 5, 2024
167 of 168 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 5, 2024
@jvoravong jvoravong deleted the OTL-2976-e2e-tests branch November 6, 2024 17:56
michael-burt pushed a commit to michael-burt/opentelemetry-collector-contrib that referenced this pull request Nov 7, 2024
#### Description
- Add more e2e test coverage for cronjob, hpa, job, and statefulset
objects
- Updated the golden file (expected.yaml) used for test validation
- Added some test helpers to help create and delete multiple Kubernetes
test objects
- No .chloggen entry is needed for this PR because all the changes are
for testing enhancements

<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Tested locally and in Github CI/CD

---------

Co-authored-by: Antoine Toulme <antoine@toulme.name>
Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
TylerHelmuth pushed a commit that referenced this pull request Nov 7, 2024
…to 1 (#36235)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Fixes what was described at
#35727 (comment).

After
#36114
the `k8scluster` receiver's e2e tests started showing some flakiness
([example](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/11701936581/job/32589392145)).

With this change we ensure that only 1 active job/pod of the cronjob
will be present for the whole lifetime of the test to avoid hitting
timing/scheduling related flakiness.

@bacherfl could you also take a look here?

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes 

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
pull bot pushed a commit to abaguas/opentelemetry-collector-contrib that referenced this pull request Nov 7, 2024
…to 1 (open-telemetry#36235)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Fixes what was described at
open-telemetry#35727 (comment).

After
open-telemetry#36114
the `k8scluster` receiver's e2e tests started showing some flakiness
([example](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/11701936581/job/32589392145)).

With this change we ensure that only 1 active job/pod of the cronjob
will be present for the whole lifetime of the test to avoid hitting
timing/scheduling related flakiness.

@bacherfl could you also take a look here?

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes 

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal/k8stest ready to merge Code review completed; ready to merge by maintainers receiver/k8scluster Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants