Skip to content

Conversation

@thiagotnunes
Copy link
Contributor

No description provided.

The list instance filter was matching several instances, because they
contained the same prefix. We now perform an exact match instead.
@thiagotnunes thiagotnunes requested review from a team as code owners December 17, 2021 10:38
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner API. label Dec 17, 2021
@thiagotnunes
Copy link
Contributor Author

Fixes #1606

.listInstances(
Options.filter(
"name:instances/" + env.getTestHelper().getInstanceId().getInstance()))
.listInstances(Options.filter("name=" + env.getTestHelper().getInstanceId()))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem here is that : operator is a contains and we have 3 instances that start with spanner-testing. That is why the test is failing.

By using the = operator we do an exact match instead, having a single instance returned. More on operators here: https://cloud.google.com/sdk/gcloud/reference/topic/filters

@codecov
Copy link

codecov bot commented Dec 17, 2021

Codecov Report

❗ No coverage uploaded for pull request base (3.3.x@4bced4f). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             3.3.x    #1610   +/-   ##
========================================
  Coverage         ?   85.12%           
  Complexity       ?     2568           
========================================
  Files            ?      143           
  Lines            ?    14069           
  Branches         ?     1351           
========================================
  Hits             ?    11976           
  Misses           ?     1531           
  Partials         ?      562           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4bced4f...7945209. Read the comment docs.

@thiagotnunes thiagotnunes merged commit 3b4b8c6 into 3.3.x Dec 17, 2021
@thiagotnunes thiagotnunes deleted the opencensus-0.30-3.3.x branch December 17, 2021 13:36
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.

2 participants