Skip to content

Commit

Permalink
feat: triage with docker image (#2441)
Browse files Browse the repository at this point in the history
* feat: Triaging docker stable image.

* feat: Triaging docker stable image.

* feat: Triaging docker stable image.

* feat: Triaging docker stable image.

* Trial msg disp.

* Trial msg set.

* Trial msg set.

* Trial msg set.

* Set repo variable.

* Set repo variable.

* Set repo variable.

* Set repo variable.

* Set repo variable.

* Set repo variable.

* Set repo variable.

* Set repo variable.

* Set repo variable.

* Set repo variable.

* Set repo variable.

* Update image.

* Update image.

* Update image.

* Update image.

* Update image.

* Update image.

* Update image.

* Update image.

* Update image.

* Update image.

* Update image.

* Update image.

* Update image.

* Update ci.

* Update ci.

* Update ci.

* Update ci.

* Update ci.

* Update ci.

* Update ci.

* Update ci.

* Update ci.

* Update docker->requests version.

* Update other CIs.

* Update conditional checking.

* Update conditional checking.

* Update conditional checking.

* Update conditional checking.

* Update conditional checking.

* Update conditional checking.

* Update conditional checking.

* Update conditional checking.

* Update conditional checking.

* Update conditional checking.

* Update CI.

* Update for 25.1
  • Loading branch information
prmukherj authored May 23, 2024
1 parent 3ac3f52 commit df2fd57
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .ci/pull_fluent_image.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/bin/sh

# Image name
_IMAGE_NAME="ghcr.io/ansys/pyfluent:${FLUENT_IMAGE_TAG:-latest}"
SHA='sha256'
SUBSTRING=$(echo ${FLUENT_IMAGE_TAG}| cut -c 1-6)
if [ "$SUBSTRING" == "$SHA" ]
then
_IMAGE_NAME="ghcr.io/ansys/pyfluent@${FLUENT_IMAGE_TAG}"
else
_IMAGE_NAME="ghcr.io/ansys/pyfluent:${FLUENT_IMAGE_TAG:-latest}"
fi

# Pull fluent image based on tag
docker pull $_IMAGE_NAME
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ jobs:
if: steps.cache-251-api-code.outputs.cache-hit != 'true'
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v25.1.0
FLUENT_IMAGE_TAG: ${{ vars.FLUENT_STABLE_IMAGE_DEV }}

- name: Run 25.1 API codegen
if: steps.cache-251-api-code.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -539,11 +539,17 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pull Fluent docker image
if: ${{ !contains(github.event.pull_request.title, '[skip tests]') }}
if: ${{ matrix.image-tag != 'v25.1.0' && !contains(github.event.pull_request.title, '[skip tests]') }}
run: make docker-pull
env:
FLUENT_IMAGE_TAG: ${{ matrix.image-tag }}

- name: Pull Fluent docker image dev
if: ${{ matrix.image-tag == 'v25.1.0' && !contains(github.event.pull_request.title, '[skip tests]') }}
run: make docker-pull
env:
FLUENT_IMAGE_TAG: ${{ vars.FLUENT_STABLE_IMAGE_DEV }}

- name: Unit Testing
if: ${{ !contains(github.event.pull_request.title, '[skip tests]') }}
run: |
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-run-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,17 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pull Fluent docker image
if: matrix.image-tag != 'v25.1.0'
run: make docker-pull
env:
FLUENT_IMAGE_TAG: ${{ matrix.image-tag }}

- name: Pull Fluent docker image dev
if: matrix.image-tag == 'v25.1.0'
run: make docker-pull
env:
FLUENT_IMAGE_TAG: ${{ vars.FLUENT_STABLE_IMAGE_DEV }}

- name: Run API codegen
run: make api-codegen
env:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-run-dev-version-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,10 @@ jobs:
env:
FLUENT_IMAGE_TAG: v25.1.0

- name: Update Fluent image
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_ACCESS_TOKEN }}
run: |
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ghcr.io/ansys/pyfluent:v25.1.0 | sed 's/.*@//')
gh variable set FLUENT_STABLE_IMAGE_DEV --body $DIGEST
2 changes: 2 additions & 0 deletions .github/workflows/test-run-solvermode-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:

- name: Pull 25.1 Fluent docker image
run: make docker-pull
env:
FLUENT_IMAGE_TAG: ${{ vars.FLUENT_STABLE_IMAGE_DEV }}

- name: Run 25.1 API codegen
run: make api-codegen
Expand Down

0 comments on commit df2fd57

Please sign in to comment.