-
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
Changes from all commits
98c288a
8c1f132
c3814ad
dacd8a0
f46d5ed
f310cfb
36a8448
967177d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
# Runs the slow tests only in the nightly build | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/java8" | ||
} | ||
|
||
env_vars: { | ||
key: "JOB_TYPE" | ||
value: "slowtests" | ||
} | ||
# TODO: remove this after we've migrated all tests and scripts | ||
env_vars: { | ||
key: "GCLOUD_PROJECT" | ||
value: "gcloud-devel" | ||
} | ||
|
||
env_vars: { | ||
key: "GOOGLE_CLOUD_PROJECT" | ||
value: "gcloud-devel" | ||
} | ||
|
||
env_vars: { | ||
key: "ENABLE_FLAKYBOT" | ||
value: "true" | ||
} | ||
|
||
env_vars: { | ||
key: "GOOGLE_APPLICATION_CREDENTIALS" | ||
value: "secret_manager/java-it-service-account" | ||
} | ||
|
||
env_vars: { | ||
key: "SECRET_MANAGER_KEYS" | ||
value: "java-it-service-account" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,9 +47,10 @@ | |
</configuration> | ||
<executions> | ||
<execution> | ||
<!-- Executes unit tests --> | ||
<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> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
|
@@ -58,7 +59,7 @@ | |
<goal>test</goal> | ||
</goals> | ||
<configuration> | ||
<groups>com.google.cloud.spanner.TracerTest</groups> | ||
<groups>com.google.cloud.spanner.categories.TracerTest</groups> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
|
@@ -76,21 +77,21 @@ | |
<forkedProcessTimeoutInSeconds>3000</forkedProcessTimeoutInSeconds> | ||
</configuration> | ||
<executions> | ||
<!-- Executes serial integration tests --> | ||
<execution> | ||
<id>default</id> | ||
<configuration> | ||
<groups>com.google.cloud.spanner.IntegrationTest</groups> | ||
<excludedGroups>com.google.cloud.spanner.FlakyTest,com.google.cloud.spanner.TracerTest,com.google.cloud.spanner.ParallelIntegrationTest</excludedGroups> | ||
<groups>com.google.cloud.spanner.categories.SerialIntegrationTest</groups> | ||
</configuration> | ||
</execution> | ||
<!-- Executes parallel integration tests --> | ||
<execution> | ||
<id>parallel-integration-test</id> | ||
<goals> | ||
<goal>integration-test</goal> | ||
</goals> | ||
<configuration> | ||
<groups>com.google.cloud.spanner.ParallelIntegrationTest</groups> | ||
<excludedGroups>com.google.cloud.spanner.FlakyTest,com.google.cloud.spanner.TracerTest,com.google.cloud.spanner.IntegrationTest</excludedGroups> | ||
<groups>com.google.cloud.spanner.categories.ParallelIntegrationTest</groups> | ||
<forkCount>8</forkCount> | ||
<reuseForks>true</reuseForks> | ||
</configuration> | ||
|
@@ -365,6 +366,47 @@ | |
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>slow-tests</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>default-test</id> | ||
<configuration> | ||
<groups>com.google.cloud.spanner.categories.SlowTest</groups> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-failsafe-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>default</id> | ||
<configuration> | ||
<groups>com.google.cloud.spanner.categories.SlowTest</groups> | ||
</configuration> | ||
</execution> | ||
<!-- Overrides default configuration to skip this step --> | ||
<execution> | ||
<id>parallel-integration-test</id> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 |
||
<goals> | ||
<goal>integration-test</goal> | ||
</goals> | ||
<configuration> | ||
<skipTests>true</skipTests> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>spanner-directpath-it</id> | ||
<build> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright 2021 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.cloud.spanner.categories; | ||
|
||
/** Category of slow tests, to be run on the nightly build * */ | ||
public interface SlowTest extends IntegrationTest {} |
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.