manasvb
manasvb

Reputation: 21

Using matlab with Gitlab CICD: The job gets stuck indefinitely without running matlab

I am using MATLAB 2023b and win-11, and using Gitlab (installed on a private cloud infra) I want to set up a CICD pipeline and run the MATLAB code when I push the code to repo.

I used this script in my gitlab yaml file.

stages:
  - Test

Testing:
  tags:
    - matlab-win
  stage: Test
  script:
    - matlab -batch "runner"

where "runner.m" is my MATLAB file. runner.m is as below a = 10; b = 12; disp(a+b)

This takes an indefinite amount of time to run and nearing the pipeline timeout it sends this warning:

WARNING: Failed to terminate process: failed to attach to the console of the process being terminated: Access is denied.
WARNING: Failed to force-kill: exit status 128

I tried using admin access too but the issue is same.

I checked the task manager as well and can see MATLAB running as background process when the CI pipeline runs, but is using too less CPU and memory.

Any inputs?

Upvotes: 1

Views: 228

Answers (1)

manasvb
manasvb

Reputation: 21

So I got the issue gitlab-runner service wasnt running with admin access. I gave it the admin access and now its working fine.

Upvotes: 0

Related Questions