Skip to content

Conversation

@camilamacedo86
Copy link
Contributor

@camilamacedo86 camilamacedo86 commented Jan 28, 2026

Ensure that the criteria of the check work for both runtimes so that we can fix the issue: blob:https://prow.ci.openshift.org/84dc591d-cca0-4df2-978c-d555f06b335e

The test was checking Helm-specific condition states (Installed=False,
Reason=Failed) which don't match Boxcutter's reconciliation model.

Changed assertions to be runtime-agnostic by:

  • Checking installation didn't succeed (not exact reason)
  • Verifying error message exists (not specific condition type)

Test now validates behaviour across both Helm and Boxcutter runtimes.

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

openshift-ci-robot commented Jan 28, 2026

@camilamacedo86: This pull request references OPRUN-4441 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 task to target the "4.22.0" version, but no target version was set.

Details

In response to this:

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 Jan 28, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: camilamacedo86
Once this PR has been reviewed and has the lgtm label, please assign joelanford for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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-robot
Copy link

openshift-ci-robot commented Jan 28, 2026

@camilamacedo86: This pull request references OPRUN-4441 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 task to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Ensure that the criteria of the check work for both runtimes so that we can fix the issue: blob:https://prow.ci.openshift.org/84dc591d-cca0-4df2-978c-d555f06b335e

The test was checking Helm-specific condition states (Installed=False,
Reason=Failed) which don't match Boxcutter's reconciliation model.

Changed assertions to be runtime-agnostic by:

  • Checking installation didn't succeed (not exact reason)
  • Verifying error message exists (not specific condition type)

Test now validates behaviour across both Helm and Boxcutter runtimes.

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 force-pushed the fix-ote-test-to-work-with-both branch from bd669d7 to 6728fcd Compare January 28, 2026 16:04
@camilamacedo86 camilamacedo86 changed the title OPRUN-4441: fix(ote): Ensure that checks for "validation should fail to install the ClusterExtension when watch namespace is invalid" is valid for both runtimes OPRUN-4441: fix(ote): Fix SingleOwnNamespace test for Boxcutter runtime compatibility Jan 28, 2026
// Use a non-existent namespace with valid DNS name.
// This will pass config validation but fail during resource creation
// when the controller tries to create Roles/RoleBindings in this namespace.
nonExistentWatchNamespace := fmt.Sprintf("%s-nonexistent", namespace)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

/hold we might need to see if Boxcutter should not have Reason=Failed as well

@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 Jan 28, 2026
// Check that installation is NOT successful - this works for both Helm and Boxcutter
// Helm sets: Installed=False, Reason=Failed
// Boxcutter might set: Progressing=True, Reason=Retrying OR Installed=False
// The key is that Installed should NOT be True with Reason=Succeeded
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should remove any checks on the Installed condition. I think the only thing that would matter is to check that Progressing is False with reason InvalidConfiguration. The Installed condition may still have True if there's an existing successful installation on the cluster. E.g.

  1. Install extension successfully
  2. Update the configuration to something that isn't valid

@camilamacedo86 camilamacedo86 force-pushed the fix-ote-test-to-work-with-both branch from 6728fcd to bd4ce75 Compare February 3, 2026 11:50
@camilamacedo86 camilamacedo86 force-pushed the fix-ote-test-to-work-with-both branch from bd4ce75 to 66f347d Compare February 3, 2026 12:06
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 3, 2026

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

@camilamacedo86
Copy link
Contributor Author

Clsoe in favor of : #628

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

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants