-
Notifications
You must be signed in to change notification settings - Fork 1.8k
test-runner: rework output dir construction #17167
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
base: master
Are you sure you want to change the base?
Conversation
c807046
to
a7cd900
Compare
a7cd900
to
fa708d1
Compare
fa708d1
to
5b4e855
Compare
I like that the new results are sorted, but I'm not a huge fan of the added |
The But, it's also not much difference in most cases, because currently most tests get a I personally don't care a whole lot, just so long as a test always gets the same output dir regardless of how you run it. So if you insist, I'll change it, and if we ever get a clash in the future, we can deal with it then. |
The old code would compare all the test group names to work out some sort of common path, but it didn't appear to work consistently, sometimes placing output in a top-level dir, other times in one or more subdirs. (I confess, I do not quite understand what it's supposed to do). This is a very simple rework that simply looks at all the test group paths, removes common leading components, and uses the remainder as the output directory. This should work because groups paths are unique, and means we get a output dir tree of roughly the same shape as the test groups in the runfiles and the test source dirs themselves. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Signed-off-by: Rob Norris <[email protected]>
5b4e855
to
b2826db
Compare
@robn I gave this a test and turns out my comment is unfounded - the main test results still show up in:
... just like before. 99.9% of the time I just look at that, so the the |
@tonyhutter thank you! Phew, because I was trying to imagine your workflow and I couldn't quite see it :) |
[Sponsors: Klara, Inc., Wasabi Technology, Inc.]
Motivation and Context
Test output dirs are inconsistent. Sometimes things go under
functional/
, sometimes not, and single test mode doesn't always do the same thing as the full test suite, even though the runfile group appears the same.Description
The old code would compare all the test group names to work out some sort of common path, but it didn't appear to work consistently, sometimes placing output in a top-level dir, other times in one or more subdirs. (I confess, I do not quite understand what it's supposed to do).
This is a very simple rework that simply looks at all the test group paths, removes common leading components, and uses the remainder as the output directory. This should work because groups paths are unique, and means we get a output dir tree of roughly the same shape as the test groups in the runfiles and the test source dirs themselves.
How Has This Been Tested?
Playing with running different tests and comparing output. The main comparison is a full ZTS run and comparing the output dir structure with one from a few days ago: before after.
Simple example. The
acl
tag has some subgroups,alloc_class
does not. Without this change:With:
Types of changes
Checklist:
Signed-off-by
.