Skip to content

[v3-2-test] Speed up cleanup_python_generated_files by skipping irrelevant dirs (#64927)#64930

Merged
potiuk merged 1 commit intov3-2-testfrom
backport-27258d5-v3-2-test
Apr 8, 2026
Merged

[v3-2-test] Speed up cleanup_python_generated_files by skipping irrelevant dirs (#64927)#64930
potiuk merged 1 commit intov3-2-testfrom
backport-27258d5-v3-2-test

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions bot commented Apr 8, 2026

Replace two rglob calls with a single os.walk that prunes node_modules
and hidden directories (e.g. .git, .venv) in-place, avoiding unnecessary
traversal of large directory trees that never contain relevant .pyc files.
(cherry picked from commit 27258d5)

Co-authored-by: Jarek Potiuk jarek@potiuk.com

…evant dirs (#64927)

Replace two rglob calls with a single os.walk that prunes node_modules
and hidden directories (e.g. .git, .venv) in-place, avoiding unnecessary
traversal of large directory trees that never contain relevant .pyc files.
(cherry picked from commit 27258d5)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch labels Apr 8, 2026
@potiuk potiuk marked this pull request as ready for review April 8, 2026 22:27
@potiuk potiuk merged commit 8cbe7b9 into v3-2-test Apr 8, 2026
3 checks passed
@potiuk potiuk deleted the backport-27258d5-v3-2-test branch April 8, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant