◐ Shell
clean mode source ↗

improve: metrics processing e2e test stability by csviri · Pull Request #3244 · operator-framework/java-operator-sdk

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.