New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e2e: test labels #121394
e2e: test labels #121394
Conversation
Skipping CI for Draft Pull Request. |
@aojea : rebased, please lgtm again. |
/remove-sig api-machinery |
it seems I broke you sorry about that |
This changes the text registration so that tags for which the framework has a dedicated API (features, feature gates, slow, serial, etc.) those APIs are used. Arbitrary, custom tags are still left in place for now.
This checks that the With* label functions are used instead of the previous inline tags. To catch strings passed to Ginkgo directly instead of the framework wrapper functions, the final test specs are checked.
2710abf
to
338fe7a
Compare
Hey, it's working as intended - good check! 😁 Let me fix that... would have been trivial if I had remembered to run
|
/test pull-kubernetes-conformance-kind-ga-only-parallel |
/assign |
/retest |
@pohly: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
/triage accepted |
/lgtm |
LGTM label has been added. Git tree hash: ecbc08a4c38706e5bb76db1a22cd06d39ffb7800
|
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Adding tags with the new framework helper functions also adds them as Ginkgo labels. Labels enable much more flexible filtering of specs. The goal is to register all tests this way, with no or only minimal changes to the full test names, so existing regular expressions should continue to work.
There's one exception: a space now gets inserted around tags, which wasn't always the case before. If a regular expression in a Prow job is sensitive to white space, then it will not match anymore.
Which issue(s) this PR fixes:
Related-to: kubernetes/enhancements#3041
The KEP discusses semantic changes. Those are not part of this PR. Instead, the goal is to remain as close as possible to the current test names.
Special notes for your reviewer:
A subset was merged in #121391. Announced in https://groups.google.com/a/kubernetes.io/g/dev/c/DTFEng143NY
Does this PR introduce a user-facing change?