Attempt retry hook for flaky regression test cases. by dhermes · Pull Request #535 · googleapis/google-cloud-python

@googlebot googlebot added the cla: yes

This human has signed the Contributor License Agreement.

label

Jan 15, 2015
Fixes googleapis#531.

To "test" that this works, feel free to add a test case like:

    x = 0

    def test_retry(self):
        # Feel free to vary 3 higher and higher, should always be
        # NUM_RETRIES in the final error message.
        if self.x < 3:
            self.x += 1
            self.assertEqual(self.x, object())  # Fails
        else:
            self.assertTrue(True)

@dhermes

@dhermes

Also removing AssertionError from list of retry classes.

@dhermes dhermes added the do not merge

Indicates a pull request not ready for merge, due to either quality or timing.

label

Jan 22, 2015

dhermes added a commit to dhermes/google-cloud-python that referenced this pull request

Jan 22, 2015
This is to address flaky test failures.

See googleapis#535 for more discussion.

dhermes added a commit to dhermes/google-cloud-python that referenced this pull request

Jan 22, 2015

@dhermes

@dhermes dhermes deleted the retry-flaky-regression-cases branch

January 22, 2015 21:12

This was referenced

Aug 24, 2015

This was referenced

Mar 16, 2016

parthea pushed a commit that referenced this pull request

Aug 15, 2023

vchudnov-g pushed a commit that referenced this pull request

Sep 20, 2023
* chore(python): drop python 3.6

Source-Link: googleapis/synthtool@4f89b13
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c

* add api_description to .repo-metadata.json

* require python 3.7+ in setup.py

* remove python 3.6 sample configs

* remove require check for python 3.6

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>

parthea pushed a commit that referenced this pull request

Oct 21, 2023

parthea pushed a commit that referenced this pull request

Oct 21, 2023

parthea pushed a commit that referenced this pull request

Oct 21, 2023
Removing ambiguous message.

parthea pushed a commit that referenced this pull request

Aug 21, 2025
Source-Link: googleapis/synthtool@6ed3a83
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3abfa0f1886adaf0b83f07cb117b24a639ea1cb9cffe56d43280b977033563eb

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

parthea pushed a commit that referenced this pull request

Sep 16, 2025
Source-Link: googleapis/synthtool@6ed3a83
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3abfa0f1886adaf0b83f07cb117b24a639ea1cb9cffe56d43280b977033563eb

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

parthea pushed a commit that referenced this pull request

Nov 22, 2025

parthea pushed a commit that referenced this pull request

Nov 24, 2025
…cp/templates/python_library/.kokoro (#535)

Source-Link: googleapis/synthtool@b4fe62e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3bf87e47c2173d7eed42714589dc4da2c07c3268610f1e47f8e1a30decbfc7f1

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

parthea pushed a commit that referenced this pull request

Nov 24, 2025
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>

parthea pushed a commit that referenced this pull request

Nov 24, 2025
* fix: Reenable staleness bot

Reenable staleness bot on the repo

* Update auto-label.yaml

parthea pushed a commit that referenced this pull request

Nov 24, 2025

parthea pushed a commit that referenced this pull request

Nov 25, 2025
* fix: Reenable staleness bot

Reenable staleness bot on the repo

* Update auto-label.yaml

parthea pushed a commit that referenced this pull request

Mar 2, 2026

parthea pushed a commit that referenced this pull request

Mar 6, 2026

parthea pushed a commit that referenced this pull request

Mar 6, 2026
Add transaction management, including utils for handling spanner sessions and connections.

Co-authored-by: MF2199 <38331387+mf2199@users.noreply.github.com>
Co-authored-by: Chris Kleinknecht <libc@google.com>

parthea pushed a commit that referenced this pull request

Mar 9, 2026