Skip to content

MINOR: [CI] Key pre-commit caches by Python version - #39

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

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

Conversation

@xborder

@xborder xborder commented Oct 22, 2026

Copy link
Copy Markdown
Owner

The pre-commit cache contains interpreter-specific environments, but its current key only hashes the hook configuration while setup-python selects a floating 3.x version. Include the runner OS and resolved Python version so an image update does not restore environments tied to a different interpreter.

Validation:

  • Workflow syntax and expressions passed actionlint.
  • No new ShellCheck warnings compared with main.
  • Repository pre-commit checks passed for the changed files.
  • Job names, runner matrices, dependencies, permissions and build/test commands are preserved.

Hosted CI results are reported on this pull request.

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

The pre-commit cache contains interpreter-specific environments, but its
current key only hashes the hook configuration while setup-python
selects a floating 3.x version. Include the runner OS and resolved
Python version so an image update does not restore environments tied to
a different interpreter.
@xborder
xborder force-pushed the codex/ci-opt-precommit-cache branch from 19164e7 to 3130475 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant