Skip to content

Commit 45ac318

Browse files
authored
Add Prow job configuration for lightspeed-core repository (#70130)
1 parent 561b8f4 commit 45ac318

File tree

7 files changed

+305
-0
lines changed

7 files changed

+305
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
2+
# Fetched from https://github.com/openshift/lightspeed-service root OWNERS
3+
# If the repo had OWNERS_ALIASES then the aliases were expanded
4+
# Logins who are not members of 'openshift' organization were filtered out
5+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
6+
7+
approvers:
8+
- tisnik
9+
- radofuchs
10+
- are-ces
11+
- gallettilance
12+
options: {}
13+
reviewers:
14+
- tisnik
15+
- radofuchs
16+
- are-ces
17+
- gallettilance
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
build_root:
2+
project_image:
3+
dockerfile_literal: |
4+
FROM registry.ci.openshift.org/ocp/ubi-python-311:9
5+
USER 0
6+
RUN dnf install -y podman
7+
images:
8+
- dockerfile_path: Containerfile
9+
to: lightspeed-stack
10+
promotion:
11+
to:
12+
- namespace: lcore-test
13+
tag: latest
14+
releases:
15+
latest:
16+
release:
17+
architecture: multi
18+
channel: stable
19+
version: "4.19"
20+
resources:
21+
'*':
22+
limits:
23+
memory: 8Gi
24+
requests:
25+
cpu: 100m
26+
memory: 4Gi
27+
tests:
28+
- as: e2e-lcore-cluster-periodics
29+
cluster_claim:
30+
architecture: amd64
31+
cloud: aws
32+
labels:
33+
region: us-east-2
34+
owner: obs
35+
product: ocp
36+
timeout: 1h0m0s
37+
version: "4.19"
38+
cron: 10 4 * * *
39+
steps:
40+
allow_skip_on_success: true
41+
post:
42+
- ref: gather-must-gather
43+
test:
44+
- as: e2e
45+
cli: latest
46+
commands: "REPO_URL=\"https://github.com/lightspeed-core/lightspeed-stack.git\"\n\necho
47+
\"===== Cloning lightspeed-stack repo =====\"\ngit clone \"$REPO_URL\"\ncd
48+
lightspeed-stack/tests/e2e-prow/rhoai\n\nchmod +x pipeline.sh\n./pipeline.sh
49+
\ \n"
50+
credentials:
51+
- collection: ""
52+
mount_path: /var/run/huggingface
53+
name: hf-token
54+
namespace: test-credentials
55+
- collection: ""
56+
mount_path: /var/run/vllm
57+
name: vllm-api-key
58+
namespace: test-credentials
59+
- collection: ""
60+
mount_path: /var/run/robot-username
61+
name: robot-username-quay
62+
namespace: test-credentials
63+
- collection: ""
64+
mount_path: /var/run/robot-password
65+
name: robot-password-quay
66+
namespace: test-credentials
67+
dependencies:
68+
- env: LCORE_IMAGE
69+
name: lightspeed-stack
70+
from: src
71+
resources:
72+
requests:
73+
cpu: 100m
74+
workflow: generic-claim
75+
zz_generated_metadata:
76+
branch: main
77+
org: lightspeed-core
78+
repo: lightspeed-stack
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
2+
# Fetched from https://github.com/openshift/lightspeed-service root OWNERS
3+
# If the repo had OWNERS_ALIASES then the aliases were expanded
4+
# Logins who are not members of 'openshift' organization were filtered out
5+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
6+
7+
approvers:
8+
- tisnik
9+
- radofuchs
10+
- are-ces
11+
- gallettilance
12+
options: {}
13+
reviewers:
14+
- tisnik
15+
- radofuchs
16+
- are-ces
17+
- gallettilance
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
periodics:
2+
- agent: kubernetes
3+
cluster: build05
4+
cron: 10 4 * * *
5+
decorate: true
6+
decoration_config:
7+
skip_cloning: true
8+
extra_refs:
9+
- base_ref: main
10+
org: lightspeed-core
11+
repo: lightspeed-stack
12+
labels:
13+
ci.openshift.io/generator: prowgen
14+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
15+
name: periodic-ci-lightspeed-core-lightspeed-stack-main-e2e-lcore-cluster-periodics
16+
spec:
17+
containers:
18+
- args:
19+
- --gcs-upload-secret=/secrets/gcs/service-account.json
20+
- --hive-kubeconfig=/secrets/hive-hive-credentials/kubeconfig
21+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
22+
- --report-credentials-file=/etc/report/credentials
23+
- --secret-dir=/secrets/ci-pull-credentials
24+
- --target=e2e-lcore-cluster-periodics
25+
command:
26+
- ci-operator
27+
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
28+
imagePullPolicy: Always
29+
name: ""
30+
resources:
31+
requests:
32+
cpu: 10m
33+
volumeMounts:
34+
- mountPath: /secrets/ci-pull-credentials
35+
name: ci-pull-credentials
36+
readOnly: true
37+
- mountPath: /secrets/gcs
38+
name: gcs-credentials
39+
readOnly: true
40+
- mountPath: /secrets/hive-hive-credentials
41+
name: hive-hive-credentials
42+
readOnly: true
43+
- mountPath: /secrets/manifest-tool
44+
name: manifest-tool-local-pusher
45+
readOnly: true
46+
- mountPath: /etc/pull-secret
47+
name: pull-secret
48+
readOnly: true
49+
- mountPath: /etc/report
50+
name: result-aggregator
51+
readOnly: true
52+
serviceAccountName: ci-operator
53+
volumes:
54+
- name: ci-pull-credentials
55+
secret:
56+
secretName: ci-pull-credentials
57+
- name: hive-hive-credentials
58+
secret:
59+
secretName: hive-hive-credentials
60+
- name: manifest-tool-local-pusher
61+
secret:
62+
secretName: manifest-tool-local-pusher
63+
- name: pull-secret
64+
secret:
65+
secretName: registry-pull-credentials
66+
- name: result-aggregator
67+
secret:
68+
secretName: result-aggregator
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
postsubmits:
2+
lightspeed-core/lightspeed-stack:
3+
- agent: kubernetes
4+
always_run: true
5+
branches:
6+
- ^main$
7+
cluster: build05
8+
decorate: true
9+
decoration_config:
10+
skip_cloning: true
11+
labels:
12+
ci-operator.openshift.io/is-promotion: "true"
13+
ci.openshift.io/generator: prowgen
14+
max_concurrency: 1
15+
name: branch-ci-lightspeed-core-lightspeed-stack-main-images
16+
spec:
17+
containers:
18+
- args:
19+
- --gcs-upload-secret=/secrets/gcs/service-account.json
20+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
21+
- --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson
22+
- --promote
23+
- --report-credentials-file=/etc/report/credentials
24+
- --target=[images]
25+
command:
26+
- ci-operator
27+
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
28+
imagePullPolicy: Always
29+
name: ""
30+
resources:
31+
requests:
32+
cpu: 10m
33+
volumeMounts:
34+
- mountPath: /secrets/gcs
35+
name: gcs-credentials
36+
readOnly: true
37+
- mountPath: /secrets/manifest-tool
38+
name: manifest-tool-local-pusher
39+
readOnly: true
40+
- mountPath: /etc/pull-secret
41+
name: pull-secret
42+
readOnly: true
43+
- mountPath: /etc/push-secret
44+
name: push-secret
45+
readOnly: true
46+
- mountPath: /etc/report
47+
name: result-aggregator
48+
readOnly: true
49+
serviceAccountName: ci-operator
50+
volumes:
51+
- name: manifest-tool-local-pusher
52+
secret:
53+
secretName: manifest-tool-local-pusher
54+
- name: pull-secret
55+
secret:
56+
secretName: registry-pull-credentials
57+
- name: push-secret
58+
secret:
59+
secretName: registry-push-credentials-ci-central
60+
- name: result-aggregator
61+
secret:
62+
secretName: result-aggregator
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
presubmits:
2+
lightspeed-core/lightspeed-stack:
3+
- agent: kubernetes
4+
always_run: true
5+
branches:
6+
- ^main$
7+
- ^main-
8+
cluster: build05
9+
context: ci/prow/images
10+
decorate: true
11+
decoration_config:
12+
skip_cloning: true
13+
labels:
14+
ci.openshift.io/generator: prowgen
15+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
16+
name: pull-ci-lightspeed-core-lightspeed-stack-main-images
17+
rerun_command: /test images
18+
spec:
19+
containers:
20+
- args:
21+
- --gcs-upload-secret=/secrets/gcs/service-account.json
22+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
23+
- --report-credentials-file=/etc/report/credentials
24+
- --target=[images]
25+
command:
26+
- ci-operator
27+
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
28+
imagePullPolicy: Always
29+
name: ""
30+
resources:
31+
requests:
32+
cpu: 10m
33+
volumeMounts:
34+
- mountPath: /secrets/gcs
35+
name: gcs-credentials
36+
readOnly: true
37+
- mountPath: /secrets/manifest-tool
38+
name: manifest-tool-local-pusher
39+
readOnly: true
40+
- mountPath: /etc/pull-secret
41+
name: pull-secret
42+
readOnly: true
43+
- mountPath: /etc/report
44+
name: result-aggregator
45+
readOnly: true
46+
serviceAccountName: ci-operator
47+
volumes:
48+
- name: manifest-tool-local-pusher
49+
secret:
50+
secretName: manifest-tool-local-pusher
51+
- name: pull-secret
52+
secret:
53+
secretName: registry-pull-credentials
54+
- name: result-aggregator
55+
secret:
56+
secretName: result-aggregator
57+
trigger: (?m)^/test( | .* )images,?($|\s.*)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plugins:
2+
lightspeed-core/lightspeed-stack:
3+
plugins:
4+
- trigger
5+
- verify-owners
6+
- owners-label

0 commit comments

Comments
 (0)