-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MATLAB] Update MATLAB CI workflows to use MATLAB R2023b
#37809
Comments
…tions/setup-matlab` action in MATLAB CI workflows (#37808) ### Rationale for this change Due to a recent change to default to `R2023b` by default for the `[matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab) action in GitHub Actions, the MATLAB CI workflows are failing. Example failure logs: https://github.com/apache/arrow/actions/runs/6250586979/job/16970596069?pr=37773#step:9:70 Our preferred solution to address this in the short term is to explicitly specify the [`release` parameter](https://github.com/matlab-actions/setup-matlab#set-up-matlab) to the `setup-matlab` action to be `R2023a`. In the long term, we can work on figuring out why the build is failing on Windows with `R2023b`. For reference - it appears that the `FindMatlab` CMake module only recently added R2023b to its list of recognized versions: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8804 ### What changes are included in this PR? 1. Hard-coded MATLAB `release` to `R2023a` for the [`matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab) action in the MATLAB CI workflows. ### Are these changes tested? Yes. 1. [MATLAB CI workflows are passing on all platforms in `mathworks/arrow`](https://github.com/mathworks/arrow/actions/runs/6251345588). ### Are there any user-facing changes? No. This change only impacts the MATLAB CI workflows which were defaulting to `R2023a` by default in the past. ### Future Directions 1. #37809 * Closes: #37805 Authored-by: Kevin Gurney <[email protected]> Signed-off-by: Kevin Gurney <[email protected]>
…lab-actions/setup-matlab` action in MATLAB CI workflows (apache#37808) ### Rationale for this change Due to a recent change to default to `R2023b` by default for the `[matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab) action in GitHub Actions, the MATLAB CI workflows are failing. Example failure logs: https://github.com/apache/arrow/actions/runs/6250586979/job/16970596069?pr=37773#step:9:70 Our preferred solution to address this in the short term is to explicitly specify the [`release` parameter](https://github.com/matlab-actions/setup-matlab#set-up-matlab) to the `setup-matlab` action to be `R2023a`. In the long term, we can work on figuring out why the build is failing on Windows with `R2023b`. For reference - it appears that the `FindMatlab` CMake module only recently added R2023b to its list of recognized versions: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8804 ### What changes are included in this PR? 1. Hard-coded MATLAB `release` to `R2023a` for the [`matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab) action in the MATLAB CI workflows. ### Are these changes tested? Yes. 1. [MATLAB CI workflows are passing on all platforms in `mathworks/arrow`](https://github.com/mathworks/arrow/actions/runs/6251345588). ### Are there any user-facing changes? No. This change only impacts the MATLAB CI workflows which were defaulting to `R2023a` by default in the past. ### Future Directions 1. apache#37809 * Closes: apache#37805 Authored-by: Kevin Gurney <[email protected]> Signed-off-by: Kevin Gurney <[email protected]>
…lab-actions/setup-matlab` action in MATLAB CI workflows (apache#37808) ### Rationale for this change Due to a recent change to default to `R2023b` by default for the `[matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab) action in GitHub Actions, the MATLAB CI workflows are failing. Example failure logs: https://github.com/apache/arrow/actions/runs/6250586979/job/16970596069?pr=37773#step:9:70 Our preferred solution to address this in the short term is to explicitly specify the [`release` parameter](https://github.com/matlab-actions/setup-matlab#set-up-matlab) to the `setup-matlab` action to be `R2023a`. In the long term, we can work on figuring out why the build is failing on Windows with `R2023b`. For reference - it appears that the `FindMatlab` CMake module only recently added R2023b to its list of recognized versions: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8804 ### What changes are included in this PR? 1. Hard-coded MATLAB `release` to `R2023a` for the [`matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab) action in the MATLAB CI workflows. ### Are these changes tested? Yes. 1. [MATLAB CI workflows are passing on all platforms in `mathworks/arrow`](https://github.com/mathworks/arrow/actions/runs/6251345588). ### Are there any user-facing changes? No. This change only impacts the MATLAB CI workflows which were defaulting to `R2023a` by default in the past. ### Future Directions 1. apache#37809 * Closes: apache#37805 Authored-by: Kevin Gurney <[email protected]> Signed-off-by: Kevin Gurney <[email protected]>
@sgilmore10 and I have been investigating this issue more. We managed to get a successful Windows build using MATLAB R2023b: https://github.com/mathworks/arrow/actions/runs/6949608081/job/18908073567#step:9:526 However, we had to remove We noticed that the MATLAB version with https://github.com/apache/arrow/actions/runs/6250586979/job/16972019524?pr=37773#step:9:34 However, without https://github.com/mathworks/arrow/actions/runs/6949608081/job/18908073567#step:9:550 |
Interesting. One of downsides by removing Anyway, could you try with |
Thanks for the suggestion of using We actually figured out a way to continue using By setting Example CMake code: 0114138#diff-282bdaf7afd3f3d7974e3ab41857a65e3eea6a566107ea7d209ba3fec72e2e77R22 This seems like a fairly good solution that should also hopefully work when future versions of MATLAB are released (i.e. we won't need to constantly update the minimum required CMake version in order to get access to the latest Setting the |
…lab-actions/setup-matlab` action in MATLAB CI workflows (apache#37808) ### Rationale for this change Due to a recent change to default to `R2023b` by default for the `[matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab) action in GitHub Actions, the MATLAB CI workflows are failing. Example failure logs: https://github.com/apache/arrow/actions/runs/6250586979/job/16970596069?pr=37773#step:9:70 Our preferred solution to address this in the short term is to explicitly specify the [`release` parameter](https://github.com/matlab-actions/setup-matlab#set-up-matlab) to the `setup-matlab` action to be `R2023a`. In the long term, we can work on figuring out why the build is failing on Windows with `R2023b`. For reference - it appears that the `FindMatlab` CMake module only recently added R2023b to its list of recognized versions: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8804 ### What changes are included in this PR? 1. Hard-coded MATLAB `release` to `R2023a` for the [`matlab-actions/setup-matlab`](https://github.com/matlab-actions/setup-matlab) action in the MATLAB CI workflows. ### Are these changes tested? Yes. 1. [MATLAB CI workflows are passing on all platforms in `mathworks/arrow`](https://github.com/mathworks/arrow/actions/runs/6251345588). ### Are there any user-facing changes? No. This change only impacts the MATLAB CI workflows which were defaulting to `R2023a` by default in the past. ### Future Directions 1. apache#37809 * Closes: apache#37805 Authored-by: Kevin Gurney <[email protected]> Signed-off-by: Kevin Gurney <[email protected]>
…CI and crossbow packaging workflows (#41504) ### Rationale for this change MATLAB `R2024a` is the latest available version of MATLAB as of April 2024. We are currently building against MATLAB `R2023a` in CI and for the crossbow packaging workflow. We should update the version of MATLAB we support to the latest available version. We previously created an issue to use `R2023b` (#37809). However, `R2024a` has become publicly available since then. ### What changes are included in this PR? 1. Changed the `release` argument supplied to `matlab-actions/setup-matlab@ v2` to `R2024a` from `R2023a` in `.github/workflows/matlab.yml` and `dev/tasks/matlab/github.yml`. 2. Updated the script used to package the MLTBX file (`arrow/matlab/tools/packageMatlabInterface.m`) to specify the version of MATLAB currently running as the only compatible version of MATLAB for the interface. 3. Updated display tests to react to a change in how class names are formatted when an objected is displayed in the Command Window. ### Are these changes tested? Yes. Existing tests used. ### Are there any user-facing changes? There are no changes to the MATLAB Arrow Interface. However, the MATLAB release used to build, test, and package the interface has been upgraded. ### Future Work 1. We may want to consider building and packaging against multiple versions of MATLAB in parallel, rather than just the latest. This would require some more thought on how many releases back to support over time, however. 2. #41435 * GitHub Issue: #41385 Lead-authored-by: Sarah Gilmore <[email protected]> Co-authored-by: Sarah Gilmore <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sarah Gilmore <[email protected]>
…a` in CI and crossbow packaging workflows (apache#41504) ### Rationale for this change MATLAB `R2024a` is the latest available version of MATLAB as of April 2024. We are currently building against MATLAB `R2023a` in CI and for the crossbow packaging workflow. We should update the version of MATLAB we support to the latest available version. We previously created an issue to use `R2023b` (apache#37809). However, `R2024a` has become publicly available since then. ### What changes are included in this PR? 1. Changed the `release` argument supplied to `matlab-actions/setup-matlab@ v2` to `R2024a` from `R2023a` in `.github/workflows/matlab.yml` and `dev/tasks/matlab/github.yml`. 2. Updated the script used to package the MLTBX file (`arrow/matlab/tools/packageMatlabInterface.m`) to specify the version of MATLAB currently running as the only compatible version of MATLAB for the interface. 3. Updated display tests to react to a change in how class names are formatted when an objected is displayed in the Command Window. ### Are these changes tested? Yes. Existing tests used. ### Are there any user-facing changes? There are no changes to the MATLAB Arrow Interface. However, the MATLAB release used to build, test, and package the interface has been upgraded. ### Future Work 1. We may want to consider building and packaging against multiple versions of MATLAB in parallel, rather than just the latest. This would require some more thought on how many releases back to support over time, however. 2. apache#41435 * GitHub Issue: apache#41385 Lead-authored-by: Sarah Gilmore <[email protected]> Co-authored-by: Sarah Gilmore <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sarah Gilmore <[email protected]>
Describe the enhancement requested
The MATLAB CI workflows fail on Windows when using
R2023b
.This is less than ideal since the latest publicly available MATLAB version is
R2023b
.We should investigate why this failure is occurring on Windows so that we can build with
R2023b
in CI.Component(s)
Continuous Integration, MATLAB
The text was updated successfully, but these errors were encountered: