Skip to content

Commit

Permalink
[receiver/k8scluster] Fix e2e tests by limiting jobs/pods of cronjob …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
ChrsMark authored Nov 7, 2024
1 parent cd2970a commit 3458d51
Show file tree
Hide file tree
Showing 2 changed files with 262 additions and 391 deletions.
Loading

0 comments on commit 3458d51

Please sign in to comment.