🌱 Tag current e2e tests as PR-Blocking#1390
🌱 Tag current e2e tests as PR-Blocking#1390k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
Conversation
✅ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
This is where the inspiration is coming from:
CAPI is using tags like |
|
|
||
| # to set multiple ginkgo skip flags, if any | ||
| ifneq ($(strip $(E2E_GINKGO_SKIP)),) | ||
| _SKIP_ARGS := $(foreach arg,$(strip $(E2E_GINKGO_SKIP)),-skip="$(arg)") |
There was a problem hiding this comment.
for now ,there is no SKIP test , you will add the E2E full test into this skip list (so it will not run every PR
but should be daily/weekly or manual trigger?)
There was a problem hiding this comment.
Actually my plan was to use focus to run the default tests (E2E_GINKGO_FOCUS="\[PR-Blocking\]"). Then for the e2e full test we would skip PR-Blocking since it would anyway run on all PRs. This is the same way that CAPI has done it.
Here CAPI focus on PR-Blocking for their default e2e test: https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/cluster-api/cluster-api-presubmits-main.yaml#L120-L150
And here they skip PR-Blocking and other tests that would anyway run separately: https://github.com/kubernetes/test-infra/blob/b27527630f6d4c0f2787f0362efd54c4cab5fbd6/config/jobs/kubernetes-sigs/cluster-api/cluster-api-presubmits-main.yaml#L222-L256
mdbooth
left a comment
There was a problem hiding this comment.
Very much in favour of this. Happy to approve once we've resolved the ginkgo args question.
| test-e2e: e2e-prerequisites ## Run e2e tests | ||
| time $(GINKGO) --failFast -trace -progress -v -tags=e2e --nodes=$(E2E_GINKGO_PARALLEL) $(E2E_GINKGO_ARGS) ./test/e2e/suites/e2e/... -- -config-path="$(E2E_CONF_PATH)" -artifacts-folder="$(ARTIFACTS)" --data-folder="$(E2E_DATA_DIR)" $(E2E_ARGS) | ||
| time $(GINKGO) --failFast -trace -progress -v -tags=e2e --nodes=$(E2E_GINKGO_PARALLEL) \ | ||
| --focus="$(E2E_GINKGO_FOCUS)" $(_SKIP_ARGS) $(E2E_GINKGO_ARGS) ./test/e2e/suites/e2e/... -- \ |
There was a problem hiding this comment.
Does this error if E2E_GINKGO_FOCUS is empty? Do we need the same dance as on lines 131-133 above for skip?
If not, can we also omit the dance for E2E_GINKGO_SKIP?
There was a problem hiding this comment.
It works even if E2E_GINKGO_FOCUS is empty. I actually stole it from CAPI. They also have the same _SKIP_ARGS and I think this is because an empty string would match everything. So empty focus is no problem, we just run all the tests. Skipping everything on the other hand would not be great.
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lentzi90, mdbooth 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 |
seanschneeweiss
left a comment
There was a problem hiding this comment.
/lgtm
Thank you for taking such a close look at how CAPI solves the same challenge and adapting to their implementation.
|
Some kind of temporary issue with the devstack from what I understand |
|
#1397 tracking |
|
/test pull-cluster-api-provider-openstack-e2e-test |
This is preparation for adding more e2e tests which we may not want to run on all PRs. Also adds E2E_GINKGO_FOCUS and E2E_GINKGO_SKIP as convenience variables, and made E2E_GINKGO_PARALLEL configurable
081e9ed to
11198e0
Compare
|
Rebased to get the CI fix. Tests are passing 🎉 |
|
@lentzi90 THANKS A LOT!!! |
|
/lgtm |
What this PR does / why we need it:
This is preparation for adding more e2e tests which we may not want to run on all PRs. Also adds E2E_GINKGO_FOCUS and E2E_GINKGO_SKIP as convenience variables, and made E2E_GINKGO_PARALLEL configurable
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Special notes for your reviewer:
TODOs: