From fccd896be2b5105aa541fbf2354c4cb4ce220f3c Mon Sep 17 00:00:00 2001 From: Mainak Kundu Date: Mon, 11 Aug 2025 12:41:42 -0400 Subject: [PATCH 1/5] fix: grpc connection --- src/ansys/fluent/core/launcher/fluent_container.py | 1 + src/ansys/fluent/core/launcher/slurm_launcher.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ansys/fluent/core/launcher/fluent_container.py b/src/ansys/fluent/core/launcher/fluent_container.py index 2a148301cadf..13cd6c9ccca6 100644 --- a/src/ansys/fluent/core/launcher/fluent_container.py +++ b/src/ansys/fluent/core/launcher/fluent_container.py @@ -306,6 +306,7 @@ def configure_container_dict( environment={ "ANSYSLMD_LICENSE_FILE": license_server, "REMOTING_PORTS": f"{container_grpc_port}/portspan=2", + "FLUENT_ALLOW_REMOTE_GRPC_CONNECTION": "1", } ) diff --git a/src/ansys/fluent/core/launcher/slurm_launcher.py b/src/ansys/fluent/core/launcher/slurm_launcher.py index ca12e30784a6..325badaa7b25 100644 --- a/src/ansys/fluent/core/launcher/slurm_launcher.py +++ b/src/ansys/fluent/core/launcher/slurm_launcher.py @@ -459,6 +459,7 @@ def _prepare(self): launch_cmd += _build_journal_argument( self._argvals["topy"], self._argvals["journal_file_names"] ) + launch_cmd += ' -setenv="FLUENT_ALLOW_REMOTE_GRPC_CONNECTION=1"' logger.debug(f"Launching Fluent with command: {launch_cmd}") proc = subprocess.Popen(launch_cmd, **kwargs) From 4ee22a8e924f59153511de54bbc953a21a17fe1f Mon Sep 17 00:00:00 2001 From: Mainak Kundu Date: Tue, 12 Aug 2025 13:02:57 -0400 Subject: [PATCH 2/5] build: Bump version 0.31.1 --- src/ansys/fluent/core/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/fluent/core/__init__.py b/src/ansys/fluent/core/__init__.py index e9d2c07ba660..81d214936526 100644 --- a/src/ansys/fluent/core/__init__.py +++ b/src/ansys/fluent/core/__init__.py @@ -70,7 +70,7 @@ from ansys.fluent.core.utils.fluent_version import FluentVersion # noqa: F401 from ansys.fluent.core.utils.setup_for_fluent import setup_for_fluent # noqa: F401 -__version__ = "0.31.0" +__version__ = "0.31.1" _VERSION_INFO = None """ From 6c574683f0d0ba416c8fa629b1d0e7c4e5c3ce65 Mon Sep 17 00:00:00 2001 From: Mainak Kundu Date: Thu, 14 Aug 2025 10:19:18 -0400 Subject: [PATCH 3/5] fix: CI --- .github/workflows/ci.yml | 14 ++++++++------ Makefile | 1 + pyproject.toml | 7 +++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03c03b341421..b68d5fe1ad33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -463,20 +463,20 @@ jobs: doc/source/api/core/meshing/datamodel doc/source/api/core/solver/tui doc/source/api/core/solver/datamodel - key: API-Code-v${{ env.API_CODE_CACHE }}-${{ steps.version.outputs.PYFLUENT_VERSION }}-${{ vars.FLUENT_STABLE_IMAGE_DEV }}-${{ hashFiles('src/ansys/fluent/core/codegen/**') }} - restore-keys: API-Code-v${{ env.API_CODE_CACHE }}-${{ steps.version.outputs.PYFLUENT_VERSION }}-${{ vars.FLUENT_STABLE_IMAGE_DEV }} + key: API-Code-v${{ env.API_CODE_CACHE }}-${{ steps.version.outputs.PYFLUENT_VERSION }}-v26.1.0-${{ hashFiles('src/ansys/fluent/core/codegen/**') }} + restore-keys: API-Code-v${{ env.API_CODE_CACHE }}-${{ steps.version.outputs.PYFLUENT_VERSION }}-v26.1.0 - name: Pull 25.2 Fluent docker image if: steps.cache-251-api-code.outputs.cache-hit != 'true' run: make docker-pull env: - FLUENT_IMAGE_TAG: ${{ vars.FLUENT_STABLE_IMAGE_DEV }} + FLUENT_IMAGE_TAG: v26.1.0 - name: Run 25.2 API codegen if: steps.cache-252-api-code.outputs.cache-hit != 'true' run: make api-codegen env: - FLUENT_IMAGE_TAG: ${{ vars.FLUENT_STABLE_IMAGE_DEV }} + FLUENT_IMAGE_TAG: v26.1.0 - name: Print 25.2 Fluent version info run: | @@ -527,7 +527,7 @@ jobs: version: 252 timeout-minutes: 60 env: - FLUENT_IMAGE_TAG: ${{ matrix.version == 252 && vars.FLUENT_STABLE_IMAGE_DEV || matrix.image-tag }} + FLUENT_IMAGE_TAG: ${{ matrix.image-tag }} steps: @@ -589,7 +589,9 @@ jobs: release: name: Release if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') - needs: [test, update-changelog] + # Temporarily disabling due to issues with CI/image + # needs: [test, update-changelog] + needs: [build, update-changelog] runs-on: ubuntu-latest steps: - name: Set up Python diff --git a/Makefile b/Makefile index 795bb6c5b1b5..30b170bee28e 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ style: install: @pip install -r requirements/requirements_build.txt + @git clean -fd @flit build @pip install -q --force-reinstall dist/*.whl @python src/ansys/fluent/core/report.py diff --git a/pyproject.toml b/pyproject.toml index b1e5e969fdd9..4e1e5412acc3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,6 @@ requires-python = ">=3.10,<3.14" license = {file = "LICENSE"} authors = [{ name = "ANSYS, Inc.", email = "pyansys.core@ansys.com" }] maintainers = [{ name = "ANSYS, Inc.", email = "pyansys.core@ansys.com" }] -repository = "https://github.com/ansys/pyfluent" classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python :: 3", @@ -80,9 +79,9 @@ docs = [ name = "ansys.fluent.core" [project.urls] -"Documentation" = "https://fluent.docs.pyansys.com/" -"Source" = "https://github.com/ansys/pyfluent" -"Tracker" = "https://github.com/ansys/pyfluent/issues" +Documentation = "https://fluent.docs.pyansys.com/" +Source = "https://github.com/ansys/pyfluent" +Tracker = "https://github.com/ansys/pyfluent/issues" [tool.pytest.ini_options] testpaths = ["tests"] From 95a23f5dbe3fea1ebbdd49fcee8d4823129a9b95 Mon Sep 17 00:00:00 2001 From: Mainak Kundu Date: Thu, 14 Aug 2025 21:09:14 -0400 Subject: [PATCH 4/5] fix: CI --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b68d5fe1ad33..f89845c714dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -463,20 +463,20 @@ jobs: doc/source/api/core/meshing/datamodel doc/source/api/core/solver/tui doc/source/api/core/solver/datamodel - key: API-Code-v${{ env.API_CODE_CACHE }}-${{ steps.version.outputs.PYFLUENT_VERSION }}-v26.1.0-${{ hashFiles('src/ansys/fluent/core/codegen/**') }} - restore-keys: API-Code-v${{ env.API_CODE_CACHE }}-${{ steps.version.outputs.PYFLUENT_VERSION }}-v26.1.0 + key: API-Code-v${{ env.API_CODE_CACHE }}-${{ steps.version.outputs.PYFLUENT_VERSION }}-v25.2.0-${{ hashFiles('src/ansys/fluent/core/codegen/**') }} + restore-keys: API-Code-v${{ env.API_CODE_CACHE }}-${{ steps.version.outputs.PYFLUENT_VERSION }}-v25.2.0 - name: Pull 25.2 Fluent docker image if: steps.cache-251-api-code.outputs.cache-hit != 'true' run: make docker-pull env: - FLUENT_IMAGE_TAG: v26.1.0 + FLUENT_IMAGE_TAG: v25.2.0 - name: Run 25.2 API codegen if: steps.cache-252-api-code.outputs.cache-hit != 'true' run: make api-codegen env: - FLUENT_IMAGE_TAG: v26.1.0 + FLUENT_IMAGE_TAG: v25.2.0 - name: Print 25.2 Fluent version info run: | From 89a11b1c8393716766a7db3e6202483a7c9decdd Mon Sep 17 00:00:00 2001 From: Mainak Kundu Date: Thu, 14 Aug 2025 22:25:48 -0400 Subject: [PATCH 5/5] fix: CI --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f89845c714dc..98be10a20fe8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -589,9 +589,7 @@ jobs: release: name: Release if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') - # Temporarily disabling due to issues with CI/image - # needs: [test, update-changelog] - needs: [build, update-changelog] + needs: [test, update-changelog] runs-on: ubuntu-latest steps: - name: Set up Python