Skip to content

Conversation

@kuiwang02
Copy link
Contributor

Fix test failures for OwnNamespace/SingleNamespace modes

Update clusterextension-withselectorlabel-OwnSingle.yaml template to use spec.config.inline.watchNamespace instead of deprecated annotations.

Fixes: PolarionID:81664, PolarionID:81696

Changes

  • Replace metadata.annotations["olm.operatorframework.io/watch-namespace"]
  • With spec.config.inline.watchNamespace

Impact

  • ✅ Case 81664 (OwnNamespace mode) - PASSED
  • ✅ Case 81696 (SingleNamespace mode) - PASSED

Product code now requires watchNamespace configuration via the config.inline API for bundles supporting OwnNamespace and SingleNamespace InstallModes.

Testing

./bin/olmv1-tests-ext run-test "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81696-[Skipped:Disconnected]preflight check on permission on single ns mode"
[INFO] [env] Using kubeconfig: /Users/kuiwang/work/bin/jb/kubeconf/kubeconfig
[INFO] [env] Cluster environment initialized (OpenShift: true)
I1103 18:30:01.981447 15470 test_context.go:566] The --provider flag is not set. Continuing as if --provider=skeleton had been used.
Running Suite:  - /Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension
==============================================================================================================================================
Random Seed: 1762165799 - will randomize all specs

Will run 1 of 1 specs
------------------------------
[sig-olmv1][Jira:OLM] clusterextension PolarionID:81696-[Skipped:Disconnected]preflight check on permission on single ns mode [NonHyperShiftHOST]
/Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/test/qe/specs/olmv1_ce.go:679
  STEP: Creating a kubernetes client @ 11/03/25 18:30:01.983
...
{
  "name": "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81696-[Skipped:Disconnected]preflight check on permission on single ns mode",
  "lifecycle": "blocking",
  "duration": 124393,
  "startTime": "2025-11-03 10:30:01.981901 UTC",
  "endTime": "2025-11-03 10:32:06.375493 UTC",
  "result": "passed"
...
./bin/olmv1-tests-ext run-test "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81664-[Skipped:Disconnected]preflight check on permission on own ns mode"
[INFO] [env] Using kubeconfig: /Users/kuiwang/work/bin/jb/kubeconf/kubeconfig
[INFO] [env] Cluster environment initialized (OpenShift: true)
I1103 18:20:22.992672 10510 test_context.go:566] The --provider flag is not set. Continuing as if --provider=skeleton had been used.
Running Suite:  - /Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension
==============================================================================================================================================
Random Seed: 1762165220 - will randomize all specs

Will run 1 of 1 specs
------------------------------
[sig-olmv1][Jira:OLM] clusterextension PolarionID:81664-[Skipped:Disconnected]preflight check on permission on own ns mode [NonHyperShiftHOST]
/Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/test/qe/specs/olmv1_ce.go:570
  STEP: Creating a kubernetes client @ 11/03/25 18:20:22.999
...
  "name": "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81664-[Skipped:Disconnected]preflight check on permission on own ns mode",
  "lifecycle": "informing",
  "duration": 114133,
  "startTime": "2025-11-03 10:20:22.993496 UTC",
  "endTime": "2025-11-03 10:22:17.126713 UTC",
  "result": "passed",

Assisted-by: Claude Code

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 4, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 4, 2025

@kuiwang02: This pull request references OCPQE-31083 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.21.0" version, but no target version was set.

In response to this:

Fix test failures for OwnNamespace/SingleNamespace modes

Update clusterextension-withselectorlabel-OwnSingle.yaml template to use spec.config.inline.watchNamespace instead of deprecated annotations.

Fixes: PolarionID:81664, PolarionID:81696

Changes

  • Replace metadata.annotations["olm.operatorframework.io/watch-namespace"]
  • With spec.config.inline.watchNamespace

Impact

  • ✅ Case 81664 (OwnNamespace mode) - PASSED
  • ✅ Case 81696 (SingleNamespace mode) - PASSED

Product code now requires watchNamespace configuration via the config.inline API for bundles supporting OwnNamespace and SingleNamespace InstallModes.

