chore: skip hmac tests until b/493225655 is fixed by nidhiii-27 · Pull Request #1771 · googleapis/python-storage · GitHub
Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

chore: skip hmac tests until b/493225655 is fixed#1771

Merged
nidhiii-27 merged 2 commits into
mainfrom
skip-hmac-tests
Mar 16, 2026
Merged

chore: skip hmac tests until b/493225655 is fixed#1771
nidhiii-27 merged 2 commits into
mainfrom
skip-hmac-tests

Conversation

@nidhiii-27

Copy link
Copy Markdown
Contributor

Skipping hmac tests if they fail with a 412 PreconditionFailed. This is occurring because the testing project python-docs-samples-tests has the constraints/iam.disableServiceAccountKeyCreation Organization Policy enforced.

@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: storage Issues related to the googleapis/python-storage API. samples Issues that are directly related to samples. labels Mar 16, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

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

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.

Code Review

This pull request adds logic to skip HMAC tests when they fail due to a specific organization policy. The implementation in the new_hmac_key fixture is mostly correct, and I've suggested a small improvement for re-raising exceptions to preserve the stack trace. Additionally, test_create_key was missed and will still fail; I've provided a suggestion to apply the same skipping logic there to ensure all relevant tests are skipped as intended.

Comment thread samples/snippets/hmac_samples_test.py Outdated
Comment thread samples/snippets/hmac_samples_test.py Outdated
@nidhiii-27 nidhiii-27 marked this pull request as ready for review March 16, 2026 17:55
@nidhiii-27 nidhiii-27 requested review from a team as code owners March 16, 2026 17:55
@nidhiii-27 nidhiii-27 requested a review from polong-lin March 16, 2026 17:55
@nidhiii-27 nidhiii-27 merged commit 141f7ac into main Mar 16, 2026
15 checks passed
@nidhiii-27 nidhiii-27 deleted the skip-hmac-tests branch March 16, 2026 17:58
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. samples Issues that are directly related to samples. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants