Skip to content

chore(secretmanager): format snippets and update dependencies#14370

Merged
XrossFox merged 5 commits into
GoogleCloudPlatform:mainfrom
XrossFox:package-update-protobuf-secretmanager-snippets
Jul 14, 2026
Merged

chore(secretmanager): format snippets and update dependencies#14370
XrossFox merged 5 commits into
GoogleCloudPlatform:mainfrom
XrossFox:package-update-protobuf-secretmanager-snippets

Conversation

@XrossFox

@XrossFox XrossFox commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

  • Run black formatter on secretmanager snippet files.
  • Update protobuf, google-cloud-resource-manager, google-cloud-secret-manager, and google-crc32c.
  • Remove python version constraint for pytest in requirements-test.txt.

Fixes b/527484406

Checklist

Testing

  • I have tested this change on a live environment and verified it works as intended.

Compliance & Style


Post-Approval Actions

  • Please merge this PR for me once it is approved

   - Run black formatter on secretmanager snippet files.
   - Update protobuf, google-cloud-resource-manager, google-cloud-secret-manager, and google-crc32c.
   - Remove python version constraint for pytest in requirements-test.txt.
@product-auto-label product-auto-label Bot added api: secretmanager Issues related to the Secret Manager API. samples Issues that are directly related to samples. labels Jul 1, 2026
@XrossFox

XrossFox commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Tested using nox on python 3.10 and 3.14:

image image

@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 primarily applies code formatting and style updates across several Secret Manager snippet files and tests, alongside updating dependencies in the requirements files. The review feedback highlights critical type-handling issues where version_destroy_ttl is parsed as a string instead of an integer in command-line arguments, a missing help= keyword argument in update_secret_with_delayed_destroy.py that would cause a runtime error, and a type annotation mismatch in snippets_test.py.

Comment thread secretmanager/snippets/create_secret_with_delayed_destroy.py
Comment thread secretmanager/snippets/update_secret_with_delayed_destroy.py
Comment thread secretmanager/snippets/snippets_test.py
Comment thread secretmanager/snippets/create_secret_with_delayed_destroy.py

@angelcaamal angelcaamal 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.

LGTM!

@XrossFox XrossFox marked this pull request as ready for review July 6, 2026 19:33
@XrossFox XrossFox requested review from a team as code owners July 6, 2026 19:33
@XrossFox XrossFox merged commit 2b81d66 into GoogleCloudPlatform:main Jul 14, 2026
10 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: secretmanager Issues related to the Secret Manager API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants