OPRUN-4055: Migrate tasks from openshift/origin olmv1.go file which are remaining#418
Conversation
8e3171e to
9a285e2
Compare
9a285e2 to
209cf93
Compare
|
@camilamacedo86: This pull request references OPRUN-4055 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 story to target the "4.20.0" version, but no target version was set. DetailsIn 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. |
503feae to
afb35c0
Compare
|
c/c @kuiwang02 |
anik120
left a comment
There was a problem hiding this comment.
Code looks good to me mostly. Two questions:
- We don't need to check in the vendor folder right? I understand the vendor folder was introduced in a previous PR and if we want to make any change to that structure we should do it in a separate PR, I just wanted to confirm the we don't need the folder to be checked into git for any reason. Openshift CI env has access to the internet and therefore the ability to pull the dependencies based on
go.sumandgo.mod - Is the
ci/prow/test-extensionsrunning the exact tests being introduced in this PR? Or is there another new CI target that's running these extension tests?
| @@ -0,0 +1,88 @@ | |||
| package mocks | |||
There was a problem hiding this comment.
why is this package called mocks?
There was a problem hiding this comment.
Because we have helpers to create the mocks/scenarios
Do you have a better name suggestion?
There was a problem hiding this comment.
I changed to helpers. I hope that addresses your concern. 🚀
|
HI @anik120 Thank you for looking on this one. Following the answers inline regards: #418 (review)
Yes, and we do. If we do not add the vendor properly, it fails in the ci job
We can look here what it does: This one is more of a sanity check Now, the tests are executed under: How it works can be found in the README: https://github.com/openshift/operator-framework-operator-controller/blob/main/openshift/tests-extension/README.md#e2e-test-configuration |
| "environmentSelector": {} | ||
| }, | ||
| { | ||
| "name": "[sig-olmv1][OCPFeatureGate:NewOLM][Skipped:Disconnected] OLMv1 operator installation should install a cluster extension", |
There was a problem hiding this comment.
| "environmentSelector": {} | ||
| }, | ||
| { | ||
| "name": "[sig-olmv1][OCPFeatureGate:NewOLM][Skipped:Disconnected] OLMv1 operator installation should fail to install a non-existing cluster extension", |
There was a problem hiding this comment.
| "environmentSelector": {} | ||
| }, | ||
| { | ||
| "name": "[sig-olmv1][OCPFeatureGate:NewOLM][Skipped:Disconnected] OLMv1 operator installation should block cluster upgrades if an incompatible operator is installed", |
There was a problem hiding this comment.
|
@camilamacedo86: This pull request references OPRUN-4055 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 story to target the "4.20.0" version, but no target version was set. DetailsIn 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. |
afb35c0 to
edd0cbe
Compare
|
@camilamacedo86: The label(s) DetailsIn 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 kubernetes-sigs/prow repository. |
|
@camilamacedo86: This pull request references OPRUN-4055 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 story to target the "4.20.0" version, but no target version was set. DetailsIn 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. |
edd0cbe to
eb59b9f
Compare
|
@camilamacedo86: This pull request references OPRUN-4055 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 story to target the "4.20.0" version, but no target version was set. DetailsIn 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. |
|
/test openshift-e2e-aws |
| specs.AddBeforeAll(func() { | ||
| env.Init() | ||
| // Ensure that OLMv1 is enabled | ||
| commons.CheckFeatureCapability() |
There was a problem hiding this comment.
@camilamacedo86
each case needs to check feature capability to determine if it skip.
if you put it here, only one case check it. and other cases do not check it.
so, it needs to be in each Describe with BeforeEach. for example
var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLM] OLMv1 CRDs", func() {
const olmv1GroupName = "olm.operatorframework.io"
BeforeEach(func() {
commons.CheckFeatureCapability()
})
It("should be installed", func(ctx SpecContext) {and
var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLM][Skipped:Disconnected] OLMv1 operator installation", func() {
BeforeEach(func() {
commons.CheckFeatureCapability()
})
It("should install a cluster extension", func(ctx SpecContext) {There was a problem hiding this comment.
I thought all would check that.
It is fine we can keep in all of them
| extlogs.Warn("Skipping feature capability check: not OpenShift") | ||
| return | ||
| } | ||
| var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLM][Skipped:Disconnected] OLMv1 operator installation", func() { |
| @@ -30,8 +30,8 @@ var _ = Describe("[sig-olmv1] OLMv1", func() { | |||
| }) | |||
|
|
|||
| var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLM] OLMv1 CRDs", func() { | |||
b0f23a7 to
b7ad3df
Compare
… which are remaining This commit moves the final OLMv1 tests from openshift/origin/test/extended/olm/olmv1.go to their proper location in this repository. This migration is part of a larger effort to streamline development by co-locating tests with the component they validate. This will reduce CI overhead and allow for faster, more atomic changes. Assisted-by: Gemini
b7ad3df to
a185061
Compare
|
Hi @kuiwang02 I appreciate your help. |
|
@camilamacedo86: This pull request references OPRUN-4055 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 story to target the "4.20.0" version, but no target version was set. DetailsIn 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. |
|
@camilamacedo86: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/lgtm |
|
/approve |
1 similar comment
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anik120, camilamacedo86, kuiwang02, tmshort The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
af40962
into
openshift:main
|
[ART PR BUILD NOTIFIER] Distgit: ose-olm-catalogd |
|
[ART PR BUILD NOTIFIER] Distgit: ose-olm-operator-controller |
This commit moves the final OLMv1 tests from openshift/origin/test/extended/olm/olmv1.go to their proper location in this repository. This migration is part of a larger effort to streamline development by co-locating tests with the component they validate. This will reduce CI overhead and allow for faster, more atomic changes. See: https://github.com/openshift/origin/blob/05eeb94cf14384be99323b2cbd00ab61b1b1c47c/test/extended/olm/olmv1.go#L34-L285
Here is the PR to delete the tests when this one get merged: openshift/origin#30072
Tests done locally
Assisted-by: Gemini