File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/ansys/geometry/core/connection Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2323
2424import atexit
2525import logging
26+ import os
2627from pathlib import Path
2728import time
2829from typing import Optional
30+ import warnings
2931
3032from beartype import beartype as check_input_types
3133import grpc
@@ -166,6 +168,13 @@ def wait_until_healthy(
166168 t_max = time .time () + timeout
167169 t_out = 0.1
168170
171+ # If transport mode is not specified, default to insecure when running in CI
172+ if transport_mode is None and os .getenv ("IS_WORKFLOW_RUNNING" ) is not None :
173+ warnings .warn (
174+ "Transport mode forced to 'insecure' when running in CI workflows." ,
175+ )
176+ transport_mode = "insecure"
177+
169178 # If the channel is a string, create a channel using the default insecure channel
170179 channel_creation_required = True if isinstance (channel , str ) else False
171180 tmp_channel = None
You can’t perform that action at this time.
0 commit comments