Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

test(dbapi): add retry to autocommit sample to reduce flakiness#214

Merged
c24t merged 1 commit intogoogleapis:masterfrom
larkee:deflake-tests
Jan 27, 2021
Merged

test(dbapi): add retry to autocommit sample to reduce flakiness#214
c24t merged 1 commit intogoogleapis:masterfrom
larkee:deflake-tests

Conversation

@larkee
Copy link
Copy Markdown
Contributor

@larkee larkee commented Jan 22, 2021

Fixes #211

The autocommit sample for dbapi fails when the transaction is aborted as the implementation cannot contain retry logic. This means the test must retry on Aborted errors instead.

@larkee larkee requested review from a team and c24t January 22, 2021 08:48
@larkee larkee requested a review from a team as a code owner January 22, 2021 08:48
@larkee larkee requested review from busunkim96 and removed request for a team January 22, 2021 08:48
@product-auto-label product-auto-label bot added api: spanner Issues related to the googleapis/python-spanner API. samples Issues that are directly related to samples. labels Jan 22, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 22, 2021
Copy link
Copy Markdown
Contributor

@c24t c24t left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/python-spanner API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

samples.samples.autocommit_test: test_enable_autocommit_mode failed

2 participants