Skip to content

Conversation

@camilamacedo86
Copy link
Contributor

@camilamacedo86 camilamacedo86 commented Oct 22, 2025

This change ensures each test scenario has unique resources, preventing
name clashes even when cleanup takes longer than expected. Also, we are improving the cleanups and waits to avoid flakes.

Local tests

 [sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace] OLMv1 operator installation support for ownNamespace and single namespace watch mode with operator should install cluster extensions successfully in both watch modes [original-name:[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected][Serial] OLMv1 operator installation support for ownNamespace and single namespace watch mode with quay-operator should install cluster extensions successfully in both watch modes]
  /Users/camilam/go/src/github/operator-framework-operator-controller/openshift/tests-extension/test/olmv1-singleownnamespace.go:304
    STEP: checking if OpenShift is available for tests @ 10/22/25 20:52:29.42
  [INFO] Image-registry is available with 2 pod(s) running  STEP: using singleown operator image: quay.io/olmtest/webhook-operator:v0.0.5 @ 10/22/25 20:52:29.685
    STEP: building singleown operator assets for singleNamespace watch mode scenario: image=quay.io/olmtest/webhook-operator:v0.0.5, CRD suffix=mbwb, package=singleown-operator-both-mbwb @ 10/22/25 20:52:29.685
    STEP: setting a unique value: "95wgthrp" @ 10/22/25 20:52:29.812
    STEP: creating a new Namespace @ 10/22/25 20:52:29.812
    STEP: waiting for builder serviceaccount in install-test-ns-95wgthrp @ 10/22/25 20:52:29.937
    STEP: waiting for deployer serviceaccount in install-test-ns-95wgthrp @ 10/22/25 20:52:30.059
    STEP: applying image-puller RoleBinding @ 10/22/25 20:52:30.183
    STEP: creating the operator BuildConfig @ 10/22/25 20:52:30.316
    STEP: creating the operator ImageStream @ 10/22/25 20:52:30.454
    STEP: creating the operator tarball @ 10/22/25 20:52:30.58
    STEP: created operator tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-1191777929.tar" @ 10/22/25 20:52:30.584
    STEP: starting the operator build via RAW URL @ 10/22/25 20:52:30.584
    STEP: waiting for the build "install-test-op-95wgthrp-1" to finish @ 10/22/25 20:52:33.934
    STEP: creating the catalog BuildConfig @ 10/22/25 20:52:46.569
    STEP: creating the catalog ImageStream @ 10/22/25 20:52:46.711
    STEP: creating the catalog tarball @ 10/22/25 20:52:46.84
    STEP: created catalog tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-2752848926.tar" @ 10/22/25 20:52:46.842
    STEP: starting the catalog build via RAW URL @ 10/22/25 20:52:46.842
    STEP: waiting for the build "install-test-cc-95wgthrp-1" to finish @ 10/22/25 20:52:50.091
    STEP: creating the ClusterCatalog @ 10/22/25 20:52:59.598
    STEP: singleown bundle "install-test-op-95wgthrp" and catalog "install-test-cc-95wgthrp" built successfully in namespace "install-test-ns-95wgthrp" for singleNamespace watch mode scenario @ 10/22/25 20:53:02.99
    STEP: ensuring no ClusterExtension for singleown-operator-both-mbwb before singleNamespace watch mode scenario @ 10/22/25 20:53:02.991
    STEP: creating namespace olmv1-webhook-bothns-singlens-n7jr for singleNamespace watch mode tests @ 10/22/25 20:53:03.24
    STEP: creating namespace olmv1-webhook-bothns-singlens-n7jr-watch for watch namespace in singleNamespace watch mode scenario @ 10/22/25 20:53:03.376
    STEP: creating ServiceAccount install-webhook-bothns-singlens-sa-n7jr for singleNamespace watch mode scenario @ 10/22/25 20:53:03.506
    STEP: creating ClusterRoleBinding install-webhook-bothns-singlens-crb-n7jr for singleNamespace watch mode scenario @ 10/22/25 20:53:03.745
    STEP: creating ClusterExtension install-webhook-bothns-singlens-ce-n7jr for singleNamespace watch mode scenario @ 10/22/25 20:53:03.984
    STEP: waiting for the ClusterExtension install-webhook-bothns-singlens-ce-n7jr to be installed for singleNamespace watch mode scenario @ 10/22/25 20:53:04.118
    STEP: verifying the operator deployment watch scope annotation for singleNamespace watch mode scenario @ 10/22/25 20:53:07.37
    STEP: cleaning up resources created for singleNamespace watch mode scenario to allow next scenario @ 10/22/25 20:53:07.497
    STEP: deleting ClusterExtension install-webhook-bothns-singlens-ce-n7jr (package: singleown-operator-both-mbwb) @ 10/22/25 20:53:07.782
    STEP: waiting for namespace olmv1-webhook-bothns-singlens-n7jr to be fully deleted before next scenario @ 10/22/25 20:53:11.883
    STEP: waiting for namespace olmv1-webhook-bothns-singlens-n7jr-watch to be fully deleted before next scenario @ 10/22/25 20:53:21.379
    STEP: building singleown operator assets for ownNamespace watch mode scenario: image=quay.io/olmtest/webhook-operator:v0.0.5, CRD suffix=slkd, package=singleown-operator-both-slkd @ 10/22/25 20:53:21.499
    STEP: setting a unique value: "h2srppk8" @ 10/22/25 20:53:21.627
    STEP: creating a new Namespace @ 10/22/25 20:53:21.627
    STEP: waiting for builder serviceaccount in install-test-ns-h2srppk8 @ 10/22/25 20:53:21.761
    STEP: waiting for deployer serviceaccount in install-test-ns-h2srppk8 @ 10/22/25 20:53:21.879
    STEP: applying image-puller RoleBinding @ 10/22/25 20:53:22
    STEP: creating the operator BuildConfig @ 10/22/25 20:53:22.137
    STEP: creating the operator ImageStream @ 10/22/25 20:53:22.273
    STEP: creating the operator tarball @ 10/22/25 20:53:22.407
    STEP: created operator tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3517729167.tar" @ 10/22/25 20:53:22.411
    STEP: starting the operator build via RAW URL @ 10/22/25 20:53:22.411
    STEP: waiting for the build "install-test-op-h2srppk8-1" to finish @ 10/22/25 20:53:25.377
    STEP: creating the catalog BuildConfig @ 10/22/25 20:53:38.008
    STEP: creating the catalog ImageStream @ 10/22/25 20:53:38.143
    STEP: creating the catalog tarball @ 10/22/25 20:53:38.271
    STEP: created catalog tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3767044919.tar" @ 10/22/25 20:53:38.273
    STEP: starting the catalog build via RAW URL @ 10/22/25 20:53:38.273
    STEP: waiting for the build "install-test-cc-h2srppk8-1" to finish @ 10/22/25 20:53:41.536
    STEP: creating the ClusterCatalog @ 10/22/25 20:53:51.056
    STEP: singleown bundle "install-test-op-h2srppk8" and catalog "install-test-cc-h2srppk8" built successfully in namespace "install-test-ns-h2srppk8" for ownNamespace watch mode scenario @ 10/22/25 20:53:54.428
    STEP: ensuring no ClusterExtension for singleown-operator-both-slkd before ownNamespace watch mode scenario @ 10/22/25 20:53:54.428
    STEP: creating namespace olmv1-webhook-bothns-ownns-sg9b for ownNamespace watch mode tests @ 10/22/25 20:53:54.689
    STEP: creating ServiceAccount install-webhook-bothns-ownns-sa-sg9b for ownNamespace watch mode scenario @ 10/22/25 20:53:54.82
    STEP: creating ClusterRoleBinding install-webhook-bothns-ownns-crb-sg9b for ownNamespace watch mode scenario @ 10/22/25 20:53:55.07
    STEP: creating ClusterExtension install-webhook-bothns-ownns-ce-sg9b for ownNamespace watch mode scenario @ 10/22/25 20:53:55.327
    STEP: waiting for the ClusterExtension install-webhook-bothns-ownns-ce-sg9b to be installed for ownNamespace watch mode scenario @ 10/22/25 20:53:55.456
    STEP: verifying the operator deployment watch scope annotation for ownNamespace watch mode scenario @ 10/22/25 20:53:58.705
    STEP: cleaning up resources created for ownNamespace watch mode scenario to allow next scenario @ 10/22/25 20:53:58.83
    STEP: deleting ClusterExtension install-webhook-bothns-ownns-ce-sg9b (package: singleown-operator-both-slkd) @ 10/22/25 20:53:59.11
    STEP: waiting for namespace olmv1-webhook-bothns-ownns-sg9b to be fully deleted before next scenario @ 10/22/25 20:54:03.064
    STEP: cleanup: deleting ClusterExtension install-webhook-bothns-ownns-ce-sg9b @ 10/22/25 20:54:12.538
    STEP: cleanup: deleting ClusterRoleBinding install-webhook-bothns-ownns-crb-sg9b @ 10/22/25 20:54:12.783
    STEP: cleanup: deleting ServiceAccount install-webhook-bothns-ownns-sa-sg9b in namespace olmv1-webhook-bothns-ownns-sg9b @ 10/22/25 20:54:12.902
    STEP: cleanup: deleting install namespace olmv1-webhook-bothns-ownns-sg9b @ 10/22/25 20:54:13.023
    STEP: deleting ClusterCatalog "install-test-cc-h2srppk8" @ 10/22/25 20:54:13.147
    STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3767044919.tar" @ 10/22/25 20:54:13.286
    STEP: deleting ImageStream "install-test-cc-h2srppk8" @ 10/22/25 20:54:13.287
    STEP: deleting BuildConfig "install-test-cc-h2srppk8" @ 10/22/25 20:54:13.427
    STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3517729167.tar" @ 10/22/25 20:54:13.563
    STEP: deleting ImageStream "install-test-op-h2srppk8" @ 10/22/25 20:54:13.564
    STEP: deleting BuildConfig "install-test-op-h2srppk8" @ 10/22/25 20:54:13.696
    STEP: deleting image-puller RoleBinding "install-test-rb-h2srppk8" @ 10/22/25 20:54:13.825
    STEP: deleting Namespace "install-test-ns-h2srppk8" @ 10/22/25 20:54:13.956
    STEP: cleanup: deleting ClusterExtension install-webhook-bothns-singlens-ce-n7jr @ 10/22/25 20:54:14.089
    STEP: cleanup: deleting ClusterRoleBinding install-webhook-bothns-singlens-crb-n7jr @ 10/22/25 20:54:14.336
    STEP: cleanup: deleting ServiceAccount install-webhook-bothns-singlens-sa-n7jr in namespace olmv1-webhook-bothns-singlens-n7jr @ 10/22/25 20:54:14.456
    STEP: cleanup: deleting watch namespace olmv1-webhook-bothns-singlens-n7jr-watch @ 10/22/25 20:54:14.577
    STEP: cleanup: deleting install namespace olmv1-webhook-bothns-singlens-n7jr @ 10/22/25 20:54:14.7
    STEP: deleting ClusterCatalog "install-test-cc-95wgthrp" @ 10/22/25 20:54:14.822
    STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-2752848926.tar" @ 10/22/25 20:54:14.959
    STEP: deleting ImageStream "install-test-cc-95wgthrp" @ 10/22/25 20:54:14.959
    STEP: deleting BuildConfig "install-test-cc-95wgthrp" @ 10/22/25 20:54:15.088
    STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-1191777929.tar" @ 10/22/25 20:54:15.233
    STEP: deleting ImageStream "install-test-op-95wgthrp" @ 10/22/25 20:54:15.235
    STEP: deleting BuildConfig "install-test-op-95wgthrp" @ 10/22/25 20:54:15.371
    STEP: deleting image-puller RoleBinding "install-test-rb-95wgthrp" @ 10/22/25 20:54:15.492
    STEP: deleting Namespace "install-test-ns-95wgthrp" @ 10/22/25 20:54:15.618
  • [106.333 seconds]
  ------------------------------

  Ran 1 of 1 Specs in 106.334 seconds
  SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
  Running Suite:  - /Users/camilam/go/src/github/operator-framework-operator-controller/openshift/tests-extension
  ===============================================================================================================
  Random Seed: 1761162544 - will randomize all specs

** Aggregations **

Co-Author: @kuiwang02

@openshift-ci openshift-ci bot requested review from perdasilva and tmshort October 22, 2025 09:18
@camilamacedo86 camilamacedo86 changed the title Fix flake for single/own ns tests by ensuring uniquess and not waiting for k8s cleanups OCPBUGS-63347: Fix flake for single/own ns tests by ensuring uniquess and not waiting for k8s cleanups Oct 22, 2025
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Oct 22, 2025
@openshift-ci-robot
Copy link

@camilamacedo86: This pull request references Jira Issue OCPBUGS-63347, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.21.0) matches configured target version for branch (4.21.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (jiazha@redhat.com), skipping review request.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

  • Keeps the singleNamespace and ownNamespace checks in one It, but gives each scenario its own bundle/catalog build, package, and CRD suffix so they never clash—even when cleanup lingers.
  • Deletes ClusterExtensions/CRDs on a best-effort basis during deferred cleanup: we log what we tried, but we no longer fail the test if Kubernetes needs extra time.

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 openshift-eng/jira-lifecycle-plugin repository.

@camilamacedo86
Copy link
Contributor Author

/payload-aggregate periodic-ci-openshift-release-master-nightly-4.21-e2e-azure-ovn-runc-techpreview 10

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 22, 2025

@camilamacedo86: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.21-e2e-azure-ovn-runc-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/0da7b520-af29-11f0-8292-1b57e8686926-0

@openshift-ci-robot
Copy link

@camilamacedo86: This pull request references Jira Issue OCPBUGS-63347, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.21.0) matches configured target version for branch (4.21.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (jiazha@redhat.com), skipping review request.

In response to this:

PR Description

This PR improves how our tests handle cleanup and timeout scenarios.

➜ This ensures uniqueness and prevents resource name clashes, even when cleanup takes longer than expected. So that we do not wait for cleanups.
➜ Uses defearCleanup but do not fail the test if Kubernetes needs extra time to remove resources.

These changes address flaky behavior seen in CI runs like this one: https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.21-e2e-azure-ovn-runc-techpreview/1980106371709800448

In some cases, Kubernetes takes longer than expected to finish cleanup. Tests should not fail due to such delays.
Because these tests run on all pre-merge jobs across the org — and their results feed into Sippy — false failures can block other teams from merging. With this change, we now only fail tests when there’s an actual component failure, not when the delay is due to normal cluster behavior.

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 openshift-eng/jira-lifecycle-plugin repository.

@camilamacedo86 camilamacedo86 changed the title OCPBUGS-63347: Fix flake for single/own ns tests by ensuring uniquess and not waiting for k8s cleanups WIP: OCPBUGS-63347: Fix flake for single/own ns tests by ensuring uniquess and not waiting for k8s cleanups Oct 22, 2025
@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 Oct 22, 2025
@openshift-ci-robot
Copy link

@camilamacedo86: This pull request references Jira Issue OCPBUGS-63347, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.21.0) matches configured target version for branch (4.21.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (jiazha@redhat.com), skipping review request.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

This change ensures each test scenario has unique resources, preventing
name clashes even when cleanup takes longer than expected. We now use
DeferCleanup but no longer fail tests if Kubernetes takes extra time
to remove resources.

These adjustments are to address flaky failures like:
https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.21-e2e-azure-ovn-runc-techpreview/1980106371709800448

Kubernetes cleanup can be slow at times, and tests shouldn’t fail just
because cleanup isn’t done yet. Since these tests run on all pre-merge
jobs across the org and feed into Sippy, avoiding false failures helps
prevent blocking other teams’ merges.

Local Test

 [sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace] OLMv1 operator installation support for ownNamespace and single namespace watch mode with operator should install cluster extensions successfully in both watch modes [original-name:[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected][Serial] OLMv1 operator installation support for ownNamespace and single namespace watch mode with quay-operator should install cluster extensions successfully in both watch modes]
 /Users/camilam/go/src/github/operator-framework-operator-controller/openshift/tests-extension/test/olmv1-singleownnamespace.go:328
   STEP: checking if OpenShift is available for tests @ 10/22/25 19:44:05.397
 [INFO] Image-registry is available with 2 pod(s) running  STEP: using singleown operator image: quay.io/olmtest/webhook-operator:v0.0.5, CRD suffix: znc5, package: singleown-operator-both-znc5 @ 10/22/25 19:44:05.652
   STEP: setting a unique value: "kbzqjwm4" @ 10/22/25 19:44:05.774
   STEP: creating a new Namespace @ 10/22/25 19:44:05.774
   STEP: waiting for builder serviceaccount in install-test-ns-kbzqjwm4 @ 10/22/25 19:44:05.901
   STEP: waiting for deployer serviceaccount in install-test-ns-kbzqjwm4 @ 10/22/25 19:44:06.025
   STEP: applying image-puller RoleBinding @ 10/22/25 19:44:06.146
   STEP: creating the operator BuildConfig @ 10/22/25 19:44:06.274
   STEP: creating the operator ImageStream @ 10/22/25 19:44:06.411
   STEP: creating the operator tarball @ 10/22/25 19:44:06.537
   STEP: created operator tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-2028458211.tar" @ 10/22/25 19:44:06.54
   STEP: starting the operator build via RAW URL @ 10/22/25 19:44:06.54
   STEP: waiting for the build "install-test-op-kbzqjwm4-1" to finish @ 10/22/25 19:44:10.094
   STEP: creating the catalog BuildConfig @ 10/22/25 19:44:24.875
   STEP: creating the catalog ImageStream @ 10/22/25 19:44:25.009
   STEP: creating the catalog tarball @ 10/22/25 19:44:25.14
   STEP: created catalog tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-2987544806.tar" @ 10/22/25 19:44:25.141
   STEP: starting the catalog build via RAW URL @ 10/22/25 19:44:25.141
   STEP: waiting for the build "install-test-cc-kbzqjwm4-1" to finish @ 10/22/25 19:44:28.243
   STEP: creating the ClusterCatalog @ 10/22/25 19:44:38.666
   STEP: singleown bundle "install-test-op-kbzqjwm4" and catalog "install-test-cc-kbzqjwm4" built successfully in namespace "install-test-ns-kbzqjwm4" @ 10/22/25 19:44:40.135
   STEP: ensuring no ClusterExtension for singleown-operator-both-znc5 before singleNamespace watch mode scenario @ 10/22/25 19:44:40.135
   STEP: creating namespace olmv1-webhook-bothns-singlens-scz8 for singleNamespace watch mode tests @ 10/22/25 19:44:40.385
   STEP: creating namespace olmv1-webhook-bothns-singlens-scz8-watch for watch namespace in singleNamespace watch mode scenario @ 10/22/25 19:44:40.519
   STEP: creating ServiceAccount install-webhook-bothns-singlens-sa-scz8 for singleNamespace watch mode scenario @ 10/22/25 19:44:40.652
   STEP: creating ClusterRoleBinding install-webhook-bothns-singlens-crb-scz8 for singleNamespace watch mode scenario @ 10/22/25 19:44:40.918
   STEP: creating ClusterExtension install-webhook-bothns-singlens-ce-scz8 for singleNamespace watch mode scenario @ 10/22/25 19:44:41.175
   STEP: waiting for the ClusterExtension install-webhook-bothns-singlens-ce-scz8 to be installed for singleNamespace watch mode scenario @ 10/22/25 19:44:41.307
   STEP: verifying the operator deployment watch scope annotation for singleNamespace watch mode scenario @ 10/22/25 19:44:43.681
   STEP: cleaning up resources created for singleNamespace watch mode scenario to allow next scenario @ 10/22/25 19:44:43.809
   STEP: deleting ClusterExtension install-webhook-bothns-singlens-ce-scz8 (package: singleown-operator-both-znc5) @ 10/22/25 19:44:44.082
   STEP: ensuring no ClusterExtension for singleown-operator-both-znc5 before ownNamespace watch mode scenario @ 10/22/25 19:44:49.388
   STEP: creating namespace olmv1-webhook-bothns-ownns-rj8k for ownNamespace watch mode tests @ 10/22/25 19:44:49.636
   STEP: creating ServiceAccount install-webhook-bothns-ownns-sa-rj8k for ownNamespace watch mode scenario @ 10/22/25 19:44:49.762
   STEP: creating ClusterRoleBinding install-webhook-bothns-ownns-crb-rj8k for ownNamespace watch mode scenario @ 10/22/25 19:44:50.011
   STEP: creating ClusterExtension install-webhook-bothns-ownns-ce-rj8k for ownNamespace watch mode scenario @ 10/22/25 19:44:50.271
   STEP: waiting for the ClusterExtension install-webhook-bothns-ownns-ce-rj8k to be installed for ownNamespace watch mode scenario @ 10/22/25 19:44:50.405
   STEP: verifying the operator deployment watch scope annotation for ownNamespace watch mode scenario @ 10/22/25 19:44:52.784
   STEP: cleaning up resources created for ownNamespace watch mode scenario to allow next scenario @ 10/22/25 19:44:52.918
   STEP: deleting ClusterExtension install-webhook-bothns-ownns-ce-rj8k (package: singleown-operator-both-znc5) @ 10/22/25 19:44:53.342
   STEP: cleanup: deleting ClusterExtension install-webhook-bothns-ownns-ce-rj8k @ 10/22/25 19:44:56.344
   STEP: cleanup: deleting ClusterRoleBinding install-webhook-bothns-ownns-crb-rj8k @ 10/22/25 19:44:56.469
   STEP: cleanup: deleting ServiceAccount install-webhook-bothns-ownns-sa-rj8k in namespace olmv1-webhook-bothns-ownns-rj8k @ 10/22/25 19:44:56.602
   STEP: cleanup: deleting install namespace olmv1-webhook-bothns-ownns-rj8k @ 10/22/25 19:44:56.731
   STEP: cleanup: deleting ClusterExtension install-webhook-bothns-singlens-ce-scz8 @ 10/22/25 19:44:56.852
   STEP: cleanup: deleting ClusterRoleBinding install-webhook-bothns-singlens-crb-scz8 @ 10/22/25 19:44:56.983
   STEP: cleanup: deleting ServiceAccount install-webhook-bothns-singlens-sa-scz8 in namespace olmv1-webhook-bothns-singlens-scz8 @ 10/22/25 19:44:57.109
   STEP: cleanup: deleting watch namespace olmv1-webhook-bothns-singlens-scz8-watch @ 10/22/25 19:44:57.242
   STEP: cleanup: deleting install namespace olmv1-webhook-bothns-singlens-scz8 @ 10/22/25 19:44:57.368
   STEP: deleting ClusterCatalog "install-test-cc-kbzqjwm4" @ 10/22/25 19:44:57.496
   STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-2987544806.tar" @ 10/22/25 19:44:57.633
   STEP: deleting ImageStream "install-test-cc-kbzqjwm4" @ 10/22/25 19:44:57.634
   STEP: deleting BuildConfig "install-test-cc-kbzqjwm4" @ 10/22/25 19:44:57.769
   STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-2028458211.tar" @ 10/22/25 19:44:57.91
   STEP: deleting ImageStream "install-test-op-kbzqjwm4" @ 10/22/25 19:44:57.911
   STEP: deleting BuildConfig "install-test-op-kbzqjwm4" @ 10/22/25 19:44:58.047
   STEP: deleting image-puller RoleBinding "install-test-rb-kbzqjwm4" @ 10/22/25 19:44:58.185
   STEP: deleting Namespace "install-test-ns-kbzqjwm4" @ 10/22/25 19:44:58.322
 • [53.059 seconds]
 ------------------------------

 Ran 1 of 1 Specs in 53.060 seconds
 SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
 Running Suite:  - /Users/camilam/go/src/github/operator-framework-operator-controller/openshift/tests-extension
 ===============================================================================================================
 Random Seed: 1761158446 - will randomize all specs

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 22, 2025
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 22, 2025
@camilamacedo86 camilamacedo86 changed the title WIP: OCPBUGS-63347: Fix flake for single/own ns tests by ensuring uniquess and not waiting for k8s cleanups WIP: OCPBUGS-63347: Fix flake for single/own ns tests by ensuring uniquess and waiting for k8s cleanups Oct 22, 2025
@camilamacedo86 camilamacedo86 changed the title WIP: OCPBUGS-63347: Fix flake for single/own ns tests by ensuring uniquess and waiting for k8s cleanups OCPBUGS-63347: Fix flake for single/own ns tests by ensuring uniquess and waiting for k8s cleanups Oct 22, 2025
@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 Oct 22, 2025
@camilamacedo86
Copy link
Contributor Author

/payload-aggregate periodic-ci-openshift-release-master-nightly-4.21-e2e-azure-ovn-runc-techpreview 10

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 22, 2025

@camilamacedo86: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.21-e2e-azure-ovn-runc-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/105b5b70-af81-11f0-81e6-138c28a7a8e0-0

…uess and waiting for k8s cleanups

Co-Author: kuiwang@redhat.com
@kuiwang02
Copy link
Contributor

/payload-aggregate periodic-ci-openshift-release-master-nightly-4.21-e2e-metal-ipi-ovn-ipv6-techpreview 5

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 23, 2025

@kuiwang02: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.21-e2e-metal-ipi-ovn-ipv6-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/514a1b20-afc3-11f0-92cb-20c526e8b5bc-0

@kuiwang02
Copy link
Contributor

/payload-aggregate periodic-ci-openshift-release-master-nightly-4.21-e2e-azure-ovn-runc-techpreview 10

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 23, 2025

@kuiwang02: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.21-e2e-azure-ovn-runc-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/58745d70-afc3-11f0-8547-d673022f6ab0-0

@kuiwang02
Copy link
Contributor

/payload-aggregate periodic-ci-openshift-release-master-nightly-4.21-e2e-metal-ipi-serial-ovn-ipv6-techpreview-1of2 5

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 23, 2025

@kuiwang02: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.21-e2e-metal-ipi-serial-ovn-ipv6-techpreview-1of2

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/5f07b6f0-afc3-11f0-8844-398a621512d6-0

@kuiwang02
Copy link
Contributor

/payload-aggregate periodic-ci-openshift-release-master-nightly-4.21-e2e-metal-ipi-serial-ovn-ipv6-techpreview-2of2 5

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 23, 2025

@kuiwang02: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.21-e2e-metal-ipi-serial-ovn-ipv6-techpreview-2of2

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/67e80db0-afc3-11f0-9101-de353a4966c9-0

@openshift-ci-robot
Copy link

@camilamacedo86: This pull request references Jira Issue OCPBUGS-63347, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.21.0) matches configured target version for branch (4.21.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (bandrade@redhat.com), skipping review request.

In response to this:

This change ensures each test scenario has unique resources, preventing
name clashes even when cleanup takes longer than expected. Also, we are improving the cleanups and waits to avoid flakes.

Local tests

[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace] OLMv1 operator installation support for ownNamespace and single namespace watch mode with operator should install cluster extensions successfully in both watch modes [original-name:[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected][Serial] OLMv1 operator installation support for ownNamespace and single namespace watch mode with quay-operator should install cluster extensions successfully in both watch modes]
 /Users/camilam/go/src/github/operator-framework-operator-controller/openshift/tests-extension/test/olmv1-singleownnamespace.go:304
   STEP: checking if OpenShift is available for tests @ 10/22/25 20:52:29.42
 [INFO] Image-registry is available with 2 pod(s) running  STEP: using singleown operator image: quay.io/olmtest/webhook-operator:v0.0.5 @ 10/22/25 20:52:29.685
   STEP: building singleown operator assets for singleNamespace watch mode scenario: image=quay.io/olmtest/webhook-operator:v0.0.5, CRD suffix=mbwb, package=singleown-operator-both-mbwb @ 10/22/25 20:52:29.685
   STEP: setting a unique value: "95wgthrp" @ 10/22/25 20:52:29.812
   STEP: creating a new Namespace @ 10/22/25 20:52:29.812
   STEP: waiting for builder serviceaccount in install-test-ns-95wgthrp @ 10/22/25 20:52:29.937
   STEP: waiting for deployer serviceaccount in install-test-ns-95wgthrp @ 10/22/25 20:52:30.059
   STEP: applying image-puller RoleBinding @ 10/22/25 20:52:30.183
   STEP: creating the operator BuildConfig @ 10/22/25 20:52:30.316
   STEP: creating the operator ImageStream @ 10/22/25 20:52:30.454
   STEP: creating the operator tarball @ 10/22/25 20:52:30.58
   STEP: created operator tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-1191777929.tar" @ 10/22/25 20:52:30.584
   STEP: starting the operator build via RAW URL @ 10/22/25 20:52:30.584
   STEP: waiting for the build "install-test-op-95wgthrp-1" to finish @ 10/22/25 20:52:33.934
   STEP: creating the catalog BuildConfig @ 10/22/25 20:52:46.569
   STEP: creating the catalog ImageStream @ 10/22/25 20:52:46.711
   STEP: creating the catalog tarball @ 10/22/25 20:52:46.84
   STEP: created catalog tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-2752848926.tar" @ 10/22/25 20:52:46.842
   STEP: starting the catalog build via RAW URL @ 10/22/25 20:52:46.842
   STEP: waiting for the build "install-test-cc-95wgthrp-1" to finish @ 10/22/25 20:52:50.091
   STEP: creating the ClusterCatalog @ 10/22/25 20:52:59.598
   STEP: singleown bundle "install-test-op-95wgthrp" and catalog "install-test-cc-95wgthrp" built successfully in namespace "install-test-ns-95wgthrp" for singleNamespace watch mode scenario @ 10/22/25 20:53:02.99
   STEP: ensuring no ClusterExtension for singleown-operator-both-mbwb before singleNamespace watch mode scenario @ 10/22/25 20:53:02.991
   STEP: creating namespace olmv1-webhook-bothns-singlens-n7jr for singleNamespace watch mode tests @ 10/22/25 20:53:03.24
   STEP: creating namespace olmv1-webhook-bothns-singlens-n7jr-watch for watch namespace in singleNamespace watch mode scenario @ 10/22/25 20:53:03.376
   STEP: creating ServiceAccount install-webhook-bothns-singlens-sa-n7jr for singleNamespace watch mode scenario @ 10/22/25 20:53:03.506
   STEP: creating ClusterRoleBinding install-webhook-bothns-singlens-crb-n7jr for singleNamespace watch mode scenario @ 10/22/25 20:53:03.745
   STEP: creating ClusterExtension install-webhook-bothns-singlens-ce-n7jr for singleNamespace watch mode scenario @ 10/22/25 20:53:03.984
   STEP: waiting for the ClusterExtension install-webhook-bothns-singlens-ce-n7jr to be installed for singleNamespace watch mode scenario @ 10/22/25 20:53:04.118
   STEP: verifying the operator deployment watch scope annotation for singleNamespace watch mode scenario @ 10/22/25 20:53:07.37
   STEP: cleaning up resources created for singleNamespace watch mode scenario to allow next scenario @ 10/22/25 20:53:07.497
   STEP: deleting ClusterExtension install-webhook-bothns-singlens-ce-n7jr (package: singleown-operator-both-mbwb) @ 10/22/25 20:53:07.782
   STEP: waiting for namespace olmv1-webhook-bothns-singlens-n7jr to be fully deleted before next scenario @ 10/22/25 20:53:11.883
   STEP: waiting for namespace olmv1-webhook-bothns-singlens-n7jr-watch to be fully deleted before next scenario @ 10/22/25 20:53:21.379
   STEP: building singleown operator assets for ownNamespace watch mode scenario: image=quay.io/olmtest/webhook-operator:v0.0.5, CRD suffix=slkd, package=singleown-operator-both-slkd @ 10/22/25 20:53:21.499
   STEP: setting a unique value: "h2srppk8" @ 10/22/25 20:53:21.627
   STEP: creating a new Namespace @ 10/22/25 20:53:21.627
   STEP: waiting for builder serviceaccount in install-test-ns-h2srppk8 @ 10/22/25 20:53:21.761
   STEP: waiting for deployer serviceaccount in install-test-ns-h2srppk8 @ 10/22/25 20:53:21.879
   STEP: applying image-puller RoleBinding @ 10/22/25 20:53:22
   STEP: creating the operator BuildConfig @ 10/22/25 20:53:22.137
   STEP: creating the operator ImageStream @ 10/22/25 20:53:22.273
   STEP: creating the operator tarball @ 10/22/25 20:53:22.407
   STEP: created operator tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3517729167.tar" @ 10/22/25 20:53:22.411
   STEP: starting the operator build via RAW URL @ 10/22/25 20:53:22.411
   STEP: waiting for the build "install-test-op-h2srppk8-1" to finish @ 10/22/25 20:53:25.377
   STEP: creating the catalog BuildConfig @ 10/22/25 20:53:38.008
   STEP: creating the catalog ImageStream @ 10/22/25 20:53:38.143
   STEP: creating the catalog tarball @ 10/22/25 20:53:38.271
   STEP: created catalog tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3767044919.tar" @ 10/22/25 20:53:38.273
   STEP: starting the catalog build via RAW URL @ 10/22/25 20:53:38.273
   STEP: waiting for the build "install-test-cc-h2srppk8-1" to finish @ 10/22/25 20:53:41.536
   STEP: creating the ClusterCatalog @ 10/22/25 20:53:51.056
   STEP: singleown bundle "install-test-op-h2srppk8" and catalog "install-test-cc-h2srppk8" built successfully in namespace "install-test-ns-h2srppk8" for ownNamespace watch mode scenario @ 10/22/25 20:53:54.428
   STEP: ensuring no ClusterExtension for singleown-operator-both-slkd before ownNamespace watch mode scenario @ 10/22/25 20:53:54.428
   STEP: creating namespace olmv1-webhook-bothns-ownns-sg9b for ownNamespace watch mode tests @ 10/22/25 20:53:54.689
   STEP: creating ServiceAccount install-webhook-bothns-ownns-sa-sg9b for ownNamespace watch mode scenario @ 10/22/25 20:53:54.82
   STEP: creating ClusterRoleBinding install-webhook-bothns-ownns-crb-sg9b for ownNamespace watch mode scenario @ 10/22/25 20:53:55.07
   STEP: creating ClusterExtension install-webhook-bothns-ownns-ce-sg9b for ownNamespace watch mode scenario @ 10/22/25 20:53:55.327
   STEP: waiting for the ClusterExtension install-webhook-bothns-ownns-ce-sg9b to be installed for ownNamespace watch mode scenario @ 10/22/25 20:53:55.456
   STEP: verifying the operator deployment watch scope annotation for ownNamespace watch mode scenario @ 10/22/25 20:53:58.705
   STEP: cleaning up resources created for ownNamespace watch mode scenario to allow next scenario @ 10/22/25 20:53:58.83
   STEP: deleting ClusterExtension install-webhook-bothns-ownns-ce-sg9b (package: singleown-operator-both-slkd) @ 10/22/25 20:53:59.11
   STEP: waiting for namespace olmv1-webhook-bothns-ownns-sg9b to be fully deleted before next scenario @ 10/22/25 20:54:03.064
   STEP: cleanup: deleting ClusterExtension install-webhook-bothns-ownns-ce-sg9b @ 10/22/25 20:54:12.538
   STEP: cleanup: deleting ClusterRoleBinding install-webhook-bothns-ownns-crb-sg9b @ 10/22/25 20:54:12.783
   STEP: cleanup: deleting ServiceAccount install-webhook-bothns-ownns-sa-sg9b in namespace olmv1-webhook-bothns-ownns-sg9b @ 10/22/25 20:54:12.902
   STEP: cleanup: deleting install namespace olmv1-webhook-bothns-ownns-sg9b @ 10/22/25 20:54:13.023
   STEP: deleting ClusterCatalog "install-test-cc-h2srppk8" @ 10/22/25 20:54:13.147
   STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3767044919.tar" @ 10/22/25 20:54:13.286
   STEP: deleting ImageStream "install-test-cc-h2srppk8" @ 10/22/25 20:54:13.287
   STEP: deleting BuildConfig "install-test-cc-h2srppk8" @ 10/22/25 20:54:13.427
   STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3517729167.tar" @ 10/22/25 20:54:13.563
   STEP: deleting ImageStream "install-test-op-h2srppk8" @ 10/22/25 20:54:13.564
   STEP: deleting BuildConfig "install-test-op-h2srppk8" @ 10/22/25 20:54:13.696
   STEP: deleting image-puller RoleBinding "install-test-rb-h2srppk8" @ 10/22/25 20:54:13.825
   STEP: deleting Namespace "install-test-ns-h2srppk8" @ 10/22/25 20:54:13.956
   STEP: cleanup: deleting ClusterExtension install-webhook-bothns-singlens-ce-n7jr @ 10/22/25 20:54:14.089
   STEP: cleanup: deleting ClusterRoleBinding install-webhook-bothns-singlens-crb-n7jr @ 10/22/25 20:54:14.336
   STEP: cleanup: deleting ServiceAccount install-webhook-bothns-singlens-sa-n7jr in namespace olmv1-webhook-bothns-singlens-n7jr @ 10/22/25 20:54:14.456
   STEP: cleanup: deleting watch namespace olmv1-webhook-bothns-singlens-n7jr-watch @ 10/22/25 20:54:14.577
   STEP: cleanup: deleting install namespace olmv1-webhook-bothns-singlens-n7jr @ 10/22/25 20:54:14.7
   STEP: deleting ClusterCatalog "install-test-cc-95wgthrp" @ 10/22/25 20:54:14.822
   STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-2752848926.tar" @ 10/22/25 20:54:14.959
   STEP: deleting ImageStream "install-test-cc-95wgthrp" @ 10/22/25 20:54:14.959
   STEP: deleting BuildConfig "install-test-cc-95wgthrp" @ 10/22/25 20:54:15.088
   STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-1191777929.tar" @ 10/22/25 20:54:15.233
   STEP: deleting ImageStream "install-test-op-95wgthrp" @ 10/22/25 20:54:15.235
   STEP: deleting BuildConfig "install-test-op-95wgthrp" @ 10/22/25 20:54:15.371
   STEP: deleting image-puller RoleBinding "install-test-rb-95wgthrp" @ 10/22/25 20:54:15.492
   STEP: deleting Namespace "install-test-ns-95wgthrp" @ 10/22/25 20:54:15.618
 • [106.333 seconds]
 ------------------------------

 Ran 1 of 1 Specs in 106.334 seconds
 SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
 Running Suite:  - /Users/camilam/go/src/github/operator-framework-operator-controller/openshift/tests-extension
 ===============================================================================================================
 Random Seed: 1761162544 - will randomize all specs

** Aggregations **

Co-Author: @kuiwang02

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 openshift-eng/jira-lifecycle-plugin repository.

@tmshort
Copy link
Contributor

tmshort commented Oct 23, 2025

/hold
Hold in favor of #532, since we need to get that one in, and any other PR that merges will update it.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 23, 2025
Copy link
Contributor

@tmshort tmshort left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

}

// Ensure unique names per scenario
crdSuffix := rand.String(4)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I realize this is the original name of the variable, but it's used for more than just the CRD. So perhaps unique (used in other place), might be better.

Comment on lines +436 to +442
if crdName != "" {
crd := &apiextensionsv1.CustomResourceDefinition{}
if err := k8sClient.Get(context.Background(), client.ObjectKey{Name: crdName}, crd); err == nil {
By(fmt.Sprintf("cleanup: deleting CRD %s", crdName))
_ = k8sClient.Delete(context.Background(), crd)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We're waiting on the namepsace to be deleted, do we need to wait on the CRD to be deleted too? I see that the tests are passing, so this might just be something we need to keep an eye on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We call helpers.EnsureCleanupClusterExtension(context.Background(), ceName, namespace) at the cleanup. But since it is only be called after all we can use it here as well

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 23, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 23, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, tmshort

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

The pull request process is described here

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 Oct 23, 2025
@tmshort
Copy link
Contributor

tmshort commented Oct 23, 2025

/unhold
#532 merged

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 23, 2025
@camilamacedo86
Copy link
Contributor Author

/hold cancel

PR is merged now: #532

"{{ TEST-CONTROLLER }}": singleownImage,
"{{ CRD-SUFFIX }}": crdSuffix, // Unique CRD suffix per scenario
"{{ PACKAGE-NAME }}": packageName,
"webhook-operator-webhooktest-admin-role": fmt.Sprintf("webhook-operator-webhooktest-admin-role-%s", crdSuffix),
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI

					"webhook-operator-webhooktest-admin-role":  fmt.Sprintf("webhook-operator-webhooktest-admin-role-%s", crdSuffix),
					"webhook-operator-webhooktest-editor-role": fmt.Sprintf("webhook-operator-webhooktest-editor-role-%s", crdSuffix),
					"webhook-operator-webhooktest-viewer-role": fmt.Sprintf("webhook-operator-webhooktest-viewer-role-%s", crdSuffix),
					"webhook-operator-metrics-reader":          fmt.Sprintf("webhook-operator-metrics-reader-%s", crdSuffix),

although I do not think it is necessary (actually it is not used), it will not impact the case execution.

@kuiwang02
Copy link
Contributor

/verified by @kuiwang02

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Oct 24, 2025
@openshift-ci-robot
Copy link

@kuiwang02: This PR has been marked as verified by @kuiwang02.

In response to this:

/verified by @kuiwang02

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 24, 2025

@camilamacedo86: all tests passed!

Full PR test history. Your PR dashboard.

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.

@openshift-merge-bot openshift-merge-bot bot merged commit 4522e35 into openshift:main Oct 24, 2025
12 of 13 checks passed
@openshift-ci-robot
Copy link

@camilamacedo86: Jira Issue Verification Checks: Jira Issue OCPBUGS-63347
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-63347 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

In response to this:

This change ensures each test scenario has unique resources, preventing
name clashes even when cleanup takes longer than expected. Also, we are improving the cleanups and waits to avoid flakes.

Local tests

[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace] OLMv1 operator installation support for ownNamespace and single namespace watch mode with operator should install cluster extensions successfully in both watch modes [original-name:[sig-olmv1][OCPFeatureGate:NewOLMOwnSingleNamespace][Skipped:Disconnected][Serial] OLMv1 operator installation support for ownNamespace and single namespace watch mode with quay-operator should install cluster extensions successfully in both watch modes]
 /Users/camilam/go/src/github/operator-framework-operator-controller/openshift/tests-extension/test/olmv1-singleownnamespace.go:304
   STEP: checking if OpenShift is available for tests @ 10/22/25 20:52:29.42
 [INFO] Image-registry is available with 2 pod(s) running  STEP: using singleown operator image: quay.io/olmtest/webhook-operator:v0.0.5 @ 10/22/25 20:52:29.685
   STEP: building singleown operator assets for singleNamespace watch mode scenario: image=quay.io/olmtest/webhook-operator:v0.0.5, CRD suffix=mbwb, package=singleown-operator-both-mbwb @ 10/22/25 20:52:29.685
   STEP: setting a unique value: "95wgthrp" @ 10/22/25 20:52:29.812
   STEP: creating a new Namespace @ 10/22/25 20:52:29.812
   STEP: waiting for builder serviceaccount in install-test-ns-95wgthrp @ 10/22/25 20:52:29.937
   STEP: waiting for deployer serviceaccount in install-test-ns-95wgthrp @ 10/22/25 20:52:30.059
   STEP: applying image-puller RoleBinding @ 10/22/25 20:52:30.183
   STEP: creating the operator BuildConfig @ 10/22/25 20:52:30.316
   STEP: creating the operator ImageStream @ 10/22/25 20:52:30.454
   STEP: creating the operator tarball @ 10/22/25 20:52:30.58
   STEP: created operator tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-1191777929.tar" @ 10/22/25 20:52:30.584
   STEP: starting the operator build via RAW URL @ 10/22/25 20:52:30.584
   STEP: waiting for the build "install-test-op-95wgthrp-1" to finish @ 10/22/25 20:52:33.934
   STEP: creating the catalog BuildConfig @ 10/22/25 20:52:46.569
   STEP: creating the catalog ImageStream @ 10/22/25 20:52:46.711
   STEP: creating the catalog tarball @ 10/22/25 20:52:46.84
   STEP: created catalog tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-2752848926.tar" @ 10/22/25 20:52:46.842
   STEP: starting the catalog build via RAW URL @ 10/22/25 20:52:46.842
   STEP: waiting for the build "install-test-cc-95wgthrp-1" to finish @ 10/22/25 20:52:50.091
   STEP: creating the ClusterCatalog @ 10/22/25 20:52:59.598
   STEP: singleown bundle "install-test-op-95wgthrp" and catalog "install-test-cc-95wgthrp" built successfully in namespace "install-test-ns-95wgthrp" for singleNamespace watch mode scenario @ 10/22/25 20:53:02.99
   STEP: ensuring no ClusterExtension for singleown-operator-both-mbwb before singleNamespace watch mode scenario @ 10/22/25 20:53:02.991
   STEP: creating namespace olmv1-webhook-bothns-singlens-n7jr for singleNamespace watch mode tests @ 10/22/25 20:53:03.24
   STEP: creating namespace olmv1-webhook-bothns-singlens-n7jr-watch for watch namespace in singleNamespace watch mode scenario @ 10/22/25 20:53:03.376
   STEP: creating ServiceAccount install-webhook-bothns-singlens-sa-n7jr for singleNamespace watch mode scenario @ 10/22/25 20:53:03.506
   STEP: creating ClusterRoleBinding install-webhook-bothns-singlens-crb-n7jr for singleNamespace watch mode scenario @ 10/22/25 20:53:03.745
   STEP: creating ClusterExtension install-webhook-bothns-singlens-ce-n7jr for singleNamespace watch mode scenario @ 10/22/25 20:53:03.984
   STEP: waiting for the ClusterExtension install-webhook-bothns-singlens-ce-n7jr to be installed for singleNamespace watch mode scenario @ 10/22/25 20:53:04.118
   STEP: verifying the operator deployment watch scope annotation for singleNamespace watch mode scenario @ 10/22/25 20:53:07.37
   STEP: cleaning up resources created for singleNamespace watch mode scenario to allow next scenario @ 10/22/25 20:53:07.497
   STEP: deleting ClusterExtension install-webhook-bothns-singlens-ce-n7jr (package: singleown-operator-both-mbwb) @ 10/22/25 20:53:07.782
   STEP: waiting for namespace olmv1-webhook-bothns-singlens-n7jr to be fully deleted before next scenario @ 10/22/25 20:53:11.883
   STEP: waiting for namespace olmv1-webhook-bothns-singlens-n7jr-watch to be fully deleted before next scenario @ 10/22/25 20:53:21.379
   STEP: building singleown operator assets for ownNamespace watch mode scenario: image=quay.io/olmtest/webhook-operator:v0.0.5, CRD suffix=slkd, package=singleown-operator-both-slkd @ 10/22/25 20:53:21.499
   STEP: setting a unique value: "h2srppk8" @ 10/22/25 20:53:21.627
   STEP: creating a new Namespace @ 10/22/25 20:53:21.627
   STEP: waiting for builder serviceaccount in install-test-ns-h2srppk8 @ 10/22/25 20:53:21.761
   STEP: waiting for deployer serviceaccount in install-test-ns-h2srppk8 @ 10/22/25 20:53:21.879
   STEP: applying image-puller RoleBinding @ 10/22/25 20:53:22
   STEP: creating the operator BuildConfig @ 10/22/25 20:53:22.137
   STEP: creating the operator ImageStream @ 10/22/25 20:53:22.273
   STEP: creating the operator tarball @ 10/22/25 20:53:22.407
   STEP: created operator tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3517729167.tar" @ 10/22/25 20:53:22.411
   STEP: starting the operator build via RAW URL @ 10/22/25 20:53:22.411
   STEP: waiting for the build "install-test-op-h2srppk8-1" to finish @ 10/22/25 20:53:25.377
   STEP: creating the catalog BuildConfig @ 10/22/25 20:53:38.008
   STEP: creating the catalog ImageStream @ 10/22/25 20:53:38.143
   STEP: creating the catalog tarball @ 10/22/25 20:53:38.271
   STEP: created catalog tarball "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3767044919.tar" @ 10/22/25 20:53:38.273
   STEP: starting the catalog build via RAW URL @ 10/22/25 20:53:38.273
   STEP: waiting for the build "install-test-cc-h2srppk8-1" to finish @ 10/22/25 20:53:41.536
   STEP: creating the ClusterCatalog @ 10/22/25 20:53:51.056
   STEP: singleown bundle "install-test-op-h2srppk8" and catalog "install-test-cc-h2srppk8" built successfully in namespace "install-test-ns-h2srppk8" for ownNamespace watch mode scenario @ 10/22/25 20:53:54.428
   STEP: ensuring no ClusterExtension for singleown-operator-both-slkd before ownNamespace watch mode scenario @ 10/22/25 20:53:54.428
   STEP: creating namespace olmv1-webhook-bothns-ownns-sg9b for ownNamespace watch mode tests @ 10/22/25 20:53:54.689
   STEP: creating ServiceAccount install-webhook-bothns-ownns-sa-sg9b for ownNamespace watch mode scenario @ 10/22/25 20:53:54.82
   STEP: creating ClusterRoleBinding install-webhook-bothns-ownns-crb-sg9b for ownNamespace watch mode scenario @ 10/22/25 20:53:55.07
   STEP: creating ClusterExtension install-webhook-bothns-ownns-ce-sg9b for ownNamespace watch mode scenario @ 10/22/25 20:53:55.327
   STEP: waiting for the ClusterExtension install-webhook-bothns-ownns-ce-sg9b to be installed for ownNamespace watch mode scenario @ 10/22/25 20:53:55.456
   STEP: verifying the operator deployment watch scope annotation for ownNamespace watch mode scenario @ 10/22/25 20:53:58.705
   STEP: cleaning up resources created for ownNamespace watch mode scenario to allow next scenario @ 10/22/25 20:53:58.83
   STEP: deleting ClusterExtension install-webhook-bothns-ownns-ce-sg9b (package: singleown-operator-both-slkd) @ 10/22/25 20:53:59.11
   STEP: waiting for namespace olmv1-webhook-bothns-ownns-sg9b to be fully deleted before next scenario @ 10/22/25 20:54:03.064
   STEP: cleanup: deleting ClusterExtension install-webhook-bothns-ownns-ce-sg9b @ 10/22/25 20:54:12.538
   STEP: cleanup: deleting ClusterRoleBinding install-webhook-bothns-ownns-crb-sg9b @ 10/22/25 20:54:12.783
   STEP: cleanup: deleting ServiceAccount install-webhook-bothns-ownns-sa-sg9b in namespace olmv1-webhook-bothns-ownns-sg9b @ 10/22/25 20:54:12.902
   STEP: cleanup: deleting install namespace olmv1-webhook-bothns-ownns-sg9b @ 10/22/25 20:54:13.023
   STEP: deleting ClusterCatalog "install-test-cc-h2srppk8" @ 10/22/25 20:54:13.147
   STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3767044919.tar" @ 10/22/25 20:54:13.286
   STEP: deleting ImageStream "install-test-cc-h2srppk8" @ 10/22/25 20:54:13.287
   STEP: deleting BuildConfig "install-test-cc-h2srppk8" @ 10/22/25 20:54:13.427
   STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-3517729167.tar" @ 10/22/25 20:54:13.563
   STEP: deleting ImageStream "install-test-op-h2srppk8" @ 10/22/25 20:54:13.564
   STEP: deleting BuildConfig "install-test-op-h2srppk8" @ 10/22/25 20:54:13.696
   STEP: deleting image-puller RoleBinding "install-test-rb-h2srppk8" @ 10/22/25 20:54:13.825
   STEP: deleting Namespace "install-test-ns-h2srppk8" @ 10/22/25 20:54:13.956
   STEP: cleanup: deleting ClusterExtension install-webhook-bothns-singlens-ce-n7jr @ 10/22/25 20:54:14.089
   STEP: cleanup: deleting ClusterRoleBinding install-webhook-bothns-singlens-crb-n7jr @ 10/22/25 20:54:14.336
   STEP: cleanup: deleting ServiceAccount install-webhook-bothns-singlens-sa-n7jr in namespace olmv1-webhook-bothns-singlens-n7jr @ 10/22/25 20:54:14.456
   STEP: cleanup: deleting watch namespace olmv1-webhook-bothns-singlens-n7jr-watch @ 10/22/25 20:54:14.577
   STEP: cleanup: deleting install namespace olmv1-webhook-bothns-singlens-n7jr @ 10/22/25 20:54:14.7
   STEP: deleting ClusterCatalog "install-test-cc-95wgthrp" @ 10/22/25 20:54:14.822
   STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-2752848926.tar" @ 10/22/25 20:54:14.959
   STEP: deleting ImageStream "install-test-cc-95wgthrp" @ 10/22/25 20:54:14.959
   STEP: deleting BuildConfig "install-test-cc-95wgthrp" @ 10/22/25 20:54:15.088
   STEP: deleting file "/var/folders/n4/j272tr6d7hq63mf7_skv6zr80000gn/T/bundle-1191777929.tar" @ 10/22/25 20:54:15.233
   STEP: deleting ImageStream "install-test-op-95wgthrp" @ 10/22/25 20:54:15.235
   STEP: deleting BuildConfig "install-test-op-95wgthrp" @ 10/22/25 20:54:15.371
   STEP: deleting image-puller RoleBinding "install-test-rb-95wgthrp" @ 10/22/25 20:54:15.492
   STEP: deleting Namespace "install-test-ns-95wgthrp" @ 10/22/25 20:54:15.618
 • [106.333 seconds]
 ------------------------------

 Ran 1 of 1 Specs in 106.334 seconds
 SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
 Running Suite:  - /Users/camilam/go/src/github/operator-framework-operator-controller/openshift/tests-extension
 ===============================================================================================================
 Random Seed: 1761162544 - will randomize all specs

** Aggregations **

Co-Author: @kuiwang02

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-merge-robot
Copy link
Contributor

Fix included in accepted release 4.21.0-0.nightly-2025-10-25-183621

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. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants