forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andrea Lamparelli <[email protected]>
- Loading branch information
Showing
13 changed files
with
584 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Test custom storage initializer | ||
on: | ||
pull_request: | ||
paths: | ||
- "csi/**" | ||
- "internal/server/openapi/api_model_registry_service*" | ||
- "pkg/openapi/**" | ||
|
||
env: | ||
IMG_ORG: kubeflow | ||
MODEL_REGISTRY_IMG: model-registry | ||
MODEL_REGISTRY_CSI_IMG: model-registry-storage-initializer | ||
PUSH_IMAGE: false | ||
BRANCH: ${{ github.base_ref }} | ||
jobs: | ||
build-and-test-csi-image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Generate tag | ||
shell: bash | ||
id: tags | ||
run: | | ||
commit_sha=${{ github.event.after }} | ||
tag=main-${commit_sha:0:7} | ||
echo "tag=${tag}" >> $GITHUB_OUTPUT | ||
- name: Install network tools | ||
run: sudo apt-get update && sudo apt-get install -y netcat | ||
|
||
- name: Build local model registry image | ||
shell: bash | ||
env: | ||
IMG_REPO: ${{ env.MODEL_REGISTRY_IMG }} | ||
VERSION: ${{ steps.tags.outputs.tag }} | ||
PUSH_IMAGE: false | ||
run: ./scripts/build_deploy.sh | ||
|
||
- name: Build local custom storage initializer | ||
working-directory: ./csi | ||
shell: bash | ||
env: | ||
IMG_REPO: ${{ env.MODEL_REGISTRY_CSI_IMG }} | ||
IMG_VERSION: ${{ steps.tags.outputs.tag }} | ||
# TODO: update go.mod to use local model registry library | ||
run: make docker-build | ||
|
||
- name: Start KinD cluster | ||
uses: helm/[email protected] | ||
with: | ||
node_image: "kindest/node:v1.27.11" | ||
|
||
- name: Install kustomize | ||
run: ./csi/scripts/install_kustomize.sh | ||
|
||
- name: Run tests | ||
working-directory: ./csi | ||
shell: bash | ||
env: | ||
MR_IMG: "${{ env.IMG_ORG }}/${{ env.MODEL_REGISTRY_IMG }}:${{ steps.tags.outputs.tag }}" | ||
MR_CSI_IMG: "${{ env.IMG_ORG }}/${{ env.MODEL_REGISTRY_CSI_IMG }}:${{ steps.tags.outputs.tag }}" | ||
CLUSTER: chart-testing | ||
run: ./test/e2e_test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ bin/ | |
|
||
# Go workspace file | ||
go.work | ||
|
||
# KServe manifests | ||
istio-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.