Skip to content

Commit d3826f1

Browse files
mkundu1pyansys-ci-bot
authored andcommitted
fix: Fix test_docker_compose (#4399)
Bypassing the server-info file-permission restriction for docker compose as a quick-fix. Added #4400 for triaging the root cause. --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 8c270e7 commit d3826f1

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

doc/changelog.d/4399.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix test_docker_compose

src/ansys/fluent/core/launcher/fluent_container.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ def configure_container_dict(
353353
"FLUENT_ALLOW_REMOTE_GRPC_CONNECTION": "1",
354354
}
355355
)
356+
if compose_config.is_compose:
357+
container_dict["environment"]["FLUENT_SERVER_INFO_PERMISSION_SYSTEM"] = "1"
356358

357359
if "labels" not in container_dict:
358360
test_name = pyfluent.config.test_name

src/ansys/fluent/core/solver/flunits.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ def get_si_unit_for_fluent_quantity(
298298
# attribute only for dimensionless variables
299299
if quantity is None:
300300
return ""
301+
if isinstance(quantity, list): # real vector
302+
quantity = quantity[0]
301303
if not isinstance(quantity, str):
302304
raise InvalidQuantityType(quantity)
303305
try:

tests/test_settings_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@ def test_child_alias_with_parent_path(mixing_elbow_settings_session):
515515
)
516516

517517
solver.settings.solution.initialization.hybrid_initialize()
518+
if solver.get_fluent_version() >= FluentVersion.v261:
519+
solver.settings.setup.models.multiphase.model = "eulerian"
520+
solver.tui.define.models.multiphase.hybrid_models.ddpm("yes")
518521
assert (
519522
solver.settings.setup.models.discrete_phase.numerics.node_based_averaging.kernel._child_aliases
520523
== {

0 commit comments

Comments
 (0)