From d100818d8823a4acd2dc71874ece85b1b3c526e4 Mon Sep 17 00:00:00 2001 From: Chao Date: Wed, 3 Mar 2021 13:33:45 -0800 Subject: [PATCH] Split prow bump --- .../test-infra/test-infra-trusted.yaml | 37 ++++++++++++++++++- .../prow-component-autobump-config.yaml} | 13 +------ .../prow-job-autobump-config.yaml | 28 ++++++++++++++ 3 files changed, 64 insertions(+), 14 deletions(-) rename config/prow/{autobump-config.yaml => autobump-config/prow-component-autobump-config.yaml} (69%) create mode 100644 config/prow/autobump-config/prow-job-autobump-config.yaml diff --git a/config/jobs/kubernetes/test-infra/test-infra-trusted.yaml b/config/jobs/kubernetes/test-infra/test-infra-trusted.yaml index 53e2eb1f921c..21429e5bf4a1 100644 --- a/config/jobs/kubernetes/test-infra/test-infra-trusted.yaml +++ b/config/jobs/kubernetes/test-infra/test-infra-trusted.yaml @@ -906,7 +906,7 @@ periodics: command: - /generic_autobump args: - - --config=config/prow/autobump-config.yaml + - --config=config/prow/autobump-config/prow-component-autobump-config.yaml volumeMounts: - name: github mountPath: /etc/github-token @@ -924,7 +924,40 @@ periodics: annotations: testgrid-dashboards: sig-testing-prow testgrid-tab-name: autobump-prow - description: runs prow/autobump.sh to create/update a PR that bumps prow to the latest RC + description: runs experiment/autobumper to create/update a PR that bumps prow to the latest RC +- cron: "06 15-23 * * 1-5" # Run at 7:06-15:06 PST (15:05 UTC) Mon-Fri + name: ci-test-infra-autobump-prowjobs + cluster: test-infra-trusted + decorate: true + extra_refs: + - org: kubernetes + repo: test-infra + base_ref: master + spec: + containers: + - image: gcr.io/k8s-testimages/generic_autobump:v20210303-204466f + command: + - /generic_autobump + args: + - --config=config/prow/autobump-config/prow-job-autobump-config.yaml + volumeMounts: + - name: github + mountPath: /etc/github-token + readOnly: true + - name: ssh + mountPath: /root/.ssh + volumes: + - name: github + secret: + secretName: oauth-token + - name: ssh + secret: + secretName: k8s-ci-robot-ssh-keys + defaultMode: 0400 + annotations: + testgrid-dashboards: sig-testing-prow + testgrid-tab-name: autobump-prowjobs + description: runs experiment/autobumper to create/update a PR that bumps prowjobs to the latest RC - cron: "30 * * * *" # Run at half past the hour, every hour, every day name: ci-test-infra-update-slack-oncall cluster: test-infra-trusted diff --git a/config/prow/autobump-config.yaml b/config/prow/autobump-config/prow-component-autobump-config.yaml similarity index 69% rename from config/prow/autobump-config.yaml rename to config/prow/autobump-config/prow-component-autobump-config.yaml index 036ba627662e..b3e7752bb412 100644 --- a/config/prow/autobump-config.yaml +++ b/config/prow/autobump-config/prow-component-autobump-config.yaml @@ -13,13 +13,7 @@ includedConfigPaths: - "." excludedConfigPaths: - "config/prow-staging" -extraFiles: - - "config/jobs/image-pushing/k8s-staging-e2e-test-images.sh" - - "config/jobs/image-pushing/k8s-staging-sig-storage.sh" - - "config/jobs/kubernetes/kops/build_grid.py" - - "config/jobs/kubernetes/kops/build_pipeline.py" - - "releng/generate_tests.py" - - "images/kubekins-e2e/Dockerfile" + - "config/jobs" targetVersion: "latest" prefixes: - name: "Prow" @@ -36,8 +30,3 @@ prefixes: repo: "https://github.com/kubernetes-sigs/boskos" summarise: false consistentImages: true - - name: "K8s-Test-Images" - prefix: "gcr.io/k8s-testimages/" - repo: "https://github.com/kubernetes/test-infra" - summarise: false - consistentImages: false diff --git a/config/prow/autobump-config/prow-job-autobump-config.yaml b/config/prow/autobump-config/prow-job-autobump-config.yaml new file mode 100644 index 000000000000..ba703996c3d6 --- /dev/null +++ b/config/prow/autobump-config/prow-job-autobump-config.yaml @@ -0,0 +1,28 @@ +--- +gitHubLogin: "k8s-ci-robot" +gitHubToken: "/etc/github-token/oauth" +gitName: "Kubernetes Prow Robot" +gitEmail: "k8s.ci.robot@gmail.com" +onCallAddress: "https://storage.googleapis.com/kubernetes-jenkins/oncall.json" +skipPullRequest: false +gitHubOrg: "kubernetes" +gitHubRepo: "test-infra" +remoteName: "test-infra" +headBranchName: "prowjobs-autobump" +upstreamURLBase: "https://raw.githubusercontent.com/kubernetes/test-infra/master" +includedConfigPaths: + - "config/jobs" +extraFiles: + - "config/jobs/image-pushing/k8s-staging-e2e-test-images.sh" + - "config/jobs/image-pushing/k8s-staging-sig-storage.sh" + - "config/jobs/kubernetes/kops/build_grid.py" + - "config/jobs/kubernetes/kops/build_pipeline.py" + - "releng/generate_tests.py" + - "images/kubekins-e2e/Dockerfile" +targetVersion: "latest" +prefixes: + - name: "K8s-Test-Images" + prefix: "gcr.io/k8s-testimages/" + repo: "https://github.com/kubernetes/test-infra" + summarise: false + consistentImages: false