This is an automated email from the ASF dual-hosted git repository.

MartijnVisser pushed a commit to branch ci_utils
in repository 
https://gitbox.apache.org/repos/asf/flink-connector-shared-utils.git

commit 60cefa524480f9f4b0d9853de59a2d652dd36bd5
Author: MartijnVisser <[email protected]>
AuthorDate: Thu Sep 10 21:11:19 2026 +0200

    [FLINK-40629][ci] Honour the Maven wrapper version in the Python job
    
    python_ci.yml reads maven-version from env.MAVEN_VERSION but never sets
    it, so the Python job builds with the hardcoded 3.8.6 fallback whatever
    .mvn/wrapper/maven-wrapper.properties says, while compile_and_test uses
    the wrapper's version. Add the same "Read maven version" step ci.yml
    already has.
    
    Generated-by: Claude Code 2.1.267 (Claude Opus 5)
---
 .github/workflows/python_ci.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml
index 4b9b5e0..8ce473b 100644
--- a/.github/workflows/python_ci.yml
+++ b/.github/workflows/python_ci.yml
@@ -69,6 +69,13 @@ jobs:
           distribution: 'temurin'
           cache: maven
       
+      - name: Read maven version
+        if: ${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') != '' }}
+        # extract version from property
+        # 
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
+        # => MAVEN_VERSION=3.8.6
+        run: cat .mvn/wrapper/maven-wrapper.properties | grep distributionUrl 
| grep -o -E "/[0-9]+\.[0-9]+\.[0-9]+/" | tr -d '/' | (echo -n "MAVEN_VERSION=" 
&& cat) >> $GITHUB_ENV
+
       - name: Setup Maven with mvnw version or version 3.8.6
         uses: stCarolas/setup-maven@v5
         with:

Reply via email to