Skip to content
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

Update ModelMesh-serving CI job for main branch #40156

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,21 @@ base_images:
tag: "8"
build_root:
project_image:
dockerfile_path: Dockerfile.develop
dockerfile_literal: "FROM registry.access.redhat.com/ubi8/go-toolset:1.19\nENV
GOBIN=/go/bin\nENV PATH=/usr/local/go/bin:${GOBIN}:$PATH\nUSER root\n# Prow
expects to be able to check out a repo under /go \nWORKDIR /go\nRUN umask 0111
&& find /go -type d -not -perm -0775 | xargs --max-procs 10 --max-args 100 --no-run-if-empty
chmod g+xw"
images:
- build_args:
- name: TARGETOS
value: linux
- name: TARGETARCH
value: amd64
context_dir: .
dockerfile_path: Dockerfile.develop.ci
from: src
to: modelmesh-serving-develop
- build_args:
- name: COMMIT_SHA
value: ci-sha
Expand All @@ -16,7 +29,7 @@ images:
dockerfile_path: Dockerfile
from: ubi_minimal
inputs:
root:
modelmesh-serving-develop:
as:
- ${DEV_IMAGE}
to: modelmesh-serving
Expand All @@ -38,11 +51,9 @@ resources:
memory: 200Mi
tests:
- as: unit
commands: |
export HOME=/go
make test
commands: make test
container:
from: src
from: modelmesh-serving-develop
run_if_changed: ^(apis/.*|controllers/.*|pkg/.*|Dockerfile|main\.go|go\.mod|go\.sum)
- as: fvt
run_if_changed: ^(apis/.*|controllers/.*|fvt/.*|pkg/.*|scripts/.*|proto/.*|config/.*|Makefile|main\.go|Dockerfile|go\.mod|go\.sum)
Expand All @@ -57,7 +68,7 @@ tests:
dependencies:
- env: PR_MODELMESH_SERVING_IMAGE
name: modelmesh-serving
from: src
from: modelmesh-serving-develop
resources:
requests:
cpu: 2000m
Expand All @@ -77,7 +88,7 @@ tests:
dependencies:
- env: PR_MODELMESH_SERVING_IMAGE
name: modelmesh-serving
from: src
from: modelmesh-serving-develop
resources:
requests:
cpu: 2000m
Expand Down