googleapis / googleapis/google-cloud-python

Tracking CI/Profiler Check Reliability and Timeout Issues for Lazy Imports Validation

Open
#17,710 1 comment 0 reactions 0 assignees View on GitHub
type: process
Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
3d 4h
Merged PRs (30d)
122

Description

### Determine this is the right repository

- [x] I determined this is the correct repository in which to report this bug.

### Summary of the issue
In order to prevent maintaining custom subprocess-based unit tests for PEP 810 lazy imports validation, we have removed `test_lazy_imports.py` from the `google-auth` package transport tests.

Instead, we plan to rely on the CI/profiler check to detect and prevent import performance regressions. However, the profiler check has recently timed out (e.g., in https://github.com/googleapis/google-cloud-python/pull/17705).

We are filing this issue to:
1. Track the reliability and performance of the CI/profiler check separately.
2. Investigate the timeout issues reported in https://github.com/googleapis/google-cloud-python/pull/17705.
3. Ensure that any future eager import regressions are caught reliably by CI rather than individual package unit tests.

Contributor guide

Open the contributing guide

Research direction

Review PR 17705 and the removed test_lazy_imports.py context first, then locate the CI/profiler check responsible for lazy-import validation. Investigate why the check timed out and define reliability criteria; done means the check completes consistently and catches future eager-import regressions without package-specific tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ci-cd, performance, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.