-
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
Switch ensureTestNamingConvention to run in JUnit to reduce test setups #19400
Switch ensureTestNamingConvention to run in JUnit to reduce test setups #19400
Conversation
Build is 🔴
|
28dee7c
to
ee4d245
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.
LGTM assuming a green build
ee4d245
to
f7102a8
Compare
f7102a8
to
e1eea40
Compare
e1eea40
to
2ab7c28
Compare
LGTM. I've restarted two failing jobs (timed out) |
For many test classes, this it the last method that is not converted. For example, running `TestInformationSchemaConnector` with TestNG will run only this method. Moving this will make tests like `TestInformationSchemaConnector` JUnit-only and improve test overall time (fewer `createQueryRunner` invocations). Obviously, it can be the first JUnit test method for some other classes, but - the train cannot be stopped. We do this sooner or later. - `AbstractTestQueries` are already JUnit; `BaseConnectorTest` extends from `AbstractTestQueries` and `BaseConnectorTest` are most likely to most expensive setups, because they create dependant services.
2d816b5
to
5d1bd01
Compare
( rebased after #19421 merged ) |
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
I assume you will continue with this when you get a chance @findepi |
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
For many test classes, this it the last method that is not converted. For example, running
TestInformationSchemaConnector
with TestNG will run only this method. Moving this will make tests likeTestInformationSchemaConnector
JUnit-only and improve test overall time (fewercreateQueryRunner
invocations).Obviously, it can be the first JUnit test method for some other classes, but
AbstractTestQueries
are already JUnit;BaseConnectorTest
extends fromAbstractTestQueries
andBaseConnectorTest
are most likely to most expensive setups, because they create dependant services.Resubmitting #19329 from within the repo.