-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release/0.68
- Loading branch information
Showing
172 changed files
with
4,834 additions
and
2,602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
if [[ $MAPDL_VERSION == *"ubuntu"* ]] ; then | ||
echo "It is an ubuntu based image" | ||
export FILE=/jobs/file | ||
export WDIR='/jobs/' | ||
|
||
else | ||
echo "It is a CentOS based image" | ||
export FILE=file | ||
export WDIR="" | ||
|
||
fi; | ||
|
||
|
||
mkdir "$LOG_NAMES" && echo "Successfully generated directory $LOG_NAMES" | ||
|
||
#### | ||
echo "Collecting MAPDL logs..." | ||
|
||
(docker exec "$MAPDL_INSTANCE" /bin/bash -c "mkdir -p /mapdl_logs && echo 'Successfully created directory inside docker container'") || echo "Failed to create a directory inside docker container for logs." | ||
(docker exec "$MAPDL_INSTANCE" /bin/bash -c "if compgen -G '$FILE*.out' > /dev/null ;then cp -f /file*.out /mapdl_logs && echo 'Successfully copied out files.'; fi") || echo "Failed to copy the 'out' files into a local file" | ||
(docker exec "$MAPDL_INSTANCE" /bin/bash -c "if compgen -G '$FILE*.err' > /dev/null ;then cp -f /file*.err /mapdl_logs && echo 'Successfully copied err files.'; fi") || echo "Failed to copy the 'err' files into a local file" | ||
(docker exec "$MAPDL_INSTANCE" /bin/bash -c "if compgen -G '$FILE*.log' > /dev/null ;then cp -f /file*.log /mapdl_logs && echo 'Successfully copied log files.'; fi") || echo "Failed to copy the 'log' files into a local file" | ||
(docker exec "$MAPDL_INSTANCE" /bin/bash -c "if compgen -G '$WDIR*.crash' > /dev/null ;then cp -f /*.crash /mapdl_logs && echo 'Successfully copied crash files.'; fi") || echo "Failed to copy the 'crash' files into a local file" | ||
|
||
docker cp "$MAPDL_INSTANCE":/mapdl_logs/. ./"$LOG_NAMES"/. || echo "Failed to copy the 'log-build-docs' files into a local directory" | ||
|
||
#### | ||
echo "Collecting local build logs..." | ||
|
||
echo "Collecting docker run log..." | ||
cp log.txt ./"$LOG_NAMES"/log.txt || echo "MAPDL run docker log not found." | ||
|
||
echo "Copying docker launch log..." | ||
cp mapdl_launch_0.log ./"$LOG_NAMES"/mapdl_launch_0.log || echo "MAPDL launch docker log not found." | ||
cp mapdl_launch_1.log ./"$LOG_NAMES"/mapdl_launch_1.log || echo "MAPDL launch docker log not found." | ||
|
||
echo "Collecting file structure..." | ||
ls -R > ./"$LOG_NAMES"/files_structure.txt || echo "Failed to copy file structure to a file" | ||
|
||
echo "Collecting docker file structure..." | ||
docker exec "$MAPDL_INSTANCE" /bin/bash -c "ls -R" > ./"$LOG_NAMES"/docker_files_structure.txt || echo "Failed to copy the docker structure into a local file" | ||
|
||
echo "Tar files..." | ||
tar cvzf ./"$LOG_NAMES".tgz ./"$LOG_NAMES" || echo "Failed to compress" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
echo "::group:: Display files structure" && ls -R && echo "::endgroup::" | ||
|
||
|
||
echo "::group:: Display files structure" && docker exec "$MAPDL_INSTANCE" /bin/bash -c "ls -R" && echo "::endgroup::" || echo "Failed to display the docker structure." | ||
|
||
|
||
echo "::group:: Display docker run log" && cat log.txt && echo "::endgroup::" | ||
|
||
# Displaying MAPDL files | ||
FILE_PAT=./"$LOG_NAMES"/*.err | ||
if compgen -G "$FILE_PAT" > /dev/null ;then for f in "$FILE_PAT"; do echo "::group:: Error file $f" && cat "$f" && echo "::endgroup::" ; done; fi || echo "Failed to display the 'out' files." | ||
|
||
FILE_PAT=./"$LOG_NAMES"/*.log | ||
if compgen -G "$FILE_PAT" > /dev/null ;then for f in "$FILE_PAT"; do echo "::group:: Log file $f" && cat "$f" && echo "::endgroup::" ; done; fi || echo "Failed to display the 'err' files." | ||
|
||
FILE_PAT=./"$LOG_NAMES"/*.out | ||
if compgen -G "$FILE_PAT" > /dev/null ;then for f in "$FILE_PAT"; do echo "::group:: Output file $f" && cat "$f" && echo "::endgroup::" ; done; fi || echo "Failed to display the 'log' files." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
cd doc/_build/html/examples/gallery_examples/00-mapdl-examples | ||
cp ../../../../../source/images/dcb.gif ../../../_images/ | ||
sed -i 's+../../../_images/sphx_glr_composite_dcb_004.gif+../../../_images/dcb.gif+g' composite_dcb.html | ||
cd ../../../../../../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
echo "Waiting for the MAPDL service to be up..." | ||
nc -v -z localhost "$PYMAPDL_PORT" | ||
echo "::group:: ps aux Output" && ps aux && echo "::endgroup::" | ||
|
||
echo "Waiting for MAPDL port is open..." | ||
echo "::group:: Waiting for the MAPDL port to be open..." | ||
while ! nc -z localhost "$PYMAPDL_PORT"; do | ||
sleep 0.1 | ||
done | ||
echo "::endgroup::" | ||
echo "MAPDL service is up!" | ||
|
||
echo "::group:: Waiting for the DPF port to be open..." | ||
while ! nc -z localhost "$DPF_PORT"; do | ||
sleep 0.1 | ||
done | ||
echo "::endgroup::" | ||
echo "DPF service is up!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
ansys-dpf-core==0.10.1 | ||
autopep8==2.0.4 | ||
autopep8==2.1.0 | ||
matplotlib==3.8.3 | ||
scipy==1.12.0 | ||
pandas==2.2.0 | ||
pandas==2.2.1 | ||
pyiges[full]==0.3.1 | ||
pytest==8.0.1 | ||
pytest-cov==4.1.0 | ||
pyvista==0.43.3 | ||
pytest==8.1.1 | ||
pytest-cov==5.0.0 | ||
pyvista==0.43.4 | ||
pyansys-tools-report==0.7.0 | ||
vtk==9.3.0 | ||
pytest-rerunfailures==13.0 | ||
pytest-rerunfailures==14.0 | ||
pytest-pyvista==0.1.9 | ||
pytest-timeout==2.2.0 | ||
pytest-timeout==2.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
ansys-dpf-core==0.10.1 | ||
autopep8==2.0.4 | ||
autopep8==2.1.0 | ||
matplotlib==3.8.3 | ||
scipy==1.12.0 | ||
pandas==2.2.0 | ||
pandas==2.2.1 | ||
pyiges[full]==0.3.1 | ||
pytest==8.0.1 | ||
pytest-cov==4.1.0 | ||
pyvista==0.43.3 | ||
pytest==8.1.1 | ||
pytest-cov==5.0.0 | ||
pyvista==0.43.4 | ||
pyansys-tools-report==0.7.0 | ||
vtk==9.3.0 | ||
pytest-rerunfailures==13.0 | ||
pytest-rerunfailures==14.0 | ||
pytest-pyvista==0.1.9 | ||
pytest-timeout==2.2.0 | ||
pytest-timeout==2.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.