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

raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new b241bf77ddf GH-51335: [CI] Update Matlab actions and fix Matlab 
Windows failure (#51378)
b241bf77ddf is described below

commit b241bf77ddf2d9c1430418d4198511a9dc256340
Author: Raúl Cumplido <[email protected]>
AuthorDate: Fri Sep 18 12:30:49 2026 +0200

    GH-51335: [CI] Update Matlab actions and fix Matlab Windows failure (#51378)
    
    ### Rationale for this change
    
    Several dependabot bumps were raised but were missing the 
`tasks/github.yml` file and our CI is currently failing for Windows matlab 
builds due to caching.
    
    ### What changes are included in this PR?
    
    Bump both the matlab actions on the workflow for this repo and the one used 
on archery.
    Do not use the built folder for computing the hash for they hash key.
    
    ### Are these changes tested?
    
    Via CI and archery.
    
    ### Are there any user-facing changes?
    No
    
    ### Was AI used for this PR?
    
    In accordance to the [AI generation 
guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code),
 please disclose below whether and how AI was used in this PR.
    
    **PR code and description written by:**
    
    - [x] Human
    - [ ] AI
    
    **Reviewed before submission by:**
    
    - [x] Human
    - [ ] AI
    - [ ] Not reviewed
    
    AI was used to analyze the CI failures.
    * GitHub Issue: #51335
    
    Authored-by: Raúl Cumplido <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 .github/workflows/matlab.yml | 18 +++++++++---------
 dev/tasks/matlab/github.yml  | 10 +++++-----
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/.github/workflows/matlab.yml b/.github/workflows/matlab.yml
index a65279b780e..60914eae7ce 100644
--- a/.github/workflows/matlab.yml
+++ b/.github/workflows/matlab.yml
@@ -58,7 +58,7 @@ jobs:
       - name: Install ninja-build
         run: sudo apt-get install ninja-build
       - name: Install MATLAB
-        uses: 
matlab-actions/setup-matlab@a0180c939fb1a28de13f44f7b778b912384ced1f # v3.0.1
+        uses: 
matlab-actions/setup-matlab@f9e43010f1ae678f7cfa0542fe2a4f60f7d1ad8d # v3.1.0
         with:
           release: R2025b
       - name: Install ccache
@@ -74,7 +74,7 @@ jobs:
         uses: actions/cache@v6
         with:
           path: ${{ steps.ccache-info.outputs.cache-dir }}
-          key: matlab-ccache-ubuntu-${{ hashFiles('cpp/**', 'matlab/**') }}
+          key: matlab-ccache-ubuntu-${{ hashFiles('cpp/**', 'matlab/**', 
'!matlab/build/**') }}
           restore-keys: matlab-ccache-ubuntu-
       - name: Build MATLAB Interface
         run: ci/scripts/matlab_build.sh $(pwd)
@@ -83,7 +83,7 @@ jobs:
           # Add the installation directory to the MATLAB Search Path by
           # setting the MATLABPATH environment variable.
           MATLABPATH: matlab/install/arrow_matlab
-        uses: 
matlab-actions/run-tests@ae0e80cb44fdec28d35d0831d8acf38ee4fdf91a # v3.2.0
+        uses: 
matlab-actions/run-tests@214a16e600ef2c705a4b2dd6c0794dc6957682a9 # v3.3.0
         with:
           select-by-folder: matlab/test
           strict: true
@@ -107,7 +107,7 @@ jobs:
       - name: Install ninja-build
         run: brew install ninja
       - name: Install MATLAB
-        uses: 
matlab-actions/setup-matlab@a0180c939fb1a28de13f44f7b778b912384ced1f # v3.0.1
+        uses: 
matlab-actions/setup-matlab@f9e43010f1ae678f7cfa0542fe2a4f60f7d1ad8d # v3.1.0
         with:
           release: R2025b
       - name: Install ccache
@@ -123,7 +123,7 @@ jobs:
         uses: actions/cache@v6
         with:
           path: ${{ steps.ccache-info.outputs.cache-dir }}
-          key: matlab-ccache-macos-${{ hashFiles('cpp/**', 'matlab/**') }}
+          key: matlab-ccache-macos-${{ hashFiles('cpp/**', 'matlab/**', 
'!matlab/build/**') }}
           restore-keys: matlab-ccache-macos-
       - name: Build MATLAB Interface
         run: ci/scripts/matlab_build.sh $(pwd)
@@ -132,7 +132,7 @@ jobs:
           # Add the installation directory to the MATLAB Search Path by
           # setting the MATLABPATH environment variable.
           MATLABPATH: matlab/install/arrow_matlab
-        uses: 
matlab-actions/run-tests@ae0e80cb44fdec28d35d0831d8acf38ee4fdf91a # v3.2.0
+        uses: 
matlab-actions/run-tests@214a16e600ef2c705a4b2dd6c0794dc6957682a9 # v3.3.0
         with:
           select-by-folder: matlab/test
           strict: true
@@ -147,7 +147,7 @@ jobs:
           persist-credentials: false
           fetch-depth: 0
       - name: Install MATLAB
-        uses: 
matlab-actions/setup-matlab@a0180c939fb1a28de13f44f7b778b912384ced1f # v3.0.1
+        uses: 
matlab-actions/setup-matlab@f9e43010f1ae678f7cfa0542fe2a4f60f7d1ad8d # v3.1.0
         with:
           release: R2025b
       - name: Install ccache
@@ -165,7 +165,7 @@ jobs:
         with:
           path: |
             ${{ steps.ccache-info.outputs.cache-dir }}
-          key: matlab-ccache-windows-${{ hashFiles('cpp/**', 'matlab/**') }}
+          key: matlab-ccache-windows-${{ hashFiles('cpp/**', 'matlab/**', 
'!matlab/build/**') }}
           restore-keys: matlab-ccache-windows-
       - name: Build MATLAB Interface
         shell: cmd
@@ -177,7 +177,7 @@ jobs:
           # Add the installation directory to the MATLAB Search Path by
           # setting the MATLABPATH environment variable.
           MATLABPATH: matlab/install/arrow_matlab
-        uses: 
matlab-actions/run-tests@ae0e80cb44fdec28d35d0831d8acf38ee4fdf91a # v3.2.0
+        uses: 
matlab-actions/run-tests@214a16e600ef2c705a4b2dd6c0794dc6957682a9 # v3.3.0
         with:
           select-by-folder: matlab/test
           strict: true
diff --git a/dev/tasks/matlab/github.yml b/dev/tasks/matlab/github.yml
index 39e79ec1519..d2a0b0a0bc0 100644
--- a/dev/tasks/matlab/github.yml
+++ b/dev/tasks/matlab/github.yml
@@ -34,7 +34,7 @@ jobs:
       - name: Install ninja-build
         run: sudo apt-get update && sudo apt-get install ninja-build
       - name: Install MATLAB
-        uses: matlab-actions/setup-matlab@v2
+        uses: 
matlab-actions/setup-matlab@f9e43010f1ae678f7cfa0542fe2a4f60f7d1ad8d # v3.1.0
         with:
           release: R2025b
       {{ macros.github_configure_aws_credentials()|indent }}
@@ -77,7 +77,7 @@ jobs:
       - name: Install ninja-build
         run: brew install ninja
       - name: Install MATLAB
-        uses: matlab-actions/setup-matlab@v2
+        uses: 
matlab-actions/setup-matlab@f9e43010f1ae678f7cfa0542fe2a4f60f7d1ad8d # v3.1.0
         with:
           release: R2025b
       {{ macros.github_configure_aws_credentials()|indent }}
@@ -104,7 +104,7 @@ jobs:
     steps:
       {{ macros.github_checkout_arrow()|indent }}
       - name: Install MATLAB
-        uses: matlab-actions/setup-matlab@v2
+        uses: 
matlab-actions/setup-matlab@f9e43010f1ae678f7cfa0542fe2a4f60f7d1ad8d # v3.1.0
         with:
           release: R2025b
       - name: Install sccache
@@ -152,7 +152,7 @@ jobs:
           cp arrow/LICENSE.txt arrow/matlab/install/arrow_matlab/LICENSE.txt
           cp arrow/NOTICE.txt arrow/matlab/install/arrow_matlab/NOTICE.txt
       - name: Install MATLAB
-        uses: matlab-actions/setup-matlab@v2
+        uses: 
matlab-actions/setup-matlab@f9e43010f1ae678f7cfa0542fe2a4f60f7d1ad8d # v3.1.0
         with:
           release: R2025b
       - name: Run commands
@@ -161,7 +161,7 @@ jobs:
           ARROW_MATLAB_TOOLBOX_FOLDER: arrow/matlab/install/arrow_matlab
           ARROW_MATLAB_TOOLBOX_OUTPUT_FOLDER: artifacts/matlab-dist
           ARROW_MATLAB_TOOLBOX_VERSION: {{ arrow.no_rc_no_dev_version }}
-        uses: matlab-actions/run-command@v2
+        uses: 
matlab-actions/run-command@bfa857648f4895aa98a446fe41c85e0788421ed5 # v3.3.0
         with:
           command: packageMatlabInterface
       {{ 
macros.github_upload_releases(["artifacts/matlab-dist/*.mltbx"])|indent }}

Reply via email to