Skip to content

test(spanner): add more integration tests for read-only transactions#5729

Merged
olavloite merged 2 commits into
googleapis:mainfrom
olavloite:spanner-read-only-integration-tests
May 25, 2026
Merged

test(spanner): add more integration tests for read-only transactions#5729
olavloite merged 2 commits into
googleapis:mainfrom
olavloite:spanner-read-only-integration-tests

Conversation

@olavloite
Copy link
Copy Markdown
Contributor

Adds more integration tests for read-only transactions.

Adds more integration tests for read-only transactions.
@olavloite olavloite requested review from a team as code owners May 24, 2026 17:59
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label May 24, 2026
@olavloite olavloite requested a review from sakthivelmanii May 24, 2026 17:59
@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.88%. Comparing base (a47cc84) to head (a9a7e83).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5729   +/-   ##
=======================================
  Coverage   97.88%   97.88%           
=======================================
  Files         226      226           
  Lines       55691    55691           
=======================================
+ Hits        54512    54514    +2     
+ Misses       1179     1177    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces integration tests for Spanner read-only transaction options, covering various timestamp bounds and read timestamp availability scenarios. The review feedback suggests using the server's current time instead of SystemTime::now() to avoid test flakiness caused by clock skew and recommends simplifying complex assertion logic in the tests to improve clarity and reliability.

Comment thread tests/spanner/src/read_only_transaction_options.rs Outdated
Comment thread tests/spanner/src/read_only_transaction_options.rs
@olavloite olavloite enabled auto-merge (squash) May 25, 2026 05:20
@olavloite olavloite merged commit b6b59db into googleapis:main May 25, 2026
40 checks passed
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 Spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants