Skip to content

Commit

Permalink
rework containerd build jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
upodroid committed Jul 8, 2023
1 parent 3cb41f8 commit 82a3aa2
Show file tree
Hide file tree
Showing 5 changed files with 265 additions and 110 deletions.
31 changes: 21 additions & 10 deletions config/jobs/containerd/containerd/OWNERS
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
# See the OWNERS docs at https://go.k8s.io/owners

reviewers:
- yujuhong
- Random-Liu
- dchen1107
- dims
- mikebrow
- bart0sh
- bobbypage
- derekwaynecarr
- endocrimes
- pacoxu
- sjenning
- SergeyKanzhelev
approvers:
- yujuhong
- Random-Liu
- dchen1107
- dims
- mikebrow
- yujuhong
- Random-Liu
- dchen1107
- derekwaynecarr
- sjenning
- mrunalp
- klueska
- SergeyKanzhelev
- endocrimes
emeritus_approvers:
- dashpole
- ehashman
labels:
- sig/node
114 changes: 110 additions & 4 deletions config/jobs/containerd/containerd/containerd-periodic-jobs.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# These CI/post-submit jobs are used by Kubernetes tests to fetch a recent build of containerd instead of building containerd on every run.
# The intervals are specifically set to 24h as these jobs also run as postsubmits for main and last 2 releases
periodics:
- name: ci-containerd-build-canary
interval: 30m
- name: ci-containerd-build
interval: 24h
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
cluster: k8s-infra-prow-build
decorate: true
extra_refs:
Expand Down Expand Up @@ -34,5 +34,111 @@ periodics:
privileged: true
annotations:
testgrid-dashboards: sig-node-containerd,containerd-periodic
testgrid-tab-name: containerd-build-canary
testgrid-tab-name: ci-containerd-build
description: "builds development in progress branch of upstream containerd"

- name: ci-containerd-build-1-6
interval: 24h
labels:
preset-service-account: "true"
cluster: k8s-infra-prow-build
decorate: true
extra_refs:
- org: containerd
repo: containerd
base_ref: release/1.6
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230616-e730b60769-master
command:
- runner.sh
args:
- test/build.sh
env:
- name: DEPLOY_DIR
value: release-1.6
- name: DEPLOY_BUCKET
value: k8s-staging-cri-tools
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
annotations:
testgrid-dashboards: sig-node-containerd,containerd-periodic
testgrid-tab-name: ci-containerd-build-1.6
description: "builds release/1.6 branch of upstream containerd"

- name: ci-containerd-build-1-7
interval: 24h
labels:
preset-service-account: "true"
cluster: k8s-infra-prow-build
decorate: true
extra_refs:
- org: containerd
repo: containerd
base_ref: release/1.7
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230616-e730b60769-master
command:
- runner.sh
args:
- test/build.sh
env:
- name: DEPLOY_DIR
value: release-1.7
- name: DEPLOY_BUCKET
value: k8s-staging-cri-tools
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
annotations:
testgrid-dashboards: sig-node-containerd,containerd-periodic
testgrid-tab-name: ci-containerd-build-1.7
description: "builds release/1.7 branch of upstream containerd"

- name: ci-containerd-build-test-images
interval: 24h
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
cluster: k8s-infra-prow-build
decorate: true
extra_refs:
- org: containerd
repo: containerd
base_ref: main
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230616-e730b60769-master
command:
- runner.sh
args:
- test/build-test-images.sh
env:
- name: DEPLOY_DIR
value: main
- name: DEPLOY_BUCKET
value: k8s-staging-cri-tools
# docker-in-docker needs privileged mode
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
securityContext:
privileged: true
annotations:
testgrid-dashboards: sig-node-containerd,containerd-periodic
testgrid-tab-name: ci-containerd-build-test-images
description: "builds test images for development in progress branch of upstream containerd"
130 changes: 130 additions & 0 deletions config/jobs/containerd/containerd/containerd-postsubmit-jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# These CI/post-submit jobs are used by Kubernetes tests to fetch a recent build of containerd instead of building containerd on every run.
postsubmits:
containerd/containerd:
- name: post-containerd-build
labels:
preset-service-account: "true"
cluster: k8s-infra-prow-build
decorate: true
branches:
- main
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230616-e730b60769-master
command:
- runner.sh
args:
- test/build.sh
env:
- name: DEPLOY_DIR
value: main
- name: DEPLOY_BUCKET
value: k8s-staging-cri-tools
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
annotations:
testgrid-dashboards: sig-node-containerd,containerd-postsubmits
testgrid-tab-name: post-containerd-build
description: "builds development in progress branch of upstream containerd"

- name: post-containerd-build-1-6
labels:
preset-service-account: "true"
cluster: k8s-infra-prow-build
decorate: true
branches:
- release/1.6
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230616-e730b60769-master
command:
- runner.sh
args:
- test/build.sh
env:
- name: DEPLOY_DIR
value: release-1.6
- name: DEPLOY_BUCKET
value: k8s-staging-cri-tools
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
annotations:
testgrid-dashboards: sig-node-containerd,containerd-postsubmits
testgrid-tab-name: post-containerd-build-1.6
description: "builds release/1.6 branch of upstream containerd"

- name: post-containerd-build-1-7
labels:
preset-service-account: "true"
cluster: k8s-infra-prow-build
decorate: true
branches:
- release/1.7
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230616-e730b60769-master
command:
- runner.sh
args:
- test/build.sh
env:
- name: DEPLOY_DIR
value: release-1.7
- name: DEPLOY_BUCKET
value: k8s-staging-cri-tools
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
annotations:
testgrid-dashboards: sig-node-containerd,containerd-postsubmits
testgrid-tab-name: post-containerd-build-1.7
description: "builds release/1.7 branch of upstream containerd"

- name: post-containerd-build-test-images
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
cluster: k8s-infra-prow-build
decorate: true
branches:
- main
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230616-e730b60769-master
command:
- runner.sh
args:
- test/build-test-images.sh
env:
- name: DEPLOY_DIR
value: main
- name: PROJECT
value: k8s-staging-cri-tools
# docker-in-docker needs privileged mode
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
securityContext:
privileged: true
annotations:
testgrid-dashboards: sig-node-containerd,containerd-postsubmits
testgrid-tab-name: post-containerd-build-test-images
description: "builds test images for development in progress branch of upstream containerd"
96 changes: 1 addition & 95 deletions config/jobs/kubernetes/sig-node/containerd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,101 +35,7 @@ presets:
value: containerd

periodics:
- name: ci-containerd-build
interval: 30m
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
cluster: default # don't move this job to the community cluster till the gs://cri-containerd-staging is owned by the community
decorate: true
extra_refs:
- org: containerd
repo: containerd
base_ref: main
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230703-e6ae5b372a-master
command:
- runner.sh
args:
- test/build.sh
env:
- name: DEPLOY_DIR
value: master
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
securityContext:
privileged: true
annotations:
testgrid-dashboards: sig-node-containerd,containerd-periodic
testgrid-tab-name: containerd-build
description: "builds development in progress branch of upstream containerd"
- name: ci-containerd-build-1-6
interval: 30m
labels:
preset-service-account: "true"
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230703-e6ae5b372a-master
args:
- --repo=github.com/containerd/containerd=release/1.6
- --root=/go/src
- --upload=gs://kubernetes-jenkins/logs
- --scenario=execute
- --
- --env=DEPLOY_DIR=release-1.6
- /go/src/github.com/containerd/containerd/test/build.sh
annotations:
testgrid-dashboards: sig-node-containerd,containerd-periodic
testgrid-tab-name: containerd-build-1.6
description: "builds release/1.6 branch of upstream containerd"
- name: ci-containerd-build-test-images
interval: 4h
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230703-e6ae5b372a-master
args:
- --repo=github.com/containerd/containerd=main
- --root=/go/src
- --upload=gs://kubernetes-jenkins/logs
- --scenario=execute
- --
- --env=DEPLOY_DIR=master
- /go/src/github.com/containerd/containerd/test/build-test-images.sh
# docker-in-docker needs privileged mode
securityContext:
privileged: true
annotations:
testgrid-dashboards: sig-node-containerd,containerd-periodic
testgrid-tab-name: containerd-build-test-images
description: "builds test images for development in progress branch of upstream containerd"
- name: ci-containerd-build-1-7
interval: 30m
labels:
preset-service-account: "true"
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230703-e6ae5b372a-master
args:
- --repo=github.com/containerd/containerd=release/1.7
- --root=/go/src
- --upload=gs://kubernetes-jenkins/logs
- --scenario=execute
- --
- --env=DEPLOY_DIR=release-1.7
- /go/src/github.com/containerd/containerd/test/build.sh
annotations:
testgrid-dashboards: sig-node-containerd,containerd-periodic
testgrid-tab-name: containerd-build-1.7
description: "builds release/1.7 branch of upstream containerd"
# containerd build PERIODICS have been moved to the config/jobs/containerd/containerd folder. Please don't add any in here.
- name: ci-containerd-e2e-ubuntu-gce
interval: 1h
labels:
Expand Down
Loading

0 comments on commit 82a3aa2

Please sign in to comment.