Skip to content

Release 2.3.1 wheel includes broken code #323

Closed
@rhys-adams

Description

@rhys-adams

The google_api_core-2.3.1-py2.py3-none-any.whl file from PyPI includes what appears to be a patch failure:

    13059  12-15-2021 16:16   google/api_core/retry_BACKUP_3939795.py
    12781  12-15-2021 16:16   google/api_core/retry_BASE_3939795.py
    12770  12-15-2021 16:16   google/api_core/retry_LOCAL_3939795.py
    12786  12-15-2021 16:16   google/api_core/retry_REMOTE_3939795.py

This is causing my Cloud Function build to fail (log below).

Environment details

  • OS type and version: Google Cloud Build environment and local Linux (NixOS 21.05)
  • Python version: 3.9.9
  • pip version: 21.2.4
  • google-api-core version: 2.3.1

Steps to reproduce

  1. Try to deploy a Cloud Function with google-api-core in the dependency tree, eg. via a dependency on google-cloud-aiplatform in requirements.txt.
  2. Look Cloud Logs and see build failure.

Cloud Build log

Build failed: *** Error compiling './pip/google/api_core/retry_BACKUP_3939795.py'...
Sorry: IndentationError: expected an indented block (retry_BACKUP_3939795.py, line 204)

Current workaround is adding google-api-core==2.3.0 to requirements.txt.

Ref #319.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p0Highest priority. Critical issue. P0 implies highest priority.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions