Skip to content

Commit 5612f4e

Browse files
sync pipelineruns with konflux-central - eae102c
1 parent 695720a commit 5612f4e

File tree

3 files changed

+224
-0
lines changed

3 files changed

+224
-0
lines changed

.tekton/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# ⚠️ Do Not Modify Files in the `.tekton/` Directory Directly
2+
3+
The `.tekton/` directory in each component repository is **automatically synchronized** from [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) using automation. Any edits made directly to Tekton files in the component repositories will be **overwritten** by the next sync.
4+
5+
All Tekton file updates **must be made in the `konflux-central` repository**.
6+
7+
## ✅ How to Make Changes
8+
9+
To modify the pipelines for `vllm` in the `rhoai-2.23` release:
10+
11+
- Clone the [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) repository.
12+
13+
```bash
14+
git clone git@github.com:red-hat-data-services/konflux-central.git
15+
cd konflux-central
16+
```
17+
18+
- Check out the release branch
19+
20+
```bash
21+
git checkout rhoai-2.23
22+
```
23+
24+
- Navigate to the Tekton files for your component(s).
25+
26+
```bash
27+
cd pipelineruns/vllm/.tekton
28+
```
29+
30+
- Make the required changes to the Tekton YAML files.
31+
32+
- Commit and push your changes.
33+
34+
```bash
35+
git commit -am "Update pipelinerun for vllm (rhoai-2.23)"
36+
git push origin rhoai-2.23
37+
```
38+
39+
- Once pushed, automation will automatically sync your updates to the corresponding component repository.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/vllm?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
pipelinesascode.tekton.dev/on-comment: "^/build-cuda"
11+
pipelinesascode.tekton.dev/on-label: "[build-all]"
12+
pipelinesascode.tekton.dev/on-event: "[pull_request]"
13+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
14+
creationTimestamp: null
15+
labels:
16+
appstudio.openshift.io/application: automation
17+
appstudio.openshift.io/component: pull-request-pipelines
18+
pipelines.appstudio.openshift.io/type: build
19+
name: vllm-cuda-on-pull-request
20+
namespace: rhoai-tenant
21+
spec:
22+
timeouts:
23+
pipeline: 10h
24+
tasks: 8h
25+
params:
26+
- name: image-expires-after
27+
value: 5d
28+
- name: git-url
29+
value: '{{source_url}}'
30+
- name: revision
31+
value: '{{revision}}'
32+
- name: output-image
33+
value: quay.io/redhat-user-workloads/rhoai-tenant/pull-request-pipelines:vllm-cuda-{{revision}}
34+
- name: dockerfile
35+
value: Dockerfile.ubi
36+
- name: path-context
37+
value: .
38+
- name: hermetic
39+
value: false
40+
- name: build-source-image
41+
value: false
42+
- name: build-image-index
43+
value: true
44+
- name: rebuild
45+
value: true
46+
- name: skip-checks
47+
value: true
48+
- name: build-args
49+
value:
50+
- max_jobs=6
51+
- nvcc_threads=2
52+
- VLLM_VERSION=0.9.0.1
53+
- name: fetch-git-tags
54+
value: true
55+
- name: clone-depth
56+
value: "2147483647"
57+
- name: build-platforms
58+
value:
59+
- linux-extra-fast/amd64
60+
taskRunSpecs:
61+
- pipelineTaskName: ecosystem-cert-preflight-checks
62+
computeResources:
63+
requests:
64+
cpu: '8'
65+
memory: 16Gi
66+
limits:
67+
cpu: '16'
68+
memory: 32Gi
69+
- pipelineTaskName: clair-scan
70+
computeResources:
71+
requests:
72+
cpu: '8'
73+
memory: 16Gi
74+
limits:
75+
cpu: '16'
76+
memory: 32Gi
77+
pipelineRef:
78+
resolver: git
79+
params:
80+
- name: url
81+
value: https://github.com/red-hat-data-services/konflux-central.git
82+
- name: revision
83+
value: '{{ target_branch }}'
84+
- name: pathInRepo
85+
value: pipelines/multi-arch-container-build.yaml
86+
taskRunTemplate:
87+
serviceAccountName: build-pipeline-pull-request-pipelines
88+
workspaces:
89+
- name: git-auth
90+
secret:
91+
secretName: '{{ git_auth_secret }}'
92+
status: {}

.tekton/vllm-cuda-v2-23-push.yaml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/vllm?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/max-keep-runs: "3"
9+
build.appstudio.openshift.io/build-nudge-files: "config/base/params.env"
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push"
12+
&& target_branch == "rhoai-2.23"
13+
&& ( !".tekton/**".pathChanged() || ".tekton/vllm-cuda-v2-23-push.yaml".pathChanged() )
14+
creationTimestamp: null
15+
labels:
16+
appstudio.openshift.io/application: external-rhoai-v2-23
17+
appstudio.openshift.io/component: vllm-cuda-v2-23
18+
pipelines.appstudio.openshift.io/type: build
19+
name: vllm-cuda-v2-23-on-push
20+
namespace: rhoai-tenant
21+
spec:
22+
timeouts:
23+
pipeline: 10h
24+
tasks: 8h
25+
params:
26+
- name: git-url
27+
value: '{{source_url}}'
28+
- name: revision
29+
value: '{{revision}}'
30+
- name: output-image
31+
value: quay.io/modh/vllm:{{target_branch}}-cuda
32+
- name: additional-tags
33+
value:
34+
- '{{target_branch}}-cuda-{{revision}}'
35+
- name: dockerfile
36+
value: Dockerfile.ubi
37+
- name: path-context
38+
value: .
39+
- name: hermetic
40+
value: false
41+
- name: build-source-image
42+
value: false
43+
- name: build-image-index
44+
value: true
45+
- name: rebuild
46+
value: true
47+
- name: skip-checks
48+
value: true
49+
- name: build-args
50+
value:
51+
- max_jobs=6
52+
- nvcc_threads=2
53+
- VLLM_VERSION=0.9.0.1
54+
- name: fetch-git-tags
55+
value: true
56+
- name: clone-depth
57+
value: "2147483647"
58+
- name: build-platforms
59+
value:
60+
- linux-extra-fast/amd64
61+
taskRunSpecs:
62+
- pipelineTaskName: ecosystem-cert-preflight-checks
63+
computeResources:
64+
requests:
65+
cpu: '8'
66+
memory: 16Gi
67+
limits:
68+
cpu: '16'
69+
memory: 32Gi
70+
- pipelineTaskName: clair-scan
71+
computeResources:
72+
requests:
73+
cpu: '8'
74+
memory: 16Gi
75+
limits:
76+
cpu: '16'
77+
memory: 32Gi
78+
pipelineRef:
79+
resolver: git
80+
params:
81+
- name: url
82+
value: https://github.com/red-hat-data-services/konflux-central.git
83+
- name: revision
84+
value: '{{ target_branch }}'
85+
- name: pathInRepo
86+
value: pipelines/multi-arch-container-build.yaml
87+
taskRunTemplate:
88+
serviceAccountName: build-pipeline-vllm-cuda-v2-23
89+
workspaces:
90+
- name: git-auth
91+
secret:
92+
secretName: '{{ git_auth_secret }}'
93+
status: {}

0 commit comments

Comments
 (0)