Skip to content

chore: update googleapis and regenerate#17211

Merged
suztomo merged 1 commit into
googleapis:mainfrom
suztomo:librarianops-generateall-20260520T175158Z
May 20, 2026
Merged

chore: update googleapis and regenerate#17211
suztomo merged 1 commit into
googleapis:mainfrom
suztomo:librarianops-generateall-20260520T175158Z

Conversation

@suztomo
Copy link
Copy Markdown
Member

@suztomo suztomo commented May 20, 2026

Update googleapis to the latest commit and regenerate all client libraries.

@suztomo suztomo requested review from a team as code owners May 20, 2026 17:56
@suztomo suztomo requested review from tswast and removed request for a team May 20, 2026 17:56
@snippet-bot
Copy link
Copy Markdown

snippet-bot Bot commented May 20, 2026

Here is the summary of changes.

You are about to add 19 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@suztomo suztomo requested a review from ohmayr May 20, 2026 18:03
Copy link
Copy Markdown
Contributor

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

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 introduces significant updates across several libraries, including the addition of GlobalVmExtensionPolicies and RolloutPlans to the Compute package, and AssessmentTask support to BigQuery Migration. Feedback identifies a bug in the Compute REST transport where logging.log is called without a required log level and recommends replacing broad, silent exception blocks with specific error logging to improve debuggability and prevent masking issues.

.. code-block:: python
class MyCustomGlobalVmExtensionPoliciesInterceptor(GlobalVmExtensionPoliciesRestInterceptor):
def pre_aggregated_list(self, request, metadata):
logging.log(f"Received request: {request}")
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.

medium

The logging.log function requires a log level as its first argument (e.g., logging.INFO). Using it with only a message string will result in a TypeError. Consider using logging.info or providing a level.

Suggested change
logging.log(f"Received request: {request}")
logging.info(f"Received request: {request}")

method = transcoded_request["method"]
try:
request_payload = type(request).to_json(request)
except:
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.

medium

Avoid broad exception blocks that silently return None. Instead, catch Exception and log the error (e.g., using logging.warning) to aid in debugging and prevent masking underlying issues.

            except Exception as e:
                logging.warning(f"Unexpected error: {e}")
References
  1. Avoid broad except Exception: blocks that silently return None. Instead, log the exception (e.g., using logger.warning) to aid in debugging and prevent masking underlying issues.

@suztomo
Copy link
Copy Markdown
Member Author

suztomo commented May 20, 2026

"unit test / unit (3.13)" failed. Searching for "error", I found these log messages:

2026-05-20T18:12:23.0022642Z tests/unit/test_fileio.py::TestBlobWriterBinary::test_reject_wrong_chunk_size
2026-05-20T18:12:23.0025441Z   /home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/.nox/unit-3-13-protobuf_implementation-upb/lib/python3.13/site-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: <google.cloud.storage.fileio.BlobWriter object at 0x7f5f83fc3f70>
2026-05-20T18:12:23.0027397Z   
2026-05-20T18:12:23.0027640Z   Traceback (most recent call last):
2026-05-20T18:12:23.0028760Z     File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/tests/unit/test_fileio.py", line 336, in test_reject_wrong_chunk_size
2026-05-20T18:12:23.0029833Z       _ = self._make_blob_writer(blob)
2026-05-20T18:12:23.0031163Z     File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/tests/unit/test_fileio.py", line 49, in _make_blob_writer
2026-05-20T18:12:23.0032492Z       return BlobWriter(*args, **kwargs)
2026-05-20T18:12:23.0033494Z     File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/google/cloud/storage/fileio.py", line 315, in __init__
2026-05-20T18:12:23.0034604Z       self._chunk_size = chunk_size or blob.chunk_size or DEFAULT_CHUNK_SIZE
2026-05-20T18:12:23.0034994Z       ^^^^^^^^^^^^^^^^
2026-05-20T18:12:23.0035633Z     File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/google/cloud/storage/fileio.py", line 340, in _chunk_size
2026-05-20T18:12:23.0036308Z       raise ValueError(
2026-05-20T18:12:23.0036601Z           "Chunk size must be a multiple of %d." % CHUNK_SIZE_MULTIPLE
2026-05-20T18:12:23.0036923Z       )
2026-05-20T18:12:23.0037141Z   ValueError: Chunk size must be a multiple of 262144.
2026-05-20T18:12:23.0037421Z   
2026-05-20T18:12:23.0037679Z   During handling of the above exception, another exception occurred:
2026-05-20T18:12:23.0038023Z   
2026-05-20T18:12:23.0038186Z   Traceback (most recent call last):
2026-05-20T18:12:23.0038865Z     File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/google/cloud/storage/fileio.py", line 422, in close
2026-05-20T18:12:23.0039548Z       self._upload_chunks_from_buffer(1)
2026-05-20T18:12:23.0039790Z       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
2026-05-20T18:12:23.0040532Z     File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/google/cloud/storage/fileio.py", line 390, in _upload_chunks_from_buffer
2026-05-20T18:12:23.0041262Z       self._initiate_upload()
2026-05-20T18:12:23.0041478Z       ~~~~~~~~~~~~~~~~~~~~~^^
2026-05-20T18:12:23.0042271Z     File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/google/cloud/storage/fileio.py", line 358, in _initiate_upload
2026-05-20T18:12:23.0042947Z       retry = self._retry
2026-05-20T18:12:23.0043154Z               ^^^^^^^^^^^
2026-05-20T18:12:23.0043429Z   AttributeError: 'BlobWriter' object has no attribute '_retry'
2026-05-20T18:12:23.0043743Z   
2026-05-20T18:12:23.0044000Z   Enable tracemalloc to get traceback where the object was allocated.
2026-05-20T18:12:23.0044555Z   See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
2026-05-20T18:12:23.0045126Z     warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
2026-05-20T18:12:23.0045394Z 
2026-05-20T18:12:23.0045567Z tests/unit/test_fileio.py::TestBlobWriterBinary::test_seek_fails
2026-05-20T18:12:23.0046986Z   /home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/.nox/unit-3-13-protobuf_implementation-upb/lib/python3.13/site-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: <google.cloud.storage.fileio.BlobWriter object at 0x7f5f80990d90>
2026-05-20T18:12:23.0048304Z   
2026-05-20T18:12:23.0048482Z   Traceback (most recent call last):
2026-05-20T18:12:23.0049153Z     File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/google/cloud/storage/fileio.py", line 422, in close
2026-05-20T18:12:23.0049824Z       self._upload_chunks_from_buffer(1)
2026-05-20T18:12:23.0050065Z       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
2026-05-20T18:12:23.0050804Z     File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-storage/google/cloud/storage/fileio.py", line 392, in _upload_chunks_from_buffer
2026-05-20T18:12:23.0051701Z       upload, transport = self._upload_and_transport
2026-05-20T18:12:23.0051973Z       ^^^^^^^^^^^^^^^^^
2026-05-20T18:12:23.0052205Z   TypeError: cannot unpack non-iterable Mock object

@suztomo
Copy link
Copy Markdown
Member Author

suztomo commented May 20, 2026

Interestingly retry succeeded in "unit test / unit (3.13)".

@suztomo suztomo enabled auto-merge (squash) May 20, 2026 21:28
@suztomo suztomo merged commit 9700dfc into googleapis:main May 20, 2026
52 of 62 checks passed
@suztomo suztomo deleted the librarianops-generateall-20260520T175158Z branch May 20, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants