Skip to content

test: forcing image for testing purposes #4243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .ci/pull_fluent_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ else
fi

# Pull fluent image based on tag
docker pull $_IMAGE_NAME
docker pull ghcr.io/ansys/fluent:v26.1.68

# Remove all dangling images
docker image prune -f
docker image prune -f
286 changes: 143 additions & 143 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,137 +293,137 @@ jobs:
# API-Code-<Cache version>-<PyFluent version>-<First Fluent release version>-<Last Fluent release version>-<Fluent dev version>-<Hash of codegen files>
key: API-Code-v${{ env.API_CODE_CACHE }}-${{ steps.version.outputs.PYFLUENT_VERSION }}-v23.1.0-v25.2.0-${{ vars.FLUENT_STABLE_IMAGE_DEV }}-${{ hashFiles('src/ansys/fluent/core/codegen/**') }}

- name: Pull 23.1 Fluent docker image
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v23.1.0

- name: Run 23.1 API codegen
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make api-codegen
env:
FLUENT_IMAGE_TAG: v23.1.0
PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

- name: Print 23.1 Fluent version info
run: |
cat src/ansys/fluent/core/generated/fluent_version_231.py
python -c "from src.ansys.fluent.core.generated.solver.settings_231 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

- name: Remove all docker images
if: always()
run: make docker-clean-images

- name: Pull 23.2 Fluent docker image
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v23.2.0

- name: Run 23.2 API codegen
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make api-codegen
env:
FLUENT_IMAGE_TAG: v23.2.0
PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

- name: Print 23.2 Fluent version info
run: |
cat src/ansys/fluent/core/generated/fluent_version_232.py
python -c "from src.ansys.fluent.core.generated.solver.settings_232 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

- name: Remove all docker images
if: always()
run: make docker-clean-images

- name: Pull 24.1 Fluent docker image
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v24.1.0

- name: Run 24.1 API codegen
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make api-codegen
env:
FLUENT_IMAGE_TAG: v24.1.0
PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

- name: Print 24.1 Fluent version info
run: |
cat src/ansys/fluent/core/generated/fluent_version_241.py
python -c "from src.ansys.fluent.core.generated.solver.settings_241 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

- name: Remove all docker images
if: always()
run: make docker-clean-images

- name: Pull 24.2 Fluent docker image
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v24.2.0

- name: Run 24.2 API codegen
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make api-codegen
env:
FLUENT_IMAGE_TAG: v24.2.0
PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

- name: Print 24.2 Fluent version info
run: |
cat src/ansys/fluent/core/generated/fluent_version_242.py
python -c "from src.ansys.fluent.core.generated.solver.settings_242 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

- name: Remove all docker images
if: always()
run: make docker-clean-images

- name: Pull 25.1 Fluent docker image
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v25.1.0

- name: Run 25.1 API codegen
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make api-codegen
env:
FLUENT_IMAGE_TAG: v25.1.0
PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

- name: Print 25.1 Fluent version info
run: |
cat src/ansys/fluent/core/generated/fluent_version_251.py
python -c "from src.ansys.fluent.core.generated.solver.settings_251 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

- name: Remove all docker images
if: always()
run: make docker-clean-images

- name: Pull 25.2 Fluent docker image
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v25.2.0

- name: Run 25.2 API codegen
if: steps.cache-api-code.outputs.cache-hit != 'true'
run: make api-codegen
env:
FLUENT_IMAGE_TAG: v25.2.0
PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

- name: Print 25.2 Fluent version info
run: |
cat src/ansys/fluent/core/generated/fluent_version_252.py
python -c "from src.ansys.fluent.core.generated.solver.settings_252 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

- name: Remove all docker images
if: always()
run: make docker-clean-images
# - name: Pull 23.1 Fluent docker image
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make docker-pull
# env:
# FLUENT_IMAGE_TAG: v23.1.0

# - name: Run 23.1 API codegen
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make api-codegen
# env:
# FLUENT_IMAGE_TAG: v23.1.0
# PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

# - name: Print 23.1 Fluent version info
# run: |
# cat src/ansys/fluent/core/generated/fluent_version_231.py
# python -c "from src.ansys.fluent.core.generated.solver.settings_231 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

# - name: Remove all docker images
# if: always()
# run: make docker-clean-images

