Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run more rules concurrently when building a pex #20988

Merged
merged 5 commits into from
Jun 19, 2024

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Jun 1, 2024

This refactors the setup rules invoked to build a pex to run concurrently where they can.

This probably doesn't make too much difference in the common case at the moment, since these seem to currently run very fast (for the single sample I did, of running pants --no-local-cache test src/python/pants/backend/python/util_rules/pex_test.py), but:

There's a few moving parts across separate individually-sensible commits. This includes switching to use call-by-name syntax as a bit of an experiment.

I've labelled this as category:internal CI, fixes for not-yet-released features, etc. , not category:performance , because it doesn't seem like it has much impact at the moment.

@huonw huonw added the category:internal CI, fixes for not-yet-released features, etc. label Jun 1, 2024
@huonw huonw force-pushed the huonw/concurrent-pex-build-setup branch from 9911670 to b4bf53f Compare June 2, 2024 05:15
@huonw huonw marked this pull request as ready for review June 2, 2024 06:07
@huonw huonw requested review from benjyw, cognifloyd and thejcannon June 2, 2024 06:08
@cognifloyd cognifloyd added the backend: Python Python backend-related issues label Jun 19, 2024
@huonw huonw merged commit 2e382ad into main Jun 19, 2024
25 checks passed
@huonw huonw deleted the huonw/concurrent-pex-build-setup branch June 19, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: Python Python backend-related issues category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants