-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Prevent unwanted product test duplicated runs #20321
Conversation
50ff1c2
to
c7b7ed7
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.
very very useful
testing/trino-product-tests/src/main/java/io/trino/testng/services/VerifyProductTestGroups.java
Outdated
Show resolved
Hide resolved
testing/trino-product-tests/src/main/java/io/trino/testng/services/VerifyProductTestGroups.java
Outdated
Show resolved
Hide resolved
will convert it from a test listener to a classpath scanner, so that it can be run locally quickly |
d73a81e
to
6cc327a
Compare
testing/trino-product-tests/src/main/java/io/trino/tests/product/sqlserver/TestInsert.java
Show resolved
Hide resolved
207bbc0
to
c429eda
Compare
PTAL |
12f82ce
to
dc7515b
Compare
dc7515b
to
276fc34
Compare
rebased after the release |
|
||
public class HiveProductTest | ||
extends ProductTest | ||
{ | ||
static { | ||
TestGroups.FakeUsageForMavenDependencyChecker.fakeUse(); |
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: comment why needed
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.
class name is "fake usage for maven dependency checker". that's what i would write in a code comment. should i add more context?
@@ -46,7 +46,7 @@ public final class TestGroups | |||
public static final String OAUTH2_REFRESH = "oauth2_refresh"; | |||
public static final String MYSQL = "mysql"; | |||
public static final String TRINO_JDBC = "trino_jdbc"; | |||
public static final String QUERY_ENGINE = "qe"; | |||
public static final String QE = "qe"; // query engine |
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.
can you rename to QUERY_ENGINE as a followup?
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.
i didn't want to do replacements in convention based tests, because it's more erronous (no static checks).
the convention based need some cleanup and/or pruning (eg #20352)
let's leave it for a follow-up
|
||
assertThat(name).as("Name of %s", field) | ||
.isUpperCase() | ||
.matches("[A-Z][_A-Z0-9]+") |
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 don't you like single char test group names :P
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.
i didn't mean to prohibit them, sorry!
it was just the easiest way to have some validation.
# Run all tests in the functions and create_table groups | ||
testing/bin/ptl test run \ | ||
--environment <environment> \ | ||
[--config <environment config>] \ | ||
-- -g string_functions,create_tables | ||
-- -g functions,create_tables | ||
``` |
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.
wrong commit
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.
leftover -- i was trying to cleanup groups in convention based tests, but decided it's better not to do this in this PR. will revert.
Remove product test groups that are not used for defining test suites.
Verify that a product test has reasonably assigned groups. Incorrectly assigned groups may lead to a test executing too many times, or not executing at all.
Remove product test groups that are not used by any tests. These are meaningless. They do not need to be defined pro actively.
276fc34
to
c125d09
Compare
Verify that a product test has reasonably assigned groups. Incorrectly assigned groups may lead to a test executing too many times, or not executing at all.
relates to #15096, #20320