CM-261: utilize ginkgo label filter to differentiate cloud platforms#194
Conversation
|
@lunarwhite: This pull request references CM-261 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.17.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. |
|
/uncc deads2k CI is green. Mark it as ready for review now. To keep it simple and easy for review and updates, I created this separate PR for CM-261. I didn't touch the main logic of the existing cases, so your comments in #181 are not fully addressed. After this is done, we can rebase and update #181. |
swghosh
left a comment
There was a problem hiding this comment.
Generally, LGTM
great work @lunarwhite thanks for this!
I'll take another closer look into the test/e2e/certificates_test.go later during the week.
| -run "$(TEST)" \ | ||
| ./test/e2e | ||
| ./test/e2e \ | ||
| -ginkgo.label-filter=$(E2E_GINKGO_LABEL_FILTER) |
There was a problem hiding this comment.
Does addition of this skip the non-ginkgo tests present in test/e2e/cert_manager_deployment_test.go?
It seems fine to me if it does, because those tests are essentially repetition of what's also in the ginkgo suite so we can skip them during e2e runs moving forward (we have had this behaviour tested for long and it isn't a problem).
There was a problem hiding this comment.
This filter only applies to tests in the Ginkgo framework. The test/e2e/cert_manager_deployment_test.go go tests would not be affected.
Makefile
Outdated
| .PHONY: lint | ||
| lint: | ||
| $(GOLANGCI_LINT) run --config .golangci.yaml | ||
| lint: |
There was a problem hiding this comment.
Not sure why these whitespace changes? (maybe your local linter is mis-behaving)
There was a problem hiding this comment.
Will undo these changes as they are not related to this PR. (Yeah. I've set the "files.trimTrailingWhitespace": true in my vscode editor)
|
/test all |
Signed-off-by: Yuedong Wu <yuewu@redhat.com>
Signed-off-by: Yuedong Wu <yuewu@redhat.com>
6b177a7 to
59a1ba7
Compare
|
/lgtm |
|
/assign @TrilokGeer |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lunarwhite, swghosh 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 |
|
/remove-hold |
|
/retest-required |
|
self-adding |
|
@lunarwhite: This pull request references CM-261 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.18.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. |
|
@lunarwhite: all tests passed! 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. |
|
/cherry-pick cert-manager-1.15 |
|
@lunarwhite: new pull request created: #251 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. |
Main changes:
--focusand--skip.--label-filterto support filtering by key-value pairs, with the contains and not contains operations for the labels that have values. (more example usages can be found in the doc)E2E_GINKGO_LABEL_FILTERin the Makefile. Append-ginkgo.label-filter=$(E2E_GINKGO_LABEL_FILTER)to the go test command."Platform:AWS","Platform:GCP"and"Platform:IBM"to cases description accordingly.E2E_GINKGO_LABEL_FILTERin the Makefile to"Platform: isSubsetOf {AWS}".Other changes:
Context().I've tested on the GCP cluster. It shows: (skipped 3 cases labeled
"Platform:AWS", 1 labeled"Platform:IBM")