Skip to content

Fix flaky e2e tests in library reconciliation and gateway controller#2044

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-specified-code
Closed

Fix flaky e2e tests in library reconciliation and gateway controller#2044
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-specified-code

Conversation

Copilot AI commented Jun 29, 2026

Copy link
Copy Markdown

What type of PR is this?

  • Enhancement / New Feature
  • Bug Fix
  • Refactor
  • Optimization
  • Test
  • Documentation Update

What this PR does / why we need it:

Two e2e tests were producing intermittent failures due to race conditions and overly broad assertions.

  • library_reconcile_test.go — Wraps the ValidatingWebhookConfiguration drift mutation in an Eventually block. The background reconciler can update the webhook concurrently, causing a conflict error on cl.Update. Retrying resolves this without masking the actual drift-detection assertion that follows.
  • gateway_controller_test.go — Replaces CheckPodsReady(gatewayNamespace) (all pods) with a targeted readiness check on the curl-client pod by name. Gateway-provisioned pods that aren't part of the test scenario were causing spurious failures.

Which issue(s) this PR fixes:

Related Issue/PR #2038

Additional information:

@linux-foundation-easycla

linux-foundation-easycla Bot commented Jun 29, 2026

Copy link
Copy Markdown

CLA Not Signed

@istio-testing

Copy link
Copy Markdown
Collaborator

Hi @copilot. Thanks for your PR.

I'm waiting for a istio-ecosystem or istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copilot stopped work on behalf of fjglira due to an error June 29, 2026 11:05
Copilot AI requested a review from fjglira June 29, 2026 11:05
- Wrap ValidatingWebhookConfiguration drift mutation in Eventually to
  handle concurrent reconciler updates (conflict retries)
- Narrow gateway controller readiness check to curl-client pod only,
  avoiding unrelated pods causing spurious failures

Fixes #2038
Copilot AI changed the title [WIP] Fix code as per review comment Fix flaky e2e tests in library reconciliation and gateway controller Jun 29, 2026
@fjglira fjglira closed this Jun 29, 2026
@MaxBab MaxBab deleted the copilot/fix-specified-code branch June 29, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants