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 21, 2023
1 parent 64f5ad6 commit 8889084
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 102 deletions.
116 changes: 110 additions & 6 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 All @@ -30,9 +30,113 @@ periodics:
requests:
cpu: 4
memory: 6Gi
securityContext:
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: PROJECT
value: k8s-staging-cri-tools
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
# docker-in-docker needs privileged mode
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
resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 4
memory: 6Gi
# docker-in-docker needs privileged mode
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
4 changes: 3 additions & 1 deletion config/testgrids/kubernetes/containerd/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ dashboard_groups:
dashboard_names:
- containerd-presubmits
- containerd-periodic
- containerd-postsubmits

dashboards:
- name: containerd-periodic
- name: containerd-presubmits
- name: containerd-presubmits
- name: containerd-postsubmits

0 comments on commit 8889084

Please sign in to comment.