Skip to content

improve: metrics processing e2e test stability#3244

Merged
csviri merged 2 commits intooperator-framework:mainfrom
csviri:fix-metrics-e2e-webhook
Mar 19, 2026
Merged

improve: metrics processing e2e test stability#3244
csviri merged 2 commits intooperator-framework:mainfrom
csviri:fix-metrics-e2e-webhook

Conversation

@csviri
Copy link
Collaborator

@csviri csviri commented Mar 19, 2026

Signed-off-by: Attila Mészáros a_meszaros@apple.com

Copilot AI review requested due to automatic review settings March 19, 2026 09:01
@openshift-ci openshift-ci bot requested review from metacosm and xstefank March 19, 2026 09:01
@csviri csviri marked this pull request as draft March 19, 2026 09:02
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the stability of the metrics processing e2e tests by addressing race conditions that occur when creating OpenTelemetry Collector resources. The issue arises because the OpenTelemetry Operator's webhook may not be fully ready immediately after the deployment becomes available, causing custom resource creations to fail.

Changes:

  • Added a wait for the OpenTelemetry Operator deployment to be ready before proceeding with resource creation
  • Implemented retry logic (20 attempts with 5-second intervals) when creating the OpenTelemetry Collector to handle webhook startup delays
  • Enhanced status messaging to indicate retry attempts and webhook readiness issues

You can also share your feedback on Copilot code review. Take the survey.

csviri and others added 2 commits March 19, 2026 10:04
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@csviri csviri force-pushed the fix-metrics-e2e-webhook branch from 4850f6a to 492c233 Compare March 19, 2026 09:04
@csviri csviri marked this pull request as ready for review March 19, 2026 09:14
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 19, 2026
@csviri csviri linked an issue Mar 19, 2026 that may be closed by this pull request
@csviri
Copy link
Collaborator Author

csviri commented Mar 19, 2026

@metacosm @xstefank this seems stabilizes the end to end test. I've run it few times now.

@csviri csviri merged commit 1a07a04 into operator-framework:main Mar 19, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The metrics processing flaky E2E test because of OTel collector startup

3 participants