Skip to content

Commit d8884b6

Browse files
committed
[ci] Use serving_version in nightly pipeline
1 parent 25cab8a commit d8884b6

File tree

6 files changed

+23
-18
lines changed

6 files changed

+23
-18
lines changed

.github/workflows/docker-nightly-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ on:
2828
djl_version:
2929
description: "djl version"
3030
value: ${{ jobs.nightly-build.outputs.djl_version }}
31+
serving_version:
32+
description: "djl serving version"
33+
value: ${{ jobs.nightly-build.outputs.serving_version }}
3134

3235
permissions:
3336
id-token: write
@@ -83,6 +86,7 @@ jobs:
8386
- SHA-${{ github.sha }}
8487
outputs:
8588
djl_version: ${{ steps.get-versions.outputs.DJL_VERSION }}
89+
serving_version: ${{ steps.get-versions.outputs.SERVING_VERSION }}
8690
steps:
8791
- name: Clean disk space
8892
run: |
@@ -121,6 +125,7 @@ jobs:
121125
echo "DJL_VERSION=$DJL_VERSION" >> $GITHUB_ENV
122126
echo "DJL_VERSION=$DJL_VERSION" >> $GITHUB_OUTPUT
123127
echo "SERVING_VERSION=$SERVING_VERSION" >> $GITHUB_ENV
128+
echo "SERVING_VERSION=$SERVING_VERSION" >> $GITHUB_OUTPUT
124129
mode=${{ inputs.mode }}
125130
if [[ "$mode" != "release" ]]; then
126131
export NIGHTLY="-nightly"

.github/workflows/integration.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Integration tests
33
on:
44
workflow_dispatch:
55
inputs:
6-
djl-version:
7-
description: 'The released version of DJL.'
6+
serving-version:
7+
description: 'The released version of DJL Serving.'
88
required: true
99
default: ''
1010
tag-suffix:
@@ -19,8 +19,8 @@ on:
1919
default: '185921645874.dkr.ecr.us-east-1.amazonaws.com/djl-ci-temp'
2020
workflow_call:
2121
inputs:
22-
djl-version:
23-
description: 'The released version of DJL.'
22+
serving-version:
23+
description: 'The released version of DJL Serving.'
2424
required: false
2525
type: string
2626
default: ''
@@ -260,7 +260,7 @@ jobs:
260260
- name: Test
261261
working-directory: tests/integration
262262
env:
263-
TEST_DJL_VERSION: ${{ inputs.djl-version }}
263+
TEST_SERVING_VERSION: ${{ inputs.serving-version }}
264264
IMAGE_TAG_SUFFIX: ${{ inputs.tag-suffix }}
265265
IMAGE_REPO: ${{ inputs.image-repo }}
266266
run: |

.github/workflows/integration_execute.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ on:
2020
- action_g6
2121
- action_graviton
2222

23-
djl-version:
24-
description: 'The released version of DJL. Can be "nightly", "temp", or a DJL release version like "0.28.0"'
23+
serving-version:
24+
description: 'The released version of DJL Serving. Can be "nightly", "temp", or a release version like "0.35.0"'
2525
required: false
2626
default: 'temp'
2727

@@ -31,7 +31,7 @@ permissions:
3131

3232
jobs:
3333
build-temp:
34-
if: ${{ inputs.djl-version == 'temp' }}
34+
if: ${{ inputs.serving-version == 'temp' }}
3535
uses: ./.github/workflows/docker-nightly-publish.yml
3636
secrets: inherit
3737
with:
@@ -81,7 +81,7 @@ jobs:
8181
role-to-assume: arn:aws:iam::185921645874:role/github-actions-djl-serving
8282
aws-region: us-east-1
8383
- name: Login for temp
84-
if: ${{ inputs.djl-version == 'temp' }}
84+
if: ${{ inputs.serving-version == 'temp' }}
8585
run: |
8686
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 185921645874.dkr.ecr.us-east-1.amazonaws.com/djl-ci-temp
8787
- name: Install awscurl
@@ -93,7 +93,7 @@ jobs:
9393
- name: Test
9494
working-directory: tests/integration
9595
env:
96-
TEST_DJL_VERSION: ${{ inputs.djl-version }}
96+
TEST_SERVING_VERSION: ${{ inputs.serving-version }}
9797
run: |
9898
python -m pytest tests.py -k "${{ inputs.test }}" -m "${{ inputs.mark }}"
9999
- name: Cleanup

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: ./.github/workflows/integration.yml
3838
secrets: inherit
3939
with:
40-
djl-version: ${{ needs.build.outputs.djl_version }}
40+
serving-version: ${{ needs.build.outputs.serving_version }}
4141
tag-suffix: ${{ inputs.mode == 'release' && github.sha || format('{0}-{1}', 'nightly', github.sha) }}
4242

4343

@@ -88,7 +88,7 @@ jobs:
8888
- name: Get image tag
8989
id: get-tag
9090
run: |
91-
SERVING_VERSION=$(echo "${{ needs.build.outputs.djl_version }}")
91+
SERVING_VERSION=$(echo "${{ needs.build.outputs.serving_version }}")
9292
mode=${{ inputs.mode }}
9393
if [[ "$mode" != "release" ]]; then
9494
NIGHTLY="-nightly"

.github/workflows/optimization_integration.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Optimization Integration tests
33
on:
44
workflow_dispatch:
55
inputs:
6-
djl-version:
7-
description: 'The released version of DJL.'
6+
serving-version:
7+
description: 'The released version of DJL Serving.'
88
required: true
99
default: ''
1010
tag-suffix:
@@ -19,8 +19,8 @@ on:
1919
default: '185921645874.dkr.ecr.us-east-1.amazonaws.com/djl-ci-temp'
2020
workflow_call:
2121
inputs:
22-
djl-version:
23-
description: 'The released version of DJL.'
22+
serving-version:
23+
description: 'The released version of DJL Serving.'
2424
required: false
2525
type: string
2626
default: ''
@@ -158,7 +158,7 @@ jobs:
158158
- name: ECR Auth
159159
working-directory: tests/integration
160160
env:
161-
TEST_DJL_VERSION: ${{ inputs.djl-version }}
161+
TEST_SERVING_VERSION: ${{ inputs.serving-version }}
162162
IMAGE_TAG_SUFFIX: ${{ inputs.tag-suffix }}
163163
IMAGE_REPO: ${{ inputs.image-repo }}
164164
run: |

tests/integration/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import test_client
1212
import time
1313

14-
djl_version = os.environ.get('TEST_DJL_VERSION', '0.34.0').strip()
14+
djl_version = os.environ.get('TEST_SERVING_VERSION', '0.35.0').strip()
1515
override_image_tag_suffix = os.environ.get('IMAGE_TAG_SUFFIX', '').strip()
1616
image_repo = os.environ.get('IMAGE_REPO', '').strip()
1717
override_container = os.environ.get('OVERRIDE_TEST_CONTAINER', '').strip()

0 commit comments

Comments
 (0)