villebro opened a new pull request, #2992: URL: https://github.com/apache/datafusion-ballista/pull/2992
# Which issue does this PR close? None. # Rationale for this change #2970 changed `benchmarks/cluster/publish.py` in a way that `ruff format` rejects: it shortened a regex, so the `re.compile(...)` call now fits on one line, but kept the old wrapping. The Python workflow (`.github/workflows/build.yml`) runs `ruff format --check` over the whole repository, but only for pull requests that change `python/**`. #2970 changed nothing there, so it merged without the check. So `main` is broken, but its CI stays green, and the next pull request that touches `python/` fails its Python `build` job on a file it didn't change. That is #2989, which removes the scheduler's embedded Flight proxy and regenerates the Python stubs. The generated-stub check has the same gap: #2868 changed `ballista.proto` without regenerating `python/ballista/proto`, and nothing caught it. # What changes are included in this PR? - `ruff format` (0.14.13, as locked in `python/uv.lock`) applied to `benchmarks/cluster/publish.py`. - The Ruff and generated-stub checks move from `build.yml` to a new `python-lint.yml`, which runs on pull requests and on pushes to `main` that change one of the paths below. The wheel builds and tests in `build.yml` keep their `python/**` filter. - The Python gRPC stubs, regenerated for the `column_stats` removal in #2868, so the stub check passes. | Path | Why | | --- | --- | | `**/*.py` | Ruff lints every Python file in the repository, and 26 of them are outside `python/`: 17 in `benchmarks/` (including `publish.py`), 7 in `dev/`, one each in `docs/source/` and `examples/python/`. | | `**/pyproject.toml` | Ruff reads its settings from the nearest `pyproject.toml`, and `benchmarks/` has its own. `python/pyproject.toml` also pins the ruff and `grpcio-tools` versions. | | `ruff.toml` | Ruff's repository-wide settings. | | `python/**` | The Python client, `uv.lock`, the generated stubs and `dev/generate_proto.sh`. | | `ballista/core/proto/**` | The stubs are generated from these files, so a proto change must regenerate them (#2868 didn't). | | `.github/workflows/python-lint.yml` | Runs the workflow when it changes itself. | # Are there any user-facing changes? No. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
