Skip to content

MINOR: [CI] Pin pre-commit to Python 3.12 - #43

Open
xborder wants to merge 1 commit into
mainfrom
codex/ci-opt-precommit-python
Open

xborder wants to merge 1 commit into
mainfrom
codex/ci-opt-precommit-python

Conversation

@xborder

@xborder xborder commented Oct 22, 2026

Copy link
Copy Markdown
Owner

On a fresh cache, setup-python's floating 3.x selection currently resolves to Python 3.15. The pinned cmake-format v0.6.13 hook then crashes with ValueError: Cannot use capturing groups in re.Scanner before it can format the CMake files. Select Python 3.12 so pre-commit uses a compatible interpreter consistently.

Observed in the Dev push run for the shallow-checkout PR: the Release Audit Tool and the other hooks passed; cmake-format failed while constructing its regular-expression scanner.

Validation:

  • Full pre-commit suite passed under Python 3.12.7 with pre-commit 4.7.0 and freshly installed Python 3.12 hook environments, including CMake formatting, ShellCheck and the Release Audit Tool.
  • Workflow syntax and expressions passed actionlint; no new ShellCheck warnings.
  • The one-line configuration change preserves the existing hooks and CI coverage.

This setup fix can land before the independent CI optimization PRs #35–#42. Hosted CI results are reported on this pull request.

AI assistance: Prepared with Codex using Apache Magpie's workflow-optimization checklist.

@xborder xborder added the bug-fix Bug fixes label Oct 22, 2026 — with ChatGPT Codex Connector
On a fresh cache, setup-python's floating 3.x selection currently
resolves to Python 3.15. The pinned cmake-format v0.6.13 hook then
crashes with ValueError: Cannot use capturing groups in re.Scanner
before it can format the CMake files. Select Python 3.12 so pre-commit
uses a compatible interpreter consistently.

Observed in the [Dev push run for the shallow-checkout
PR](https://github.com/xborder/arrow-
java/actions/runs/39852854073/job/120083323070): the Release Audit Tool
and the other hooks passed; cmake-format failed while constructing its
regular-expression scanner.
@xborder
xborder force-pushed the codex/ci-opt-precommit-python branch from e77ab9d to b4d2a1c Compare October 22, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant