Skip to content

Restore failing test test_<service>_api_version_header_async #16218

Open

Description

@parthea
FAILED tests/unit/gapic/showcase_v1beta1/test_echo.py::test_echo_api_version_header_async - Failed: async def functions are not natively supported.

Generated test test_<service>_api_version_header_async is failing because the async test code is not marked with @pytest.mark.asyncio

It's not clear why this test started failing, but to avoid blocking development, we will comment out the test until it's fixed

Activity

  1. vchudnov-g commented on Aug 27, 2025

    @vchudnov-g
    Contributor

    Note that in draft PR googleapis/gapic-generator-python#2426, which I created earlier today, that test failure is solved, but that then revealed (caused?) other tests to fail.

  2. vchudnov-g commented on Aug 28, 2025

    @vchudnov-g
    Contributor

    Note that after the latest commit to googleapis/gapic-generator-python#2426, now this async test really is failing (before it was not even running, apparently) for the IAM methods, with a message TypeError: object _StreamingResponseIterator can't be used in 'await' expression. So it seems we may have a real async error either in the implementation or in the the test. See https://github.com/googleapis/gapic-generator-python/actions/runs/17281829015/job/49051607168?pr=2426#step:7:70

    @ohmayr for any insights.

  3. added
    type: bug
    priority: p1
    on Aug 28, 2025
  4. vchudnov-g commented on Aug 28, 2025

    @vchudnov-g
    Contributor

    Because of the possible real error, I marked this as a P1 bug.

    (If that failing test output is somehow misleading, we can lower to P2 process.)

  5. added
    priority: p2
    and removed
    priority: p1
    on Nov 5, 2025
  6. parthea commented on Mar 26, 2026

    @parthea
    ContributorAuthor

    Transferring to google-cloud-python as the code for gapic-generator will be migrated there.

  7. daniel-sanche commented on May 27, 2026

    @daniel-sanche
    Contributor

    This issue is being closed as part of a bulk review (Filter #1). Please reopen if you believe this is still relevant and requires action.

  8. added this to the Async REST GA milestone on Oct 2, 2026
  9. added
    priority: p3
    and removed
    priority: p2
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p3type: bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions