From dd08a69a2b40cf905720531a54884abcdb1f1316 Mon Sep 17 00:00:00 2001 From: Aaron Crickenberger Date: Tue, 3 Aug 2021 10:17:24 -0700 Subject: [PATCH] config/jobs: promote metrics-bigquery-canary remove the old job which runs on google.com prow and runs using bootstrap rename the canary job to become the original job the new job differs from the old job in that: - it runs on k8s-infra prow - it runs every 6h starting at 00:03 UTC instead of 24h interval - it also shows up on wg-k8s-infra-prow testgrid --- .../test-infra/test-infra-periodics.yaml | 28 ------------------- .../trusted/wg-k8s-infra-test-infra.yaml | 10 +++---- 2 files changed, 5 insertions(+), 33 deletions(-) diff --git a/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml b/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml index 617d6071d5c4..83564ba6d562 100644 --- a/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml +++ b/config/jobs/kubernetes/test-infra/test-infra-periodics.yaml @@ -72,34 +72,6 @@ periodics: testgrid-alert-email: kubernetes-sig-testing-alerts@googlegroups.com, k8s-infra-oncall@google.com description: Runs BigQuery queries, summarizes results into clusters, and uploads to GCS for go.k8s.io/triage -- name: metrics-bigquery - interval: 24h - spec: - containers: - - image: gcr.io/k8s-testimages/bigquery:v20210707-0f9c540 - args: - - --scenario=execute - - -- - - test-infra/metrics/bigquery.py - - -- - - --bucket=gs://k8s-metrics - env: - - name: GOOGLE_APPLICATION_CREDENTIALS - value: /etc/service-account/service-account.json - volumeMounts: - - name: service - mountPath: /etc/service-account - readOnly: true - volumes: - - name: service - secret: - secretName: triage-service-account - annotations: - testgrid-dashboards: sig-testing-misc - testgrid-alert-email: kubernetes-sig-testing-alerts@googlegroups.com, k8s-infra-oncall@google.com - testgrid-num-failures-to-alert: '2' - description: Runs BigQuery queries to generate data for metrics. - - name: metrics-kettle interval: 1h spec: diff --git a/config/jobs/kubernetes/wg-k8s-infra/trusted/wg-k8s-infra-test-infra.yaml b/config/jobs/kubernetes/wg-k8s-infra/trusted/wg-k8s-infra-test-infra.yaml index 9923ebce4a37..2499385a5802 100644 --- a/config/jobs/kubernetes/wg-k8s-infra/trusted/wg-k8s-infra-test-infra.yaml +++ b/config/jobs/kubernetes/wg-k8s-infra/trusted/wg-k8s-infra-test-infra.yaml @@ -1,6 +1,6 @@ periodics: -- name: metrics-bigquery-canary - interval: 10m # TODO(spiffxp): change to cron when non-canary +- name: metrics-bigquery + cron: "03 0-23/6 * * *" # like interval: 6h, but explicitly starting at 00:03 UTC cluster: k8s-infra-prow-build-trusted decorate: true max_concurrency: 1 @@ -9,9 +9,9 @@ periodics: repo: test-infra base_ref: master annotations: - testgrid-dashboards: wg-k8s-infra-canaries, sig-testing-canaries + testgrid-dashboards: sig-testing-misc, wg-k8s-infra-prow testgrid-alert-email: kubernetes-sig-testing-alerts@googlegroups.com, k8s-infra-alerts@kubernetes.io - testgrid-num-failures-to-alert: '99' # TODO(spiffxp): back down to 2 when non-canary + testgrid-num-failures-to-alert: '2' description: Runs BigQuery queries to generate data for metrics. rerun_auth_config: github_team_slugs: @@ -27,5 +27,5 @@ periodics: - image: gcr.io/k8s-testimages/bigquery:v20210707-0f9c540 args: - ./metrics/bigquery.py - - --bucket=gs://k8s-project-metrics + - --bucket=gs://k8s-metrics - --project=k8s-infra-prow-build-trusted