Skip to content

Commit c5e8187

Browse files
CI: Disable flaky testing due to CI issues (#6839)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 2843780 commit c5e8187

File tree

2 files changed

+83
-82
lines changed

2 files changed

+83
-82
lines changed

.github/workflows/ci_cd.yml

Lines changed: 82 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,87 +1015,87 @@ jobs:
10151015
# # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv RUNNING ON SELF-HOSTED RUNNER vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
10161016
# # =================================================================================================
10171017

1018-
system-tests-flaky-linux:
1019-
name: Test flaky (linux)
1020-
if: github.event.pull_request.draft == false
1021-
needs: [integration-tests]
1022-
runs-on: [ self-hosted, Linux, pyaedt ]
1023-
env:
1024-
ANSYSEM_ROOT252: '/usr/ansys_inc/v252/AnsysEM'
1025-
ANS_NODEPCHECK: '1'
1026-
steps:
1027-
- name: Install Git and checkout project
1028-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1029-
with:
1030-
persist-credentials: false
1031-
1032-
- name: Setup Python
1033-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
1034-
with:
1035-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
1036-
1037-
- name: Create virtual environment
1038-
env:
1039-
ANSYSEM: ${{ env.ANSYSEM_ROOT252 }}
1040-
run: |
1041-
export LD_LIBRARY_PATH=${ANSYSEM}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
1042-
python -m venv .venv
1043-
source .venv/bin/activate
1044-
python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pip -U
1045-
python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org wheel setuptools -U
1046-
python -c "import sys; print(sys.executable)"
1047-
1048-
- name: Install pyaedt and tests dependencies
1049-
env:
1050-
ANSYSEM: ${{ env.ANSYSEM_ROOT252 }}
1051-
run: |
1052-
export LD_LIBRARY_PATH=${ANSYSEM}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
1053-
source .venv/bin/activate
1054-
pip install .[tests]
1055-
1056-
- name: Install CI dependencies (e.g. vtk-osmesa)
1057-
run: |
1058-
source .venv/bin/activate
1059-
# Uninstall conflicting dependencies
1060-
pip uninstall --yes vtk
1061-
pip install --index-url https://wheels.vtk.org vtk-osmesa==9.3.1
1062-
1063-
- name: "Install X Virtual Frame Buffer"
1064-
run: |
1065-
sudo apt-get update
1066-
sudo apt-get install -y xvfb
1067-
1068-
- name: Remove Ansys processes (if any)
1069-
shell: bash
1070-
run: |
1071-
for pid in $(ps -eo pid,comm,args | grep -iE "ansys.inc|ansysem" | grep -v grep | awk '{print $1}'); do
1072-
echo "Killing PID $pid"
1073-
kill -9 "$pid"
1074-
done
1075-
1076-
- name: Run tests marked with 'flaky'
1077-
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
1078-
with:
1079-
max_attempts: 2
1080-
retry_on: error
1081-
timeout_minutes: 120
1082-
command: |
1083-
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT252 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
1084-
source .venv/bin/activate
1085-
xvfb-run pytest ${{ env.PYTEST_ARGUMENTS }} --timeout=600 -m flaky_linux
1086-
1087-
- uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
1088-
with:
1089-
name: codecov-system-flaky-tests-linux
1090-
files: ./coverage.xml
1091-
flags: linux_system_flaky
1092-
1093-
- name: Upload pytest test results
1094-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
1095-
with:
1096-
name: pytest-flaky-linux
1097-
path: junit/test-results.xml
1098-
if: ${{ always() }}
1018+
# system-tests-flaky-linux:
1019+
# name: Test flaky (linux)
1020+
# if: github.event.pull_request.draft == false
1021+
# needs: [integration-tests]
1022+
# runs-on: [ self-hosted, Linux, pyaedt ]
1023+
# env:
1024+
# ANSYSEM_ROOT252: '/usr/ansys_inc/v252/AnsysEM'
1025+
# ANS_NODEPCHECK: '1'
1026+
# steps:
1027+
# - name: Install Git and checkout project
1028+
# uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1029+
# with:
1030+
# persist-credentials: false
1031+
1032+
# - name: Setup Python
1033+
# uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
1034+
# with:
1035+
# python-version: ${{ env.MAIN_PYTHON_VERSION }}
1036+
1037+
# - name: Create virtual environment
1038+
# env:
1039+
# ANSYSEM: ${{ env.ANSYSEM_ROOT252 }}
1040+
# run: |
1041+
# export LD_LIBRARY_PATH=${ANSYSEM}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
1042+
# python -m venv .venv
1043+
# source .venv/bin/activate
1044+
# python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pip -U
1045+
# python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org wheel setuptools -U
1046+
# python -c "import sys; print(sys.executable)"
1047+
1048+
# - name: Install pyaedt and tests dependencies
1049+
# env:
1050+
# ANSYSEM: ${{ env.ANSYSEM_ROOT252 }}
1051+
# run: |
1052+
# export LD_LIBRARY_PATH=${ANSYSEM}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
1053+
# source .venv/bin/activate
1054+
# pip install .[tests]
1055+
1056+
# - name: Install CI dependencies (e.g. vtk-osmesa)
1057+
# run: |
1058+
# source .venv/bin/activate
1059+
# # Uninstall conflicting dependencies
1060+
# pip uninstall --yes vtk
1061+
# pip install --index-url https://wheels.vtk.org vtk-osmesa==9.3.1
1062+
1063+
# - name: "Install X Virtual Frame Buffer"
1064+
# run: |
1065+
# sudo apt-get update
1066+
# sudo apt-get install -y xvfb
1067+
1068+
# - name: Remove Ansys processes (if any)
1069+
# shell: bash
1070+
# run: |
1071+
# for pid in $(ps -eo pid,comm,args | grep -iE "ansys.inc|ansysem" | grep -v grep | awk '{print $1}'); do
1072+
# echo "Killing PID $pid"
1073+
# kill -9 "$pid"
1074+
# done
1075+
1076+
# - name: Run tests marked with 'flaky'
1077+
# uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
1078+
# with:
1079+
# max_attempts: 2
1080+
# retry_on: error
1081+
# timeout_minutes: 120
1082+
# command: |
1083+
# export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT252 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
1084+
# source .venv/bin/activate
1085+
# xvfb-run pytest ${{ env.PYTEST_ARGUMENTS }} --timeout=600 -m flaky_linux
1086+
1087+
# - uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
1088+
# with:
1089+
# name: codecov-system-flaky-tests-linux
1090+
# files: ./coverage.xml
1091+
# flags: linux_system_flaky
1092+
1093+
# - name: Upload pytest test results
1094+
# uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
1095+
# with:
1096+
# name: pytest-flaky-linux
1097+
# path: junit/test-results.xml
1098+
# if: ${{ always() }}
10991099

11001100
package:
11011101
name: Package library
@@ -1109,7 +1109,7 @@ jobs:
11091109
system-tests-extensions-linux,
11101110
system-tests-filter-windows,
11111111
system-tests-emit-windows,
1112-
system-tests-flaky-linux,
1112+
# system-tests-flaky-linux,
11131113
doc-build]
11141114
runs-on: ubuntu-latest
11151115
permissions:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Disable flaky testing due to CI issues

0 commit comments

Comments
 (0)