From e6755d03cad5ca1537e59e393a9b54b1d457e396 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Wed, 14 Jan 2026 16:17:25 +0100 Subject: [PATCH] [v3-1-test] Get rid of the bleeding edge of our prek-hooks (#60452) Finally the Lucas-C pre-commit hook and octopin repo got released with changes we need so we can get rid of bleeding-edge. (cherry picked from commit f94039b365deb1db95e37a65d716db9e943b6fe5) Co-authored-by: Jarek Potiuk --- .github/workflows/basic-tests.yml | 6 +----- .pre-commit-config.yaml | 3 +-- dev/breeze/src/airflow_breeze/commands/ci_commands.py | 4 +--- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/basic-tests.yml b/.github/workflows/basic-tests.yml index 899a7220de171..0f02eae182716 100644 --- a/.github/workflows/basic-tests.yml +++ b/.github/workflows/basic-tests.yml @@ -272,11 +272,7 @@ jobs: platform: ${{ inputs.platform }} save-cache: false - name: "Autoupdate all prek hooks" - run: prek auto-update --cooldown-days 4 --freeze - - name: "Autoupdate Lucas-C hooks to bleeding edge" - run: prek auto-update --bleeding-edge --freeze --repo https://github.com/Lucas-C/pre-commit-hooks - - name: "Autoupdate Octopin to bleeding edge" - run: prek auto-update --bleeding-edge --freeze --repo https://github.com/eclipse-csi/octopin + run: prek autoupdate --cooldown-days 4 --freeze - name: "Check if there are any changes in prek hooks" run: | if ! git diff --exit-code; then diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ac406eceffc9..479dfb2999226 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,8 +31,7 @@ repos: - id: check-hooks-apply name: Check if all hooks apply to the repository - repo: https://github.com/eclipse-csi/octopin - # We need this commit because if supports two spaces before comments (yamllint compatibility) - rev: 74fd075c7b326c771cd95ca86c59cbe65f0dda37 + rev: 67eac129b3e1d8ddb47e657bb2fda28c33d948ca # frozen: v0.1.4 hooks: - id: pin-versions name: Pin versions of dependencies in CI workflows (manual) diff --git a/dev/breeze/src/airflow_breeze/commands/ci_commands.py b/dev/breeze/src/airflow_breeze/commands/ci_commands.py index c490a76ae6078..f9f65965c59af 100644 --- a/dev/breeze/src/airflow_breeze/commands/ci_commands.py +++ b/dev/breeze/src/airflow_breeze/commands/ci_commands.py @@ -629,9 +629,7 @@ def upgrade(target_branch: str, create_pr: bool | None, switch_to_base: bool | N # Define all upgrade commands to run (all run with check=False to continue on errors) upgrade_commands = [ - "prek auto-update --cooldown-days 4 --freeze", - "prek auto-update --bleeding-edge --freeze --repo https://github.com/Lucas-C/pre-commit-hooks", - "prek auto-update --bleeding-edge --freeze --repo https://github.com/eclipse-csi/octopin", + "prek autoupdate --cooldown-days 4 --freeze", "prek --all-files --verbose --hook-stage manual pin-versions", "prek --all-files --show-diff-on-failure --color always --verbose --hook-stage manual update-chart-dependencies", "prek --all-files --show-diff-on-failure --color always --verbose --hook-stage manual upgrade-important-versions",