Testing

./bin/olmv1-tests-ext run-test "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81696-[Skipped:Disconnected]preflight check on permission on single ns mode"
[INFO] [env] Using kubeconfig: /Users/kuiwang/work/bin/jb/kubeconf/kubeconfig
[INFO] [env] Cluster environment initialized (OpenShift: true)
I1103 18:30:01.981447 15470 test_context.go:566] The --provider flag is not set. Continuing as if --provider=skeleton had been used.
Running Suite:  - /Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension
==============================================================================================================================================
Random Seed: 1762165799 - will randomize all specs

Will run 1 of 1 specs
------------------------------
[sig-olmv1][Jira:OLM] clusterextension PolarionID:81696-[Skipped:Disconnected]preflight check on permission on single ns mode [NonHyperShiftHOST]
/Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/test/qe/specs/olmv1_ce.go:679
  STEP: Creating a kubernetes client @ 11/03/25 18:30:01.983
...
{
  "name": "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81696-[Skipped:Disconnected]preflight check on permission on single ns mode",
  "lifecycle": "blocking",
  "duration": 124393,
  "startTime": "2025-11-03 10:30:01.981901 UTC",
  "endTime": "2025-11-03 10:32:06.375493 UTC",
  "result": "passed"
...
./bin/olmv1-tests-ext run-test "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81664-[Skipped:Disconnected]preflight check on permission on own ns mode"
[INFO] [env] Using kubeconfig: /Users/kuiwang/work/bin/jb/kubeconf/kubeconfig
[INFO] [env] Cluster environment initialized (OpenShift: true)
I1103 18:20:22.992672 10510 test_context.go:566] The --provider flag is not set. Continuing as if --provider=skeleton had been used.
Running Suite:  - /Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension
==============================================================================================================================================
Random Seed: 1762165220 - will randomize all specs

Will run 1 of 1 specs
------------------------------
[sig-olmv1][Jira:OLM] clusterextension PolarionID:81664-[Skipped:Disconnected]preflight check on permission on own ns mode [NonHyperShiftHOST]
/Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/test/qe/specs/olmv1_ce.go:570
  STEP: Creating a kubernetes client @ 11/03/25 18:20:22.999
...
  "name": "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81664-[Skipped:Disconnected]preflight check on permission on own ns mode",
  "lifecycle": "informing",
  "duration": 114133,
  "startTime": "2025-11-03 10:20:22.993496 UTC",
  "endTime": "2025-11-03 10:22:17.126713 UTC",
  "result": "passed",

Assisted-by: Claude Code

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.

@kuiwang02
Copy link
Contributor Author

/close

for more checking. if necessary, reopen it.

@openshift-ci openshift-ci bot closed this Nov 4, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 4, 2025

@kuiwang02: Closed this PR.

In response to this:

/close

for more checking. if necessary, reopen it.

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.

@kuiwang02
Copy link
Contributor Author

/reopen

@openshift-ci openshift-ci bot reopened this Nov 4, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 4, 2025

@kuiwang02: Reopened this PR.

In response to this:

/reopen

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.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 4, 2025

@kuiwang02: This pull request references OCPQE-31083 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.21.0" version, but no target version was set.

In response to this:

Fix test failures for OwnNamespace/SingleNamespace modes

Update clusterextension-withselectorlabel-OwnSingle.yaml template to use spec.config.inline.watchNamespace instead of deprecated annotations.

Fixes: PolarionID:81664, PolarionID:81696

Changes

  • Replace metadata.annotations["olm.operatorframework.io/watch-namespace"]
  • With spec.config.inline.watchNamespace

Impact

  • ✅ Case 81664 (OwnNamespace mode) - PASSED
  • ✅ Case 81696 (SingleNamespace mode) - PASSED

Product code now requires watchNamespace configuration via the config.inline API for bundles supporting OwnNamespace and SingleNamespace InstallModes.

Testing

