apache / arrow

Apache Arrow is a multi-language toolbox for accelerated data interchange and in-memory processing
https://arrow.apache.org/
Apache License 2.0
14.17k stars 3.46k forks source link

[CI][MATLAB] Tests fail with Licensing error #40034

Open Tom-Newton opened 6 months ago

Tom-Newton commented 6 months ago

Describe the bug, including details regarding any error messages, version, and platform.

Run matlab-actions/run-tests@v2
  with:
    select-by-folder: matlab/test
    strict: false
    use-parallel: false
  env:
    ARROW_USE_CCACHE: ON
    CCACHE_COMPILERCHECK: content
    CCACHE_COMPRESS: 1
    CCACHE_COMPRESSLEVEL: 6
    CCACHE_MAXSIZE: 1G
    LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    MATLABPATH: matlab/install/arrow_matlab
Generate script
  Successfully generated script
Run command
  /home/runner/work/_actions/matlab-actions/run-tests/v[2](https://github.com/apache/arrow/actions/runs/7857518729/job/21441500404?pr=40021#step:10:2)/dist/bin/glnxa64/run-matlab-command setenv('MW_ORIG_WORKING_FOLDER', cd('/tmp/run_matlab_command-Tq5uLK'));command_1f1f145d_1c4b_40ff_9266_cd4c[3](https://github.com/apache/arrow/actions/runs/7857518729/job/21441500404?pr=40021#step:10:3)7d107bf 
  License checkout failed.
  License Manager Error -1
  The license file cannot be found.

  Troubleshoot this issue by visiting: 
  https://www.mathworks.com/support/lme/1

  Diagnostic Information:
  Feature: MATLAB 
  License path: /home/runner/.matlab/R2023a_licenses:/opt/hostedtoolcache/MATLAB/2023.1.999/x6[4](https://github.com/apache/arrow/actions/runs/7857518729/job/21441500404?pr=40021#step:10:4)/licenses/license.dat:/opt/hostedtoolcache/MATLAB/2023.1.999/x64/licenses 
  Licensing error: -1,3[5](https://github.com/apache/arrow/actions/runs/7857518729/job/21441500404?pr=40021#step:10:5)9. System Error: 2
  exit status 1
Error: Error: The process '/home/runner/work/_actions/matlab-actions/run-tests/v2/dist/bin/glnxa[6](https://github.com/apache/arrow/actions/runs/7857518729/job/21441500404?pr=40021#step:10:6)4/run-matlab-command' failed with exit code 1

Example failed builds: https://github.com/apache/arrow/actions/runs/7857518729/job/21441500404?pr=40021 https://github.com/apache/arrow/actions/runs/7857518729/job/21441500338?pr=40021 https://github.com/apache/arrow/actions/runs/7857518729/job/21441500458?pr=40021

It looks like the same issues is effecting linux, mac OS and windows builds.

Component(s)

MATLAB

kou commented 6 months ago

@kevingurney @sgilmore10 Could you take a look at this?

Tom-Newton commented 6 months ago

I don't know what changed but MATLAB builds seem to be passing now. e.g. https://github.com/apache/arrow/actions/runs/7865801696/job/21459246198?pr=40021

kevingurney commented 6 months ago

Thanks for reporting this, @Tom-Newton!

This looks very similar to the sporadic license management checkout issues we've seen in the past on certain CI jobs, which also resolved on their own after a short period of time.

We will share these build logs with our colleagues at MathWorks who work on the matlab-actions infrastructure, so they can hopefully leverage this information to identify a fix.

We apologize for the inconvenience.