robotology / idyntree

Multibody Dynamics Library designed for Free Floating Robots
BSD 3-Clause "New" or "Revised" License
155 stars 65 forks source link

Fix MATLAB tests CI by updating actions versions and reduce frequency of nightly jobs #1181

Open traversaro opened 1 month ago

traversaro commented 1 month ago

The CI was broken by macos-latest being updated to use osx-arm64, we can fix this by updating setup-miniconda and setup-matlab to use their latest versions.

traversaro commented 1 month ago

Updating to setup-matlab@v2, now all the CMake tests on Linux are failing with:

MOxUnit'));success=moxunit_runtests('/home/runner/work/idyntree/idyntree/bindings/matlab/tests','-verbose');exit(~success);"
63: Working Directory: /home/runner/work/idyntree/idyntree/build/bindings/matlab/tests
63: Test timeout computed to be: 1500
63: License checkout failed.
63: License Manager Error -1
63: The license file cannot be found.
63: 
63: Troubleshoot this issue by visiting: 
63: https://www.mathworks.com/support/lme/R2022b/1
63: 
63: Diagnostic Information:
63: Feature: MATLAB 
63: License path: /home/runner/.matlab/R2022b_licenses:/opt/hostedtoolcache/MATLAB/2022.2.999/x64/licenses/license.dat
63: :/opt/hostedtoolcache/MATLAB/2022.2.999/x64/licenses 
63: Licensing error: -1,359. System Error: 2
1/1 Test #63: matlab_idyntree_tests ............***Failed    1.05 sec
License checkout failed.
License Manager Error -1
The license file cannot be found.

Probably this is related to https://github.com/matlab-actions/setup-matlab/issues/89 .

traversaro commented 1 month ago

This is complex (see https://github.com/matlab-actions/setup-matlab/issues/89), let's just switch CI back to macos-12 for now.