Skip to content

Commit be36581

Browse files
committed
Attempt to hermetic build codeserver
1 parent 2910cfe commit be36581

24 files changed

Lines changed: 21565 additions & 325 deletions

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "codeserver/ubi9-python-3.12/prefetch-input/code-server"]
2+
path = codeserver/ubi9-python-3.12/prefetch-input/code-server
3+
url = https://github.com/coder/code-server.git

.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-pull-request.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ metadata:
1313
pipelinesascode.tekton.dev/max-keep-runs: '3'
1414
pipelinesascode.tekton.dev/on-comment: ^/kfbuild\s+(all|odh\-workbench\-codeserver\-datascience\-cpu\-py312\-ubi9|codeserver/ubi9\-python\-3\.12)
1515
pipelinesascode.tekton.dev/on-cel-expression: |
16-
event == "pull_request" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-pull-request.yaml".pathChanged() || "codeserver/ubi9-python-3.12/**".pathChanged() || "codeserver/ubi9-python-3.12/build-args/cpu.conf".pathChanged() )
17-
&& body.repository.full_name == "opendatahub-io/notebooks"
16+
event == "pull_request" && target_branch == "main" &&
17+
!("manifests/base/params-latest.env".pathChanged()) &&
18+
(
19+
".tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-pull-request.yaml".pathChanged() ||
20+
"codeserver/ubi9-python-3.12/**".pathChanged() ||
21+
"codeserver/ubi9-python-3.12/build-args/cpu.conf".pathChanged()
22+
) && body.repository.full_name == "opendatahub-io/notebooks"
1823
labels:
1924
appstudio.openshift.io/application: opendatahub-release
2025
appstudio.openshift.io/component: odh-workbench-codeserver-datascience-cpu-py312-ubi9
@@ -45,6 +50,20 @@ spec:
4550
value: .
4651
- name: build-args-file
4752
value: codeserver/ubi9-python-3.12/build-args/cpu.conf
53+
- name: prefetch-input
54+
value:
55+
- path: codeserver/ubi9-python-3.12/prefetch-input
56+
type: rpm
57+
- path: codeserver/ubi9-python-3.12/prefetch-input
58+
type: generic
59+
- path: codeserver/ubi9-python-3.12/prefetch-input/code-server
60+
type: npm
61+
- path: codeserver/ubi9-python-3.12/prefetch-input/code-server/lib/vscode
62+
type: npm
63+
- path: codeserver/ubi9-python-3.12/patches/code-server/test
64+
type: npm
65+
- patch: codeserver/ubi9-python-3.12/prefetch-input/code-server/test/e2e/extensions/test-extension
66+
type: npm
4867
pipelineRef:
4968
name: multiarch-pull-request-pipeline
5069
taskRunTemplate:

.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-push.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ metadata:
88
pipelinesascode.tekton.dev/cancel-in-progress: "false"
99
pipelinesascode.tekton.dev/max-keep-runs: "3"
1010
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
11-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && !("manifests/base/params-latest.env".pathChanged()) && ( ".tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-push.yaml".pathChanged() || "codeserver/ubi9-python-3.12/**".pathChanged() || "codeserver/ubi9-python-3.12/build-args/cpu.conf".pathChanged() )
11+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" &&
12+
!("manifests/base/params-latest.env".pathChanged()) &&
13+
(
14+
".tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-push.yaml".pathChanged() ||
15+
"codeserver/ubi9-python-3.12/**".pathChanged() ||
16+
"codeserver/ubi9-python-3.12/build-args/cpu.conf".pathChanged()
17+
)
1218
creationTimestamp:
1319
labels:
1420
appstudio.openshift.io/application: opendatahub-release
@@ -38,6 +44,20 @@ spec:
3844
value:
3945
- linux-extra-fast/amd64
4046
- linux-m2xlarge/arm64
47+
- name: prefetch-input
48+
value:
49+
- path: codeserver/ubi9-python-3.12/prefetch-input
50+
type: rpm
51+
- path: codeserver/ubi9-python-3.12/prefetch-input
52+
type: generic
53+
- path: codeserver/ubi9-python-3.12/prefetch-input/code-server
54+
type: npm
55+
- path: codeserver/ubi9-python-3.12/prefetch-input/code-server/lib/vscode
56+
type: npm
57+
- path: codeserver/ubi9-python-3.12/patches/code-server/test
58+
type: npm
59+
- patch: codeserver/ubi9-python-3.12/prefetch-input/code-server/test/e2e/extensions/test-extension
60+
type: npm
4161
pipelineRef:
4262
name: multiarch-push-pipeline
4363
taskRunTemplate:

0 commit comments

Comments
 (0)