Skip to content
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

Fixing CICD: Adding missing libgomp1 dependency #2514

Merged
merged 11 commits into from
Nov 20, 2023
Merged

Fixing CICD: Adding missing libgomp1 dependency #2514

merged 11 commits into from
Nov 20, 2023

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Nov 20, 2023

It seems that CICD is failing, not being able to run succesfully even a single test.

Fixed. See #2514 (comment)

@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@germa89 germa89 self-assigned this Nov 20, 2023
Copy link
Collaborator Author

@germa89 germa89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe MAPDL instance is not correctly launched... License server issues?

@github-actions github-actions bot added CI/CD Related with CICD, Github Actions, etc Maintenance General maintenance of the repo (libraries, cicd, etc) labels Nov 20, 2023
Copy link

codecov bot commented Nov 20, 2023

Codecov Report

Merging #2514 (8c0204e) into main (949b8d8) will decrease coverage by 0.03%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2514      +/-   ##
==========================================
- Coverage   83.83%   83.81%   -0.03%     
==========================================
  Files          44       44              
  Lines        8685     8685              
==========================================
- Hits         7281     7279       -2     
- Misses       1404     1406       +2     

@germa89 germa89 marked this pull request as draft November 20, 2023 11:00
@germa89 germa89 changed the title Fixing CICD Fixing CICD: Adding missing libgomp1 dependency Nov 20, 2023
@germa89
Copy link
Collaborator Author

germa89 commented Nov 20, 2023

For some reason, MAPDL wasn't starting in ubuntu based containers showing the following error:

expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
head: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
head: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
date: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
cat: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
printenv: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
uname: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
/ansys_inc/v222/ansys/bin/anssh.ini: line 685: [: -eq: unary operator expected
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
expr: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
/ansys_inc/v222/ansys/bin/ansys222: line 342: [: -gt: unary operator expected
/bin/sh: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
Error: Process completed with exit code 127.

It was fixed by installing libgomp1 dependency:

      - name: "Installing missing package"
        run: |
          sudo apt-get update
          sudo apt-get install -y libgomp1

Debugging was made by adding shell commands to the YML file:

      - name: "Test MAPDL launching"
        run: |
          /ansys_inc/v222/ansys/bin/ansys222 -grpc

Pinging @clatapie for visibility

@germa89 germa89 marked this pull request as ready for review November 20, 2023 12:42
@germa89
Copy link
Collaborator Author

germa89 commented Nov 20, 2023

Pinging @dts12263 @kmkoshy @koubaa because this might be important for future docker container development

Copy link
Contributor

@clatapie clatapie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @germa89 for having found the issue.

@clatapie clatapie mentioned this pull request Nov 20, 2023
@germa89 germa89 merged commit 286f90e into main Nov 20, 2023
26 checks passed
@germa89 germa89 deleted the ci/fixing-cicd branch November 20, 2023 14:23
@germa89
Copy link
Collaborator Author

germa89 commented Nov 20, 2023

By the way, it is very strange that suddenly we need another linux lib. Because the container hasn't been modified in ages (almost a year?), and we do not install any dependency in it (minimal setup). The container supposedly includes everything needed to run MAPDL (OS, dependencies, MAPDL, etc).

So I cannot really understand what changed for now this library to be required.

This was referenced Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD Related with CICD, Github Actions, etc Maintenance General maintenance of the repo (libraries, cicd, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants