Skip to content

chore: remove lazy loading to demonstrate regression#17690

Draft
hebaalazzeh wants to merge 3 commits into
test-lazy-modules-basefrom
test-lazy-modules-regression
Draft

chore: remove lazy loading to demonstrate regression#17690
hebaalazzeh wants to merge 3 commits into
test-lazy-modules-basefrom
test-lazy-modules-regression

Conversation

@hebaalazzeh

Copy link
Copy Markdown
Contributor

This PR is a demonstration to verify that the CI import-profiler correctly catches performance regressions.

It was opened against the test-lazy-modules-base branch, which simulates a package with fast, lazy-loaded imports (0ms). In this PR, I have restored the 4,300 lines of heavy static imports to google-cloud-compute/init.py.

This effectively simulates the scenario where a PR "removes" lazy loading from a package, causing a massive latency regression. The CI import-profiler check should flag this regression and fail the presubmit, as requested by reviewers.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

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.

1 participant