Skip to content

Commit

Permalink
Move knativeteam-groups Prow jobs to a separate file and delete unuse…
Browse files Browse the repository at this point in the history
…d backup Prow job (knative#3174)
  • Loading branch information
chizhg authored Mar 21, 2022
1 parent b11bcbb commit a37fa48
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 115 deletions.
8 changes: 0 additions & 8 deletions config/prow/testgrid/testgrid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1330,11 +1330,6 @@ test_groups:
- name: ci-google-knative-gcp-test-coverage
gcs_prefix: knative-prow/logs/ci-google-knative-gcp-go-coverage
short_text_metric: "coverage"
- name: ci-knative-backup-artifacts
gcs_prefix: knative-prow/logs/ci-knative-backup-artifacts
alert_options:
alert_mail_to_addresses: "[email protected]"
num_failures_to_alert: 1
- name: ci-knative-cleanup
gcs_prefix: knative-prow/logs/ci-knative-cleanup
alert_options:
Expand Down Expand Up @@ -3055,9 +3050,6 @@ dashboards:
num_failures_to_alert: 3
- name: utilities
dashboard_tab:
- name: ci-knative-backup-artifacts
test_group_name: ci-knative-backup-artifacts
base_options: ""
- name: ci-knative-cleanup
test_group_name: ci-knative-cleanup
base_options: ""
Expand Down
84 changes: 84 additions & 0 deletions prow/jobs/custom/knativeteam-groups.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
presubmits:
knative/community:
- name: pull-knativeteam-groups-test
decorate: true
run_if_changed: "^groups/"
branches:
- ^main$
spec:
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests:stable
command:
- runner.sh
args:
- make
- -C
- ./groups
- test
env:
- name: GO111MODULE
value: "on"

periodics:
- cron: "0 */6 * * *" # Every 6 hours
name: ci-knativeteam-groups
cluster: prow-trusted
decorate: true
max_concurrency: 1
extra_refs:
- org: knative
repo: community
base_ref: main
annotations:
testgrid-dashboards: utilities
testgrid-tab-name: ci-knativeteam-groups-jobs
testgrid-alert-email: "[email protected]"
rerun_auth_config:
github_team_slugs:
- org: knative
slug: productivity-infra-admins
spec:
serviceAccountName: gsuite-groups-manager
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests:stable
command:
- runner.sh
args:
- make
- -C
- groups
- run
- --
- --confirm

postsubmits:
knative/community:
- name: post-knativeteam-groups
cluster: prow-trusted
decorate: true
max_concurrency: 1
run_if_changed: '^groups/'
branches:
- ^main$
annotations:
testgrid-dashboards: utilities
testgrid-tab-name: post-knativeteam-groups-jobs
testgrid-alert-email: "[email protected]"
testgrid-num-failures-to-alert: '1'
rerun_auth_config:
github_team_slugs:
- org: knative
slug: productivity-infra-admins
spec:
serviceAccountName: gsuite-groups-manager
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests:stable
command:
- runner.sh
args:
- make
- -C
- groups
- run
- --
- --confirm
106 changes: 0 additions & 106 deletions prow/jobs/custom/test-infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,25 +104,6 @@ presubmits:
- name: test-account
secret:
secretName: test-account
knative/community:
- name: pull-knativeteam-groups-test
decorate: true
run_if_changed: "^groups/"
branches:
- ^main$
spec:
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests:stable
command:
- runner.sh
args:
- make
- -C
- ./groups
- test
env:
- name: GO111MODULE
value: "on"
periodics:
# ci-knative-heartbeat is used for prometheus, alert(s) will be sent
# if this job hadn't been succeeded for some time
Expand Down Expand Up @@ -154,32 +135,6 @@ periodics:
requests:
cpu: 100m
memory: 1Gi
- cron: "15 9 * * *"
name: ci-knative-backup-artifacts
agent: kubernetes
decorate: true
cluster: "build-knative"
annotations:
testgrid-dashboards: utilities
testgrid-tab-name: ci-knative-backup-artifacts
testgrid-alert-email: "[email protected]"
testgrid-num-failures-to-alert: "1"
spec:
containers:
- image: gcr.io/knative-tests/test-infra/backups:latest
imagePullPolicy: Always
command:
- "/backup.sh"
args:
- "/etc/backup-account/service-account.json"
volumeMounts:
- name: backup-account
mountPath: /etc/backup-account
readOnly: true
volumes:
- name: backup-account
secret:
secretName: backup-account
- cron: "0 19 * * *"
name: ci-knative-cleanup
labels:
Expand Down Expand Up @@ -364,36 +319,6 @@ periodics:
secret:
secretName: prow-updater-robot-ssh-key
defaultMode: 0400
- cron: "0 */6 * * *" # Every 6 hours
name: ci-knativeteam-groups
cluster: prow-trusted
decorate: true
max_concurrency: 1
extra_refs:
- org: knative
repo: community
base_ref: main
annotations:
testgrid-dashboards: utilities
testgrid-tab-name: knativeteam-groups-jobs
testgrid-alert-email: "[email protected]"
rerun_auth_config:
github_team_slugs:
- org: knative
slug: productivity-infra-admins
spec:
serviceAccountName: gsuite-groups-manager
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests:stable
command:
- runner.sh
args:
- make
- -C
- groups
- run
- --
- --confirm
postsubmits:
knative/test-infra:
- name: post-knative-test-infra-image-push
Expand Down Expand Up @@ -551,34 +476,3 @@ postsubmits:
- name: test-account
secret:
secretName: test-account
knative/community:
- name: post-knativeteam-groups
cluster: prow-trusted
decorate: true
max_concurrency: 1
run_if_changed: '^groups/'
branches:
- ^main$
annotations:
testgrid-dashboards: utilities
testgrid-tab-name: knativeteam-groups-jobs
testgrid-alert-email: "[email protected]"
testgrid-num-failures-to-alert: '1'
rerun_auth_config:
github_team_slugs:
- org: knative
slug: productivity-infra-admins
spec:
serviceAccountName: gsuite-groups-manager
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests:stable
command:
- runner.sh
args:
- make
- -C
- groups
- run
- --
- --confirm

1 change: 0 additions & 1 deletion tools/config-generator/customjobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ package main

var (
customJobnames = []string{
"ci-knative-backup-artifacts",
"ci-knative-cleanup",
"ci-knative-flakes-reporter",
"ci-knative-flakes-resultsrecorder",
Expand Down

0 comments on commit a37fa48

Please sign in to comment.