-
Notifications
You must be signed in to change notification settings - Fork 132
chore: configure backups test to run in nightly build #1409
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
Conversation
Add a new JUnit category: SlowTest. It will be used to execute tests that are part of the nightly build. Also refactors the categories hierarchy to be easier to setup.
Configures a profile to execute only the slow tests. It will be invoked in the nightly build.
Sets up the kokoro configuration for running slow tests nightly
Warning: This pull request is touching the following templated files:
|
<id>default-test</id> | ||
<configuration> | ||
<excludedGroups>com.google.cloud.spanner.TracerTest,com.google.cloud.spanner.IntegrationTest</excludedGroups> | ||
<excludedGroups>com.google.cloud.spanner.categories.TracerTest,com.google.cloud.spanner.categories.IntegrationTest</excludedGroups> |
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 probably need to change the package name for TracerTest
further below as well (line 62)
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.
Ah yes, thanks, fixed it.
</configuration> | ||
</execution> | ||
<execution> | ||
<id>parallel-integration-test</id> |
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.
What is the intention with this execution? The name seems to indicate that it will execute parallel integration tests, but if I understand the configuration correctly, it will just skip all tests. Could we maybe add a comment to this section to explain why it's here?
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.
This is because the default configuration (line 88-98) defines an execution for the integration-test goal with such id. Thus, we need to override it in the slow tests profile to NOOP, otherwise the tests with the category ParallelIntegrationTest
will be executed (as per the default one). I added a comment in this section.
The main change of this PR is to move the
ITBackupTest
into a new JUnit category to be executed only on the nightly builds. This is because the Backup test is slow and flaky when executing several in parallel (due to RESOURCE_EXHAUSTED issues). We have done the following here:SlowTest
SerialIntegrationTest
FlakyTest
SlowTest
,SerialIntegrationTest
andParallelIntegrationTest
extend theIntegrationTest
category (in order to make configuration easier)pom.xml
to run only theSlowTest
testsAddresses #1336