-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
convert some jobs to Ginkgo --label-filter #32911
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
sig/testing
Categorizes an issue or PR as relevant to SIG Testing.
Comments
carlory
added
the
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
label
Jul 5, 2024
k8s-ci-robot
added
the
needs-sig
Indicates an issue or PR lacks a `sig/foo` label and requires one.
label
Jul 5, 2024
/sig testing |
k8s-ci-robot
added
sig/testing
Categorizes an issue or PR as relevant to SIG Testing.
and removed
needs-sig
Indicates an issue or PR lacks a `sig/foo` label and requires one.
labels
Jul 5, 2024
/cc @BenTheElder |
@carlory it will be super useful to write some notes on how to perform the migration, so we document it and achieve some consistency to avoid different groups to end with different solutions to the same problem |
Here's a proposal. @carlory: if this looks good, copy it into the description to ensure that it remains visible?
|
13 tasks
aojea
added
the
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
label
Jul 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
sig/testing
Categorizes an issue or PR as relevant to SIG Testing.
Why we need this change:
How to do it
Some tips for figuring out how to replace
--focus/skip
with--label-filter
:go test -v ./test/e2e -args -list-tests
(same fore2e_node
) shows all tests.[]
are also labels. Only those listed bygo test -v ./test/e2e -args -list-labels
are proper labels. If you find that you need to filter by something that isn't a label yet, then replace the inline text withWithLabel
._output/bin/ginkgo --dry-run [--focus/skip/label-filter=...] ./test/e2e
can be used to compare how many and, when adding-v
, which tests would run. Note that statistics for actual runs may differ when tests ask to be skipped when invoked. (install ginkgo viamake ginkgo
)If a job has a "canary" version, update that version first and try it out.
When converting some real jobs:
Related-to: ...
(notFixes: ...
!).After converting a pre-submit job successfully, do the same for the corresponding periodic job.
Some best practices:
!Flaky
even if you currently don't have flaky tests. Having it in the jobs is convenient when some tests turns out to be problematic and needs to be disable temporarily.Feature: isEmpty
.Feature: containsAny <my feature> && Feature: isSubsetOf <my feature>
runs tests with have the<my feature>
label and no other unknown features. Use this in dedicated jobs for that feature. Note that e2e_node usesNodeFeature
for the same purpose.!Serial
when runningginkgo -p
and there is no need for separate serial/parallel jobs.!Slow
and!Serial
in pre-submits and only run the skipped tests in periodic jobs.What should be cleaned up or changed:
The text was updated successfully, but these errors were encountered: