Skip to content

Conversation

@olavloite
Copy link
Collaborator

@olavloite olavloite commented Dec 10, 2021

Changes the integration test for backups to only create one backup to reduce the probability of a build timeout, and increases the build timeout for the SlowTest execution to 7,200 seconds.

Fixes #1436

@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner API. label Dec 10, 2021
@olavloite olavloite added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 15, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 15, 2021
@olavloite olavloite added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 5, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 5, 2022
@olavloite olavloite marked this pull request as ready for review January 5, 2022 17:38
@olavloite olavloite requested review from a team as code owners January 5, 2022 17:38
boolean allDbOpsDone = false;
while (!allDbOpsDone) {
allDbOpsDone = true;
assertNotNull(backupMetadata.getProto());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be pushed outside of the while loop, since we only update the backupMetadata in the beginning of the try block?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good point. Done.

logger.info(String.format("Creating test database %s", db1Id));
OperationFuture<Database, CreateDatabaseMetadata> dbOp1 =
logger.info(String.format("Creating test database %s", databaseId));
OperationFuture<Database, CreateDatabaseMetadata> dbOp =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: dbOp -> databaseOperation

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

// List all backups.
logger.info("Listing all backups");
assertThat(instance.listBackups().iterateAll()).containsAtLeast(backup1, backup2);
assertThat(instance.listBackups().iterateAll()).contains(backup);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: replace assertThat by assertEquals, assertTrue, ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, here and elsewhere in this file

@olavloite olavloite added the automerge Merge the pull request once unit tests and other checks pass. label Jan 10, 2022
@gcf-merge-on-green gcf-merge-on-green bot merged commit 99970b2 into main Jan 10, 2022
@gcf-merge-on-green gcf-merge-on-green bot deleted the issue-1436 branch January 10, 2022 12:52
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/java-spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spanner.it.slow.ITBackupTest: testBackups failed

3 participants