Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRun only a supported set of WPT test types by default. #26772
Conversation
highfive
commented
Jun 3, 2020
|
Heads up! This PR modifies the following files:
|
|
r? @Manishearth |
| parser.add_argument('--no-default-test-types', default=False, action="store_true", | ||
| help="Run the default set of test types provided by wptrunner"), |
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
jdm
Jun 3, 2020
•
Author
Member
Default in this case refers to the test of test types that are selected by mach's test-wpt command when this flag is not present. Is there a better way to describe it?
This comment has been minimized.
This comment has been minimized.
jdm
Jun 3, 2020
Author
Member
It's true - the default in the command name refers to the user experience and the flags selected by test-wpt. The default in the description refers to the flags selected by wptrunner without any other input.
This comment has been minimized.
This comment has been minimized.
SimonSapin
Jun 3, 2020
Member
Default in this case refers to […] when this flag is not present.
In that case, the flag’s description "run the default set" is wrong since setting the flag makes a different set be used than the one called default.
Unless the "by wptrunner" (as opposed to mach) means that it intentionally refers to a different set. In this case, it’s not great to use the same word "default" to refer to two different sets in the flag’s name and its description.
|
@SimonSapin I tried a different description. |
|
Sorry to nit pick :) This description is better but |
|
r=me, I also prefer all-test-types |
|
So, I like the current argument name because it also allows |
|
oh! i see. can you mention --test-types in the help, then? |
|
Done. |
|
Oh I hadn’t realized. Does |
|
No, |
|
Personally, as the person who interacts most with wptrunner internals, I am interested in the following use cases:
|
|
r=me |
|
@bors-servo r=manishearth |
|
|
|
|
jdm commentedJun 3, 2020
wptrunner introduced a new test type for print reftests, and by default any unsupported type causes the test runner to report an unexpected error, even if none of those tests are run. These changes avoid similar breakage by limiting the default test types to ones that are supported by our test runners.