Skip to content

Commit b59e7ab

Browse files
ansys-akarcherjoshuafairchpyansys-ci-botPProfizianshlachamb
authored
grpc changes (#2790)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Joshua Fairchild <108468856+joshuafairch@users.noreply.github.com> Co-authored-by: PyAnsys CI Bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: PProfizi <100710998+PProfizi@users.noreply.github.com> Co-authored-by: Hélène Lachambre <165891632+anshlachamb@users.noreply.github.com> Co-authored-by: Rafael Canton <107186344+rafacanton@users.noreply.github.com> Co-authored-by: PProfizi <paul.profizi@ansys.com> Co-authored-by: Rajesh Meena <60212378+MeenaBytes@users.noreply.github.com> Co-authored-by: Rajesh Meena <rajesh2902@gmai.cim> Co-authored-by: Rajesh Meena <60212378+rajesh1359@users.noreply.github.com> Co-authored-by: PyAnsys Automation bot <214123248+pyansys-automation@users.noreply.github.com> Co-authored-by: Luisa Felix Salles <luisa.felixsalles@ansys.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Camille Bellot <80476446+cbellot000@users.noreply.github.com> Co-authored-by: Muhammed Adedigba <68085496+moe-ad@users.noreply.github.com> Co-authored-by: Marshall Hanmer <marshall.hanmer@ansys.com> Co-authored-by: AnsMelanie <melanie.guyot@ansys.com> Co-authored-by: AnsMelanie <138772358+AnsMelanie@users.noreply.github.com> Co-authored-by: Ricardo Peixoto Coelho <173379716+ricardopeixotocoelho@users.noreply.github.com> Co-authored-by: Revathy Venugopal <104772255+Revathyvenugopal162@users.noreply.github.com> Co-authored-by: JennaPaikowsky <98607744+JennaPaikowsky@users.noreply.github.com> Co-authored-by: moe-ad <muhammed.adedigba@ansys.com> Co-authored-by: Jorge Martínez <28702884+jorgepiloto@users.noreply.github.com> Co-authored-by: Federico Negri <FedericoNegri@users.noreply.github.com> Co-authored-by: Josip Vidal Orlovac <163318969+jvidalor@users.noreply.github.com> Co-authored-by: oparreno <oscar.moroparreno@ansys.com> Co-authored-by: Oscar Moro <102236274+oparreno@users.noreply.github.com> Co-authored-by: BrunoClappe-Ansys <138895561+BClappe@users.noreply.github.com> Co-authored-by: Reda Lahlou Kassi <reda.lahloukassi@ansys.com> Co-authored-by: Rafael Canton <rafael.canton@ansys.com> Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
1 parent 2606872 commit b59e7ab

20 files changed

+752
-34
lines changed

.ci/run_examples.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
server.shutdown()
2121
print(f"Server version: {server_version}")
2222

23+
skipped_docker = [
24+
"03-distributed-msup_expansion_steps.py",
25+
"06-distributed_stress_averaging.py",
26+
"01-distributed_workflows_on_remote.py",
27+
"00-distributed_total_disp.py",
28+
"02-distributed-msup_expansion.py",
29+
]
30+
2331
for root, subdirectories, files in os.walk(examples_path):
2432
for subdirectory in subdirectories:
2533
subdir = Path(root) / subdirectory
@@ -29,6 +37,10 @@
2937
elif "win" in sys.platform and "06-distributed_stress_averaging" in str(file):
3038
# Currently very unstable in the GH CI
3139
continue
40+
if os.environ.get("DPF_DOCKER", None) is not None and Path(file).name in skipped_docker:
41+
print(f"Skipping ${file} in Docker context", flush=True)
42+
continue
43+
3244
print("\n--------------------------------------------------")
3345
print(file)
3446
minimum_version_str = get_example_required_minimum_dpf_version(file)

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
run: |
6565
echo "ANSYS_DPF_ACCEPT_LA=Y" >> $GITHUB_ENV
6666
echo "ANSYSLMD_LICENSE_FILE=1055@${{ secrets.LICENSE_SERVER }}" >> $GITHUB_ENV
67+
echo "DPF_DEFAULT_GRPC_MODE=insecure" >> $GITHUB_ENV
6768
6869
- name: "Setup Python"
6970
uses: actions/setup-python@v5

.github/workflows/examples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
run: |
6969
echo "ANSYS_DPF_ACCEPT_LA=Y" >> $GITHUB_ENV
7070
echo "ANSYSLMD_LICENSE_FILE=1055@${{ secrets.LICENSE_SERVER }}" >> $GITHUB_ENV
71+
echo "DPF_DEFAULT_GRPC_MODE=insecure" >> $GITHUB_ENV
7172
7273
- name: "Setup Python"
7374
uses: actions/setup-python@v5

.github/workflows/examples_docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,6 @@ jobs:
126126
shell: bash
127127
working-directory: .ci
128128
run: |
129+
export DPF_DEFAULT_GRPC_MODE=insecure
129130
echo on
130131
python run_examples.py

.github/workflows/test_docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ jobs:
115115
echo "COVERAGE=--cov=ansys.dpf.${{env.MODULE}} --cov-report=xml --cov-report=html --log-level=ERROR --cov-append" >> $GITHUB_ENV
116116
echo "RERUNS=--reruns 2 --reruns-delay 1" >> $GITHUB_ENV
117117
118+
echo "DPF_DEFAULT_GRPC_MODE=insecure" >> $GITHUB_ENV
119+
118120
- name: "Test API"
119121
uses: nick-fields/retry@v3
120122
with:

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ jobs:
229229
max_attempts: 2
230230
shell: bash
231231
command: |
232+
export DPF_DEFAULT_GRPC_MODE=insecure
232233
tox -e test-api_entry,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
233234
234235
- name: "Run compatible tests in parallel"
@@ -238,6 +239,7 @@ jobs:
238239
max_attempts: 2
239240
shell: bash
240241
command: |
242+
export DPF_DEFAULT_GRPC_MODE=insecure
241243
tox run-parallel -m ciparalleltests ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
242244
243245
- name: "Test API test_server"
@@ -247,6 +249,7 @@ jobs:
247249
max_attempts: 2
248250
shell: bash
249251
command: |
252+
export DPF_DEFAULT_GRPC_MODE=insecure
250253
tox -e test-server,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
251254
252255
- name: "Test API test_remote_workflow"
@@ -256,11 +259,13 @@ jobs:
256259
max_attempts: 3
257260
shell: bash
258261
command: |
262+
export DPF_DEFAULT_GRPC_MODE=insecure
259263
tox -e test-remote_workflow,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
260264
261265
- name: "Test API test_remote_operator"
262266
shell: bash
263267
run: |
268+
export DPF_DEFAULT_GRPC_MODE=insecure
264269
tox -e test-remote_operator,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
265270
266271
- name: "Test API test_workflow"
@@ -270,6 +275,7 @@ jobs:
270275
max_attempts: 4
271276
shell: bash
272277
command: |
278+
export DPF_DEFAULT_GRPC_MODE=insecure
273279
tox -e test-workflow,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
274280
275281
- name: "Test API test_service"
@@ -279,6 +285,7 @@ jobs:
279285
max_attempts: 2
280286
shell: bash
281287
command: |
288+
export DPF_DEFAULT_GRPC_MODE=insecure
282289
tox -e test-service,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
283290
284291
- name: "Combine coverage results"

codacy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ exclude_paths:
44
- "./src/ansys/dpf/core/operators/**/*"
55
- "./src/ansys/dpf/gate/**/*"
66
- "./src/ansys/dpf/gatebin/**/*"
7-
- "./src/ansys/grpc/dpf/**/*"
7+
- "./src/ansys/grpc/dpf/**/*"
8+
- "./src/ansys/dpf/core/cyberchannel.py"

codecov.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ coverage:
2121
- "src/ansys/dpf/core/operators" # ignore folder and all its contents
2222
- "src/ansys/dpf/gate" # ignore folder and all its contents
2323
- "src/ansys/dpf/gatebin" # ignore folder and all its contents
24-
- "src/ansys/grpc/dpf" # ignore folder and all its contents
24+
- "src/ansys/grpc/dpf" # ignore folder and all its contents
25+
- "src/ansys/dpf/core/cyberchannel.py"

0 commit comments

Comments
 (0)