Skip to content

Commit bce9784

Browse files
committed
chore(async-job): ensure async job has a separate env var from mr service
Signed-off-by: Eric Dobroveanu <[email protected]>
1 parent 82b9161 commit bce9784

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.github/workflows/async-upload-test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ jobs:
4949
set -x
5050
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
5151
- name: Run E2E tests
52+
env:
53+
IMG_VERSION: e2e
54+
JOB_IMG_VERSION: e2e
55+
BUILD_IMAGE: true
5256
run: |
53-
make test-e2e
57+
IMG_VERSION=e2e JOB_IMG_VERSION=e2e make test-e2e
5458
job-test:
5559
runs-on: ubuntu-latest
5660
defaults:
@@ -71,6 +75,8 @@ jobs:
7175
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
7276
- name: Execute Sample Job E2E test
7377
env:
74-
IMG_VERSION: e2e
78+
IMG_VERSION: integration
79+
JOB_IMG_VERSION: integration
80+
BUILD_IMAGE: true
7581
run: |
76-
make test-integration
82+
IMG_VERSION=integration JOB_IMG_VERSION=integration make test-integration

jobs/async-upload/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
IMG_VERSION ?= latest
2-
IMG_REGISTRY ?= ghcr.io
3-
IMG_ORG ?= kubeflow
4-
IMG_NAME ?= model-registry/job/async-upload
5-
IMG ?= $(IMG_REGISTRY)/$(IMG_ORG)/$(IMG_NAME):$(IMG_VERSION)
1+
JOB_IMG_VERSION ?= latest
2+
JOB_IMG_REGISTRY ?= ghcr.io
3+
JOB_IMG_ORG ?= kubeflow
4+
JOB_IMG_NAME ?= model-registry/job/async-upload
5+
JOB_IMG ?= $(JOB_IMG_REGISTRY)/$(JOB_IMG_ORG)/$(JOB_IMG_NAME):$(JOB_IMG_VERSION)
66
BUILD_IMAGE ?= true # whether to build the MR server image
77
CLUSTER_NAME ?= mr-e2e
88

99
.PHONY: deploy-latest-mr
1010
deploy-latest-mr:
1111
cd ../../ && \
1212
$(if $(filter true,$(BUILD_IMAGE)),\
13-
IMG_VERSION=${IMG_VERSION} make image/build ARGS="--load$(if ${DEV_BUILD}, --target dev-build)" && \
13+
JOB_IMG_VERSION=${JOB_IMG_VERSION} make image/build ARGS="--load$(if ${DEV_BUILD}, --target dev-build)" && \
1414
) \
1515
LOCAL=1 ./scripts/deploy_on_kind.sh
1616
kubectl port-forward -n kubeflow services/model-registry-service 8080:8080 & echo $$! >> .port-forwards.pid
@@ -29,8 +29,8 @@ deploy-local-registry:
2929

3030
.PHONY: dev-load-image
3131
dev-load-image:
32-
docker buildx build --load -t $(IMG) .
33-
kind load docker-image $(IMG) -n $(CLUSTER_NAME)
32+
docker buildx build --load -t $(JOB_IMG) .
33+
kind load docker-image $(JOB_IMG) -n $(CLUSTER_NAME)
3434

3535
.PHONY: test
3636
test:
@@ -73,7 +73,7 @@ test-integration-run:
7373
@echo "Ensuring all extras are installed..."
7474
poetry install --all-extras --with integration
7575
@echo "Running integration tests..."
76-
CONTAINER_IMAGE_URI=$(IMG) poetry run pytest --integration tests/integration/ -vs
76+
CONTAINER_IMAGE_URI=$(JOB_IMG) poetry run pytest --integration tests/integration/ -vs
7777

7878
.PHONY: install
7979
install:

0 commit comments

Comments
 (0)