Repository navigation
ci: stop building the Rust extension in the Python lint job - #596
Merged
Merged
Conversation
`uv run` syncs the project before running, which compiles the extension through the PEP 517 backend. The lint job never needed it: ruff reads source, and ty resolves the native module from the checked-in .pyi stubs. It became load-bearing when #595 added async-streaming and parquet-async to [tool.maturin] features. rustls/tokio/reqwest entered the graph and the build alone took 5m06s against a 5-minute timeout, which GitHub surfaces as a cancelled job rather than a timeout. The margin is what changed, not the correctness: the same job passed in 4m44s on #570 and was killed at 5m13s on the master push of #595. Syncs with --no-install-project and runs the three checks with --no-sync, matching the wheel-smoke job. Verified all three still pass with the project uninstalled from .venv.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Python Lint & Formathas been failing ascancelledsince #595 merged. It is not a lint error — it is the 5-minute job timeout, which GitHub surfaces as a cancelled job rather than a timeout.uv runsyncs the project before running, which compiles the Rust extension through the PEP 517 backend. #595 addedasync-streamingandparquet-asyncto[tool.maturin] features, pulling rustls/tokio/reqwest into the graph, and the build alone now costs ~5 minutes:The job sits on the boundary rather than being deterministically broken, so it fails intermittently depending on runner speed:
Fix
The job never needed the extension: ruff reads source, and
tyresolves the native module from the checked-inpython/dataprof/*.pyistubs. Sync with--no-install-projectand run the three checks with--no-sync, matching the pattern already used bypython-wheel-smoke.Verification
Uninstalled the project from
.venv(uv sync --no-install-project), then ran each check against a venv with no compiled extension present:All three pass, confirming the build step was pure overhead rather than a dependency of the checks.