Skip to content

Harden spanner system tests against stray databases - #4374

Merged
tseaver merged 1 commit into
masterfrom
spanner-system-tests-stray-dbs
Nov 9, 2017
Merged

Harden spanner system tests against stray databases#4374
tseaver merged 1 commit into
masterfrom
spanner-system-tests-stray-dbs

Conversation

@tseaver

Copy link
Copy Markdown
Contributor

Because of quota, we are sharing the instance we use to test CRUD of databases: we therefore cannot rely on having only the expected databases present, as other tests may be running simultaneously, or may have failed
in ways which left 'stray' databases in the instance.

@tseavertseaver added api: spanner Issues related to the Spanner API. testing labels Nov 9, 2017
@tseaver
tseaver requested a review from dhermesNovember 9, 2017 20:42

@dhermesdhermes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment threadspanner/tests/system/test_system.py Outdated
self.assertEqual(found, expected)
database_ids = [
database.database_id
for database in Config.INSTANCE.list_databases()]

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Because of quota, we are sharing the instance we use to test CRUD of
databases: we therefore cannot rely on having only the expected databases
present, as other tests may be running simultaneously, or may have failed
in ways which left 'stray' databases in the instance.
@tseaver
tseaverforce-pushed the spanner-system-tests-stray-dbs branch from 066d8a5 to 8f20130CompareNovember 9, 2017 20:53
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 9, 2017
@tseaver

Copy link
Copy Markdown
ContributorAuthor

#4377 is blocking the run. The system tests pass locally.

@tseaver
tseaver merged commit 16b3638 into masterNov 9, 2017
@tseaver
tseaver deleted the spanner-system-tests-stray-dbs branch November 9, 2017 21:50
This was referenced Nov 9, 2017
parthea pushed a commit that referenced this pull request Mar 9, 2026
Because of quota, we are sharing the instance we use to test CRUD of
databases: we therefore cannot rely on having only the expected databases
present, as other tests may be running simultaneously, or may have failed
in ways which left 'stray' databases in the instance.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spannerIssues related to the Spanner API.cla: yesThis human has signed the Contributor License Agreement.testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@tseaver@dhermes@googlebot