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
Allow test-runner to filter test groups by tag #6788
Conversation
5aa64da
to
a9582ff
Compare
|
@jwk404 Would you mind providing input on this PR? |
|
Thanks! Now we can easily add travis.yml from #5786! |
|
Looks like I broke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nice addition to this would be the ability to treat each test name as a tag. That would allow you to easily do things like -T zpool_create_009_neg ' to run a specific test case. Taking that one step farther you could extend this to allow wildcards, i.e -T zpool_import_features*`.
scripts/zfs-tests.sh
Outdated
| TAGSARG= | ||
| if [[ -n $TAGS ]]; then | ||
| TAGSARG="-T $TAGS" | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could simplify this by having TAGS="functional" by default. Then you can unconditionally pass -T $TAGS to test-runner to remove the need for TAGSARG.
tests/runfiles/linux.run
Outdated
| @@ -8,7 +8,6 @@ | |||
| # source. A copy of the CDDL is also available via the Internet at | |||
| # http://www.illumos.org/license/CDDL. | |||
| # | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: let's keep this line of white space
a9582ff
to
48d7f96
Compare
Codecov Report
@@ Coverage Diff @@
## master #6788 +/- ##
==========================================
+ Coverage 75.21% 75.24% +0.02%
==========================================
Files 297 297
Lines 94441 94422 -19
==========================================
+ Hits 71036 71046 +10
+ Misses 23405 23376 -29
Continue to review full report at Codecov.
|
48d7f96
to
47618e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is zfs-test.sh still failing? I've looked over the change, and don't see anything that should cause a problem.
|
@jwk404 |
ca1a56e
to
4904674
Compare
|
I went ahead and updated the PR to include a |
97c501e
to
7893d9f
Compare
tests/runfiles/linux.run
Outdated
| @@ -18,29 +18,35 @@ timeout = 600 | |||
| post_user = root | |||
| post = cleanup | |||
| outputdir = /var/tmp/test_results | |||
| tags = [] | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is a tags field needed here at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refreshed. Defaulted to having the tag functional for any test group without tags specified.
Enable test-runner to accept a list of tags to identify which test groups the user wishes to run. Also allow test-runner to perform multiple iterations of a test run. Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
7893d9f
to
478edaf
Compare
Enable test-runner to accept a list of tags to identify which test groups the user wishes to run. Also allow test-runner to perform multiple iterations of a test run. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes openzfs#6788
Enable test-runner to accept a list of tags to identify which test groups the user wishes to run. Also allow test-runner to perform multiple iterations of a test run. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes openzfs#6788
Enable test-runner to accept a list of tags to identify which test groups the user wishes to run. Also allow test-runner to perform multiple iterations of a test run. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes openzfs#6788
Enable test-runner to accept a list of tags to identify which test groups the user wishes to run. Also allow test-runner to perform multiple iterations of a test run. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes openzfs#6788
Enable test-runner to accept a list of tags to identify which test groups the user wishes to run. Also allow test-runner to perform multiple iterations of a test run. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes #6788
Enable test-runner to accept a list of tags to identify which test groups the user wishes to run. Also allow test-runner to perform multiple iterations of a test run. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes openzfs#6788
Enable test-runner to accept a list of tags to identify which test groups the user wishes to run. Also allow test-runner to perform multiple iterations of a test run. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes openzfs#6788
Enable test-runner to accept a list of tags to identify which test groups the user wishes to run. Also allow test-runner to perform multiple iterations of a test run. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Wren Kennedy <john.kennedy@delphix.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Closes openzfs#6788
Description
Enable test-runner to accept a list of tags to identify
which test groups the user wishes to run.
Motivation and Context
I would like to use these tags to generate different classes of test runs in the future.
For example, a "trivial" test run or a "fast" test run could be useful for fuzz testing.
I would also like to allow buildbot to use the tags during zfs-test execution and allow
developers to specify tags to run in their commit messages.
How Has This Been Tested?
Locally in a VM.
Types of changes
Checklist:
Signed-off-by.