FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: harden pytest fixture setup stage by cojenco · Pull Request #1323 · googleapis/python-storage · GitHub

This repository was archived by the owner on Mar 31, 2026. It is now read-only.
/ python-storage Public archive

test: harden pytest fixture setup stage - #1323

Merged
cojenco merged 2 commits into
googleapis:mainfrom
cojenco:fixture-buckets
Jul 9, 2024
Merged

test: harden pytest fixture setup stage#1323
cojenco merged 2 commits into
googleapis:mainfrom
cojenco:fixture-buckets

Conversation

cojenco commented Jul 8, 2024

Copy link
Copy Markdown
Contributor

Fixes #1316
Fixes #1315
Fixes #1314
Fixes #1312
Fixes #1310
Fixes #1300

cojenco requested review from a team July 8, 2024 22:36
product-auto-label Bot added size: s Pull request size is small. api: storage Issues related to the googleapis/python-storage API. labels Jul 8, 2024
cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 8, 2024
gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 8, 2024
cojenco merged commit ed7cbba into googleapis:main Jul 9, 2024
Comment thread tests/system/conftest.py
bucket = storage_client.bucket(shared_bucket_name)
bucket.versioning_enabled = True
_helpers.retry_429_503(bucket.create)()
# Create the bucket only if it doesn't yet exist.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Under what circumstances would the bucket already exist? Do we know?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The flaky test logs returned a 409 conflict error where a fixture bucket already existed. I'm guessing a server connection reset may have happened midway, causing the pytest fixture to rerun, and hence hitting the conflict error.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: storage Issues related to the googleapis/python-storage API. size: s Pull request size is small.

Projects

None yet

3 participants


Back | FazBrowse Home | New Git URL