Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,21 @@ images:
- context_dir: .
dockerfile_path: ./dashboard-operator/Dockerfile
to: odh-dashboard-operator-image
- dockerfile_literal: |
FROM registry.access.redhat.com/ubi9/nodejs-22:latest
USER root
RUN dnf install -y git && dnf clean all
USER 1001
to: nodejs-22-src
promotion:
to:
- namespace: opendatahub-io
- excluded_images:
- nodejs-22-src
namespace: opendatahub-io
tag: latest
- namespace: opendatahub-io
- excluded_images:
- nodejs-22-src
namespace: opendatahub-io
tag: main
releases:
latest:
Expand All @@ -58,7 +68,56 @@ resources:
requests:
cpu: 200m
memory: 400Mi
lint:
requests:
cpu: "2"
memory: 8Gi
nodejs-22-src:
requests:
cpu: "1"
memory: 2Gi
type-check:
requests:
cpu: "2"
memory: 8Gi
unit-tests:
requests:
cpu: "2"
memory: 8Gi
tests:
- as: lint
commands: |
set -euo pipefail
export HOME="$(pwd)"
npm install -g npm@11.8.0
npm ci
npm run install:modules
NODE_OPTIONS="--max-old-space-size=8192" npm run lint
container:
clone: true
from: nodejs-22-src
- as: type-check
commands: |
set -euo pipefail
export HOME="$(pwd)"
npm install -g npm@11.8.0
npm ci
npm run install:modules
npm run type-check
container:
clone: true
from: nodejs-22-src
- as: unit-tests
commands: |
set -euo pipefail
export HOME="$(pwd)"
npm install -g npm@11.8.0
npm ci
npm run install:modules
npm run test-unit-coverage -- -- --testTimeout=15000
container:
clone: true
from: nodejs-22-src
- as: odh-dashboard-image-mirror
postsubmit: true
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,81 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
cluster: build04
context: ci/prow/lint
decorate: true
decoration_config:
sparse_checkout_files:
- Dockerfile
- dashboard-operator/Dockerfile
- distributions/core-bff/Dockerfile.workspace
- packages/agent-ops/Dockerfile.workspace
- packages/automl/Dockerfile.workspace
- packages/autorag/Dockerfile.workspace
- packages/eval-hub/Dockerfile.workspace
- packages/gen-ai/Dockerfile.workspace
- packages/maas/Dockerfile.workspace
- packages/mlflow/Dockerfile.workspace
- packages/model-registry/Dockerfile.workspace
- packages/notebooks/Dockerfile.workspace
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-opendatahub-io-odh-dashboard-main-lint
rerun_command: /test lint
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=lint
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )lint,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
Expand Down Expand Up @@ -1181,3 +1256,153 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )odh-mod-arch-notebooks-pr-image-mirror,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
cluster: build04
context: ci/prow/type-check
decorate: true
decoration_config:
sparse_checkout_files:
- Dockerfile
- dashboard-operator/Dockerfile
- distributions/core-bff/Dockerfile.workspace
- packages/agent-ops/Dockerfile.workspace
- packages/automl/Dockerfile.workspace
- packages/autorag/Dockerfile.workspace
- packages/eval-hub/Dockerfile.workspace
- packages/gen-ai/Dockerfile.workspace
- packages/maas/Dockerfile.workspace
- packages/mlflow/Dockerfile.workspace
- packages/model-registry/Dockerfile.workspace
- packages/notebooks/Dockerfile.workspace
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-opendatahub-io-odh-dashboard-main-type-check
rerun_command: /test type-check
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=type-check
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )type-check,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
cluster: build04
context: ci/prow/unit-tests
decorate: true
decoration_config:
sparse_checkout_files:
- Dockerfile
- dashboard-operator/Dockerfile
- distributions/core-bff/Dockerfile.workspace
- packages/agent-ops/Dockerfile.workspace
- packages/automl/Dockerfile.workspace
- packages/autorag/Dockerfile.workspace
- packages/eval-hub/Dockerfile.workspace
- packages/gen-ai/Dockerfile.workspace
- packages/maas/Dockerfile.workspace
- packages/mlflow/Dockerfile.workspace
- packages/model-registry/Dockerfile.workspace
- packages/notebooks/Dockerfile.workspace
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-opendatahub-io-odh-dashboard-main-unit-tests
rerun_command: /test unit-tests
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=unit-tests
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )unit-tests,?($|\s.*)