./bin/olmv1-tests-ext run-test "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81696-[Skipped:Disconnected]preflight check on permission on single ns mode"
[INFO] [env] Using kubeconfig: /Users/kuiwang/work/bin/jb/kubeconf/kubeconfig
[INFO] [env] Cluster environment initialized (OpenShift: true)
I1103 18:30:01.981447 15470 test_context.go:566] The --provider flag is not set. Continuing as if --provider=skeleton had been used.
Running Suite:  - /Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension
==============================================================================================================================================
Random Seed: 1762165799 - will randomize all specs

Will run 1 of 1 specs
------------------------------
[sig-olmv1][Jira:OLM] clusterextension PolarionID:81696-[Skipped:Disconnected]preflight check on permission on single ns mode [NonHyperShiftHOST]
/Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/test/qe/specs/olmv1_ce.go:679
  STEP: Creating a kubernetes client @ 11/03/25 18:30:01.983
...
{
  "name": "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81696-[Skipped:Disconnected]preflight check on permission on single ns mode",
  "lifecycle": "blocking",
  "duration": 124393,
  "startTime": "2025-11-03 10:30:01.981901 UTC",
  "endTime": "2025-11-03 10:32:06.375493 UTC",
  "result": "passed"
...
./bin/olmv1-tests-ext run-test "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81664-[Skipped:Disconnected]preflight check on permission on own ns mode"
[INFO] [env] Using kubeconfig: /Users/kuiwang/work/bin/jb/kubeconf/kubeconfig
[INFO] [env] Cluster environment initialized (OpenShift: true)
I1103 18:20:22.992672 10510 test_context.go:566] The --provider flag is not set. Continuing as if --provider=skeleton had been used.
Running Suite:  - /Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension
==============================================================================================================================================
Random Seed: 1762165220 - will randomize all specs

Will run 1 of 1 specs
------------------------------
[sig-olmv1][Jira:OLM] clusterextension PolarionID:81664-[Skipped:Disconnected]preflight check on permission on own ns mode [NonHyperShiftHOST]
/Users/kuiwang/GoProject/go-origin/src/github.com/openshift/operator-framework-operator-controller/openshift/tests-extension/test/qe/specs/olmv1_ce.go:570
  STEP: Creating a kubernetes client @ 11/03/25 18:20:22.999
...
  "name": "[sig-olmv1][Jira:OLM] clusterextension PolarionID:81664-[Skipped:Disconnected]preflight check on permission on own ns mode",
  "lifecycle": "informing",
  "duration": 114133,
  "startTime": "2025-11-03 10:20:22.993496 UTC",
  "endTime": "2025-11-03 10:22:17.126713 UTC",
  "result": "passed",

Assisted-by: Claude Code

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.

},
"source": "openshift:payload:olmv1",
"lifecycle": "informing",
"lifecycle": "blocking",
Copy link
Contributor

@camilamacedo86 camilamacedo86 Nov 5, 2025

Choose a reason for hiding this comment

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

Is it producing signal to Sippy?
Could we move all tests that will become a blocking to be centralised?

In this case, can we move any QE shaped test to : https://github.com/openshift/operator-framework-operator-controller/blob/main/openshift/tests-extension/test/

Also, are those scenarios that are not covered yet?
It would be great we ensure that we have not many tests covering the same.

Otherwise, it might start be hard for we keep things maintained.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is for QE case. it is different with case migrated from origin.

// QE case becomes better so that we could try it
// if !spec.Labels.Has("ReleaseGate") && spec.Lifecycle == "blocking" {
// spec.Lifecycle = "informing"
// }
Copy link
Contributor

@camilamacedo86 camilamacedo86 Nov 5, 2025

Choose a reason for hiding this comment

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

Could we not merge code commented?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will like to keep it because we will monitor it. I will remove it after we approve the QE design in the future.

@kuiwang02
Copy link
Contributor Author

/verified by @kuiwang02

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Nov 5, 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 Nov 5, 2025

@kuiwang02: 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.

@jianzhangbjz
Copy link
Contributor

/approve
/lgtm

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

openshift-ci bot commented Nov 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jianzhangbjz, kuiwang02

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 Nov 5, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 92dcb88 into openshift:main Nov 5, 2025
13 checks passed
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-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.

4 participants