From a763bb8dd337f884fc6ac2e4e74b70f8622294e1 Mon Sep 17 00:00:00 2001 From: upodroid Date: Mon, 13 Nov 2023 15:25:15 -0800 Subject: [PATCH] bootstrap etcd on prow --- config/jobs/etcd/OWNERS | 16 ++++ config/jobs/etcd/etcd-periodics.yaml | 32 ++++++++ config/jobs/etcd/etcd-postsubmits.yaml | 25 ++++++ config/jobs/etcd/etcd-presubmits.yaml | 79 +++++++++++++++++++ config/prow/config.yaml | 2 + config/prow/plugins.yaml | 15 ++++ config/testgrids/kubernetes/sig-etcd/OWNERS | 16 ++++ .../testgrids/kubernetes/sig-etcd/config.yaml | 11 +++ 8 files changed, 196 insertions(+) create mode 100644 config/jobs/etcd/OWNERS create mode 100644 config/jobs/etcd/etcd-periodics.yaml create mode 100644 config/jobs/etcd/etcd-postsubmits.yaml create mode 100644 config/jobs/etcd/etcd-presubmits.yaml create mode 100644 config/testgrids/kubernetes/sig-etcd/OWNERS create mode 100644 config/testgrids/kubernetes/sig-etcd/config.yaml diff --git a/config/jobs/etcd/OWNERS b/config/jobs/etcd/OWNERS new file mode 100644 index 000000000000..7281be8b22bd --- /dev/null +++ b/config/jobs/etcd/OWNERS @@ -0,0 +1,16 @@ +# See the OWNERS docs at https://go.k8s.io/owners + +reviewers: + - ahrtr + - jmhbnz + - serathius + - wenjiaswe + +approvers: + - ahrtr + - jmhbnz + - serathius + - wenjiaswe + +labels: + - sig/etcd diff --git a/config/jobs/etcd/etcd-periodics.yaml b/config/jobs/etcd/etcd-periodics.yaml new file mode 100644 index 000000000000..0a42131a0cda --- /dev/null +++ b/config/jobs/etcd/etcd-periodics.yaml @@ -0,0 +1,32 @@ +periodics: +- name: ci-etcd-e2e-amd64 + interval: 4h + cluster: eks-prow-build-cluster + decorate: true + decoration_config: + timeout: 60m + extra_refs: + - org: etcd-io + repo: etcd + base_ref: main + annotations: + testgrid-dashboards: sig-etcd-periodics + testgrid-tab-name: ci-etcd-e2e-amd64 + spec: + containers: + - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20231103-fd8df63b1a-master + command: + - runner.sh + args: + - bash + - -c + - | + set -euo pipefail + VERBOSE=1 GOOS=linux GOARCH=amd64 CPU=4 EXPECT_DEBUG=true make test-e2e-release + resources: + requests: + cpu: "4" + memory: "8Gi" + limits: + cpu: "4" + memory: "8Gi" diff --git a/config/jobs/etcd/etcd-postsubmits.yaml b/config/jobs/etcd/etcd-postsubmits.yaml new file mode 100644 index 000000000000..fdf955fb0596 --- /dev/null +++ b/config/jobs/etcd/etcd-postsubmits.yaml @@ -0,0 +1,25 @@ +postsubmits: + etcd-io/etcd: + - name: post-etcd-build + cluster: eks-prow-build-cluster + branches: + - main + decorate: true + annotations: + testgrid-dashboards: sig-etcd-postsubmits + testgrid-tab-name: post-etcd-build + spec: + containers: + - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20231103-fd8df63b1a-master + command: + - runner.sh + args: + - make + - build + resources: + requests: + cpu: "4" + memory: "4Gi" + limits: + cpu: "4" + memory: "4Gi" diff --git a/config/jobs/etcd/etcd-presubmits.yaml b/config/jobs/etcd/etcd-presubmits.yaml new file mode 100644 index 000000000000..cf992d98ba58 --- /dev/null +++ b/config/jobs/etcd/etcd-presubmits.yaml @@ -0,0 +1,79 @@ +presubmits: + etcd-io/etcd: + - name: pull-etcd-build + cluster: eks-prow-build-cluster + optional: true # remove this once the job is green + always_run: true + branches: + - main + decorate: true + annotations: + testgrid-dashboards: sig-etcd-presubmits + testgrid-tab-name: pull-etcd-build + spec: + containers: + - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20231103-fd8df63b1a-master + command: + - runner.sh + args: + - make + - build + resources: + requests: + cpu: "4" + memory: "4Gi" + limits: + cpu: "4" + memory: "4Gi" + + - name: pull-etcd-unit-test + cluster: eks-prow-build-cluster + optional: true # remove this once the job is green + always_run: true + branches: + - main + decorate: true + annotations: + testgrid-dashboards: sig-etcd-presubmits + testgrid-tab-name: pull-etcd-unit-test + spec: + containers: + - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20231103-fd8df63b1a-master + command: + - runner.sh + args: + - make + - test-unit + resources: + requests: + cpu: "4" + memory: "4Gi" + limits: + cpu: "4" + memory: "4Gi" + + - name: pull-etcd-verify-lint + cluster: eks-prow-build-cluster + optional: true # remove this once the job is green + always_run: true + branches: + - main + decorate: true + annotations: + testgrid-dashboards: sig-etcd-presubmits + testgrid-tab-name: pull-etcd-verify-lint + spec: + containers: + - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20231103-fd8df63b1a-master + command: + - runner.sh + args: + - make + - verify-lint + resources: + requests: + cpu: "4" + memory: "4Gi" + limits: + cpu: "4" + memory: "4Gi" diff --git a/config/prow/config.yaml b/config/prow/config.yaml index 05007ee938b5..8312846ece75 100644 --- a/config/prow/config.yaml +++ b/config/prow/config.yaml @@ -208,6 +208,8 @@ managed_webhooks: token_created_after: 2020-09-17T00:00:00Z cncf/apisnoop: token_created_after: 2020-09-22T00:00:00Z + etcd-io: + token_created_after: 2023-11-13T00:00:00Z slack_reporter_configs: '*': diff --git a/config/prow/plugins.yaml b/config/prow/plugins.yaml index 922dcab9eed9..270e11fff656 100644 --- a/config/prow/plugins.yaml +++ b/config/prow/plugins.yaml @@ -27,6 +27,10 @@ triggers: - containerd/containerd join_org_url: "https://github.com/containerd/project/blob/main/MAINTAINERS" trigger_github_workflows: true +- repos: + - etcd-io + join_org_url: "https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md" + trigger_github_workflows: true - repos: - bazelbuild - repos: @@ -1560,6 +1564,17 @@ plugins: - size - trigger + etcd-io: + plugins: + - assign + - trigger + - label + - pony + - retitle + - skip + - wip + - yuks + containerd/containerd: plugins: - assign # Allow /assign and /cc diff --git a/config/testgrids/kubernetes/sig-etcd/OWNERS b/config/testgrids/kubernetes/sig-etcd/OWNERS new file mode 100644 index 000000000000..7281be8b22bd --- /dev/null +++ b/config/testgrids/kubernetes/sig-etcd/OWNERS @@ -0,0 +1,16 @@ +# See the OWNERS docs at https://go.k8s.io/owners + +reviewers: + - ahrtr + - jmhbnz + - serathius + - wenjiaswe + +approvers: + - ahrtr + - jmhbnz + - serathius + - wenjiaswe + +labels: + - sig/etcd diff --git a/config/testgrids/kubernetes/sig-etcd/config.yaml b/config/testgrids/kubernetes/sig-etcd/config.yaml new file mode 100644 index 000000000000..7cd5c9385158 --- /dev/null +++ b/config/testgrids/kubernetes/sig-etcd/config.yaml @@ -0,0 +1,11 @@ +dashboard_groups: +- name: sig-etcd + dashboard_names: + - sig-etcd-presubmits + - sig-etcd-periodics + - sig-etcd-postsubmits + +dashboards: + - name: sig-etcd-presubmits + - name: sig-etcd-periodics + - name: sig-etcd-postsubmits