Skip to content

[No-Jira / WIP] Improve Data Grid operator E2E test cleanup for CI reliability#16157

Open
cajieh wants to merge 1 commit intoopenshift:mainfrom
cajieh:fix-flaky-data-grid-operator-test
Open

[No-Jira / WIP] Improve Data Grid operator E2E test cleanup for CI reliability#16157
cajieh wants to merge 1 commit intoopenshift:mainfrom
cajieh:fix-flaky-data-grid-operator-test

Conversation

@cajieh
Copy link
Contributor

@cajieh cajieh commented Mar 17, 2026

Might consider this additional change once PR - OCPBUGS-78534: Make E2E test create helper idempotent and improve test cleanup merges. 🤞

Add cleanup helpers to both global and single-namespace Data Grid operator installation tests. This addresses flaky test failures caused by leftover resources from previous test runs.

Changes:

  • Add cleanupOperatorResources() helper to delete Subscriptions, CSVs, and InstallPlans with --ignore-not-found --wait=false flags
  • Call cleanup before operator installation to handle dirty state
  • Add after() hook to global install test for consistent teardown
  • Add cleanup to single-namespace test's after() hook

This follows the same pattern used in the deprecated-operator-warnings test fix (PR #16148) and improves test reliability in CI environments.

Add cleanup helpers to both global and single-namespace Data Grid
operator installation tests. This addresses flaky test failures
caused by leftover resources from previous test runs.

Changes:
- Add cleanupOperatorResources() helper to delete Subscriptions, CSVs,
  and InstallPlans with --ignore-not-found --wait=false flags
- Call cleanup before operator installation to handle dirty state
- Add after() hook to global install test for consistent teardown
- Add cleanup to single-namespace test's after() hook

This follows the same pattern used in the deprecated-operator-warnings
test fix (PR openshift#16148) and improves test reliability in CI environments.

Made-with: Cursor
@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 17, 2026
@openshift-ci openshift-ci bot requested review from Leo6Leo and spadgett March 17, 2026 00:30
@openshift-ci openshift-ci bot added the component/olm Related to OLM label Mar 17, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 17, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cajieh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 17, 2026
@cajieh cajieh changed the title [WIP] Improve Data Grid operator E2E test cleanup for CI reliability [No-Jira / WIP] Improve Data Grid operator E2E test cleanup for CI reliability Mar 17, 2026
@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 17, 2026
@cajieh
Copy link
Contributor Author

cajieh commented Mar 17, 2026

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 17, 2026

@cajieh: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/olm Related to OLM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant