Skip to content

ci: stop building the Rust extension in the Python lint job - #596

Merged
AndreaBozzo merged 1 commit into
masterfrom
fix/python-lint-timeout
Aug 16, 2026
Merged

AndreaBozzo merged 1 commit into
masterfrom
fix/python-lint-timeout

Conversation

@AndreaBozzo

Copy link
Copy Markdown
Owner

Problem

Python Lint & Format has been failing as cancelled since #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 run syncs the project before running, which compiles the Rust extension through the PEP 517 backend. #595 added async-streaming and parquet-async to [tool.maturin] features, pulling rustls/tokio/reqwest into the graph, and the build alone now costs ~5 minutes:

11:39:33  Downloaded pandas
11:44:39  Built dataprof @ file:///home/runner/work/dataprof/dataprof   <- 5m06s
11:44:39  43 files already formatted
11:44:39  ##[error]The operation was canceled.

The job sits on the boundary rather than being deterministically broken, so it fails intermittently depending on runner speed:

run duration result
#570 (same feature list) 4m44s success, 16s of margin
master push of #595 5m13s killed at the timeout

Fix

The job never needed the extension: ruff reads source, and ty resolves the native module from the checked-in python/dataprof/*.pyi stubs. Sync with --no-install-project and run the three checks with --no-sync, matching the pattern already used by python-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:

uv run --no-sync ruff format --check python/ .github/scripts/ .claude/skills/dataprof/scripts/   # 43 files already formatted
uv run --no-sync ruff check  python/ .github/scripts/ .claude/skills/dataprof/scripts/           # All checks passed!
uv run --no-sync ty check python/                                                                # All checks passed! (3.4s)

All three pass, confirming the build step was pure overhead rather than a dependency of the checks.

`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.
@github-actions github-actions Bot added the github_actions Pull requests that update GitHub Actions code label Aug 16, 2026
@AndreaBozzo AndreaBozzo self-assigned this Aug 16, 2026
@AndreaBozzo AndreaBozzo added this to the 0.11.0 milestone Aug 16, 2026
@AndreaBozzo
AndreaBozzo merged commit 850e012 into master Aug 16, 2026
26 checks passed
@AndreaBozzo
AndreaBozzo deleted the fix/python-lint-timeout branch August 16, 2026 12:14
@github-project-automation github-project-automation Bot moved this to Done in dataprof Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant