Skip to content

Conversation

@chrisnovakovic
Copy link
Contributor

The end-to-end tests that check whether pip_library correctly applies the py:zip-unsafe label to a zip-unsafe target depend on two third-party Python modules, PyYAML and grpcio. The pre-built wheels on PyPI are architecture-specific, so their versions have to be kept in line with ones for which pre-built wheels are available on PyPI (otherwise pip will take > 10 minutes and a lot of resources to build them from source); even when a pre-built wheel is available for the SOABI in question, the download is disproportionately large for such a simple test (7-12MB for grpcio, depending on the SOABI).

Replace the pip_library zip safety tests with a single, fully self-contained e2e test that occurs within an e2e-specific Please repo, requiring no downloads from PyPI.

The end-to-end tests that check whether `pip_library` correctly applies
the `py:zip-unsafe` label to a zip-unsafe target depend on two
third-party Python modules, PyYAML and grpcio. The pre-built wheels on
PyPI are architecture-specific, so their versions have to be kept in
line with ones for which pre-built wheels are available on PyPI
(otherwise pip will take > 10 minutes and a lot of resources to build
them from source); even when a pre-built wheel is available for the
SOABI in question, the download is disproportionately large for such a
simple test (7-12MB for grpcio, depending on the SOABI).

Replace the `pip_library` zip safety tests with a single, fully
self-contained e2e test that occurs within an e2e-specific Please repo,
requiring no downloads from PyPI.
@chrisnovakovic
Copy link
Contributor Author

The Python 3.14/stable please_pex test is several orders of magnitude faster now, which was the impetus for making this change - previously this test would take over 10 minutes to execute and would occasionally time out while pip built grpcio from source.

@chrisnovakovic chrisnovakovic merged commit 8e1815f into please-build:master Oct 14, 2025
26 of 28 checks passed
@chrisnovakovic chrisnovakovic deleted the local-zip-safe-label-tests branch October 14, 2025 16:28
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.

2 participants