# - name: Pull 23.2 Fluent docker image
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make docker-pull
# env:
# FLUENT_IMAGE_TAG: v23.2.0

# - name: Run 23.2 API codegen
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make api-codegen
# env:
# FLUENT_IMAGE_TAG: v23.2.0
# PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

# - name: Print 23.2 Fluent version info
# run: |
# cat src/ansys/fluent/core/generated/fluent_version_232.py
# python -c "from src.ansys.fluent.core.generated.solver.settings_232 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

# - name: Remove all docker images
# if: always()
# run: make docker-clean-images

# - name: Pull 24.1 Fluent docker image
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make docker-pull
# env:
# FLUENT_IMAGE_TAG: v24.1.0

# - name: Run 24.1 API codegen
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make api-codegen
# env:
# FLUENT_IMAGE_TAG: v24.1.0
# PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

# - name: Print 24.1 Fluent version info
# run: |
# cat src/ansys/fluent/core/generated/fluent_version_241.py
# python -c "from src.ansys.fluent.core.generated.solver.settings_241 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

# - name: Remove all docker images
# if: always()
# run: make docker-clean-images

# - name: Pull 24.2 Fluent docker image
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make docker-pull
# env:
# FLUENT_IMAGE_TAG: v24.2.0

# - name: Run 24.2 API codegen
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make api-codegen
# env:
# FLUENT_IMAGE_TAG: v24.2.0
# PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

# - name: Print 24.2 Fluent version info
# run: |
# cat src/ansys/fluent/core/generated/fluent_version_242.py
# python -c "from src.ansys.fluent.core.generated.solver.settings_242 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

# - name: Remove all docker images
# if: always()
# run: make docker-clean-images

# - name: Pull 25.1 Fluent docker image
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make docker-pull
# env:
# FLUENT_IMAGE_TAG: v25.1.0

# - name: Run 25.1 API codegen
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make api-codegen
# env:
# FLUENT_IMAGE_TAG: v25.1.0
# PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

# - name: Print 25.1 Fluent version info
# run: |
# cat src/ansys/fluent/core/generated/fluent_version_251.py
# python -c "from src.ansys.fluent.core.generated.solver.settings_251 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

# - name: Remove all docker images
# if: always()
# run: make docker-clean-images

# - name: Pull 25.2 Fluent docker image
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make docker-pull
# env:
# FLUENT_IMAGE_TAG: v25.2.0

# - name: Run 25.2 API codegen
# if: steps.cache-api-code.outputs.cache-hit != 'true'
# run: make api-codegen
# env:
# FLUENT_IMAGE_TAG: v25.2.0
# PYFLUENT_CODEGEN_SKIP_BUILTIN_SETTINGS: 1

# - name: Print 25.2 Fluent version info
# run: |
# cat src/ansys/fluent/core/generated/fluent_version_252.py
# python -c "from src.ansys.fluent.core.generated.solver.settings_252 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"

# - name: Remove all docker images
# if: always()
# run: make docker-clean-images

- name: Pull 26.1 Fluent docker image
if: steps.cache-api-code.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -474,18 +474,18 @@ jobs:
fail-fast: false
matrix:
include:
- image-tag: v23.1.0
version: 231
- image-tag: v23.2.0
version: 232
- image-tag: v24.1.0
version: 241
- image-tag: v24.2.0
version: 242
- image-tag: v25.1.0
version: 251
- image-tag: v25.2.0
version: 252
# - image-tag: v23.1.0
# version: 231
# - image-tag: v23.2.0
# version: 232
# - image-tag: v24.1.0
# version: 241
# - image-tag: v24.2.0
# version: 242
# - image-tag: v25.1.0
# version: 251
# - image-tag: v25.2.0
# version: 252
- image-tag: v26.1.0
version: 261
timeout-minutes: 60
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/4243.test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Forcing image for testing purposes
2 changes: 1 addition & 1 deletion src/ansys/fluent/core/launcher/fluent_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def configure_container_dict(
else:
raise FluentImageNameTagNotSpecified()

container_dict["fluent_image"] = fluent_image
container_dict["fluent_image"] = "ghcr.io/ansys/fluent:v26.1.68"

if not pyfluent.FLUENT_AUTOMATIC_TRANSCRIPT:
if "environment" not in container_dict:
Expand Down
Loading