From 15940664bc386f257aea2458acd9b982a3204ddf Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sun, 30 Oct 2022 02:21:39 +0200 Subject: [PATCH 1/4] Add owners and prow config --- OWNERS | 4 +++ OWNERS_ALIASES | 5 ++++ config/BUILD.bazel | 0 config/jobs/BUILD.bazel | 0 config/jobs/presubmits.yaml | 26 +++++++++++++++++ config/prow/BUILD.bazel | 0 config/prow/config.yaml | 56 +++++++++++++++++++++++++++++++++++++ config/prow/plugins.yaml | 28 +++++++++++++++++++ 8 files changed, 119 insertions(+) create mode 100644 OWNERS create mode 100644 OWNERS_ALIASES create mode 100644 config/BUILD.bazel create mode 100644 config/jobs/BUILD.bazel create mode 100644 config/jobs/presubmits.yaml create mode 100644 config/prow/BUILD.bazel create mode 100644 config/prow/config.yaml create mode 100644 config/prow/plugins.yaml diff --git a/OWNERS b/OWNERS new file mode 100644 index 0000000..0a32842 --- /dev/null +++ b/OWNERS @@ -0,0 +1,4 @@ +approvers: + - alias-maintainers +reviewers: + - alias-maintainers diff --git a/OWNERS_ALIASES b/OWNERS_ALIASES new file mode 100644 index 0000000..c6537c4 --- /dev/null +++ b/OWNERS_ALIASES @@ -0,0 +1,5 @@ +aliases: + alias-maintainers: + - mstg + - nazunalika + - NeilHanlon diff --git a/config/BUILD.bazel b/config/BUILD.bazel new file mode 100644 index 0000000..e69de29 diff --git a/config/jobs/BUILD.bazel b/config/jobs/BUILD.bazel new file mode 100644 index 0000000..e69de29 diff --git a/config/jobs/presubmits.yaml b/config/jobs/presubmits.yaml new file mode 100644 index 0000000..3d182cb --- /dev/null +++ b/config/jobs/presubmits.yaml @@ -0,0 +1,26 @@ +presubmits: + rocky-linux/peridot: + - name: pull-peridot-validate-prow-yaml + run_if_changed: '^(config/prow/(config|plugins).yaml$|config/jobs/.*.yaml$)' + decorate: true + spec: + containers: + - image: gcr.io/k8s-prow/checkconfig:v20221028-a8625c1f93 + command: + - checkconfig + args: + - --config-path=config/prow/config.yaml + - --job-config-path=config/jobs + - --plugin-config=config/prow/plugins.yaml + - --strict + + - name: pull-peridot-unit-test + branches: + - main + always_run: true + decorate: true + spec: + containers: + - image: alpine + command: + - /bin/date diff --git a/config/prow/BUILD.bazel b/config/prow/BUILD.bazel new file mode 100644 index 0000000..e69de29 diff --git a/config/prow/config.yaml b/config/prow/config.yaml new file mode 100644 index 0000000..104b27d --- /dev/null +++ b/config/prow/config.yaml @@ -0,0 +1,56 @@ +prowjob_namespace: prow +pod_namespace: test-pods + +deck: + spyglass: + lenses: + - lens: + name: metadata + required_files: + - started.json|finished.json + - lens: + config: + name: buildlog + required_files: + - build-log.txt + - lens: + name: junit + required_files: + - bazel-testlogs/.*/test.xml + - lens: + name: podinfo + required_files: + - podinfo.json + +plank: + job_url_prefix_config: + "*": https://prow.build.resf.org/view/ + report_templates: + '*': >- + [Full PR test history](https://prow.build.resf.org/pr-history?org={{.Spec.Refs.Org}}&repo={{.Spec.Refs.Repo}}&pr={{with index .Spec.Refs.Pulls 0}}{{.Number}}{{end}}). + [Your PR dashboard](https://prow.build.resf.org/pr?query=is:pr+state:open+author:{{with + index .Spec.Refs.Pulls 0}}{{.Author}}{{end}}). + default_decoration_configs: + "*": + gcs_configuration: + bucket: s3://resf-prod-prow-logs + path_strategy: explicit + s3_credentials_secret: s3-credentials + utility_images: + clonerefs: gcr.io/k8s-prow/clonerefs:v20221028-a8625c1f93 + entrypoint: gcr.io/k8s-prow/entrypoint:v20221028-a8625c1f93 + initupload: gcr.io/k8s-prow/initupload:v20221028-a8625c1f93 + sidecar: gcr.io/k8s-prow/sidecar:v20221028-a8625c1f93 + +tide: + queries: + - labels: + - lgtm + - approved + missingLabels: + - needs-rebase + - do-not-merge/hold + - do-not-merge/work-in-progress + - do-not-merge/invalid-owners-file + repos: + - rocky-linux/peridot diff --git a/config/prow/plugins.yaml b/config/prow/plugins.yaml new file mode 100644 index 0000000..d1b2f11 --- /dev/null +++ b/config/prow/plugins.yaml @@ -0,0 +1,28 @@ +plugins: + rocky-linux/peridot: + plugins: + - approve + - assign + - blunderbuss + - cat + - config-updater + - dog + - help + - heart + - hold + - label + - lgtm + - trigger + - verify-owners + - wip + - yuks + +config_updater: + maps: + config/prow/config.yaml: + name: config + config/prow/plugins.yaml: + name: plugins + config/jobs/**/*.{yaml,yml}: + name: job-config + gzip: true From 054e1cb5b6d439d62d220115d181690d4076bac7 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sun, 30 Oct 2022 02:36:34 +0100 Subject: [PATCH 2/4] Fix warnings and add needs-rebase plugin --- config/prow/config.yaml | 20 ++++++++++++-------- config/prow/labels.yaml | 3 +++ config/prow/plugins.yaml | 1 + 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 config/prow/labels.yaml diff --git a/config/prow/config.yaml b/config/prow/config.yaml index 104b27d..148d9ad 100644 --- a/config/prow/config.yaml +++ b/config/prow/config.yaml @@ -1,26 +1,30 @@ prowjob_namespace: prow pod_namespace: test-pods +allowed_clusters: + rocky-linux/peridot: + - default + deck: spyglass: lenses: - lens: name: metadata - required_files: - - started.json|finished.json + required_files: + - started.json|finished.json - lens: config: name: buildlog - required_files: - - build-log.txt + required_files: + - build-log.txt - lens: name: junit - required_files: - - bazel-testlogs/.*/test.xml + required_files: + - bazel-testlogs/.*/test.xml - lens: name: podinfo - required_files: - - podinfo.json + required_files: + - podinfo.json plank: job_url_prefix_config: diff --git a/config/prow/labels.yaml b/config/prow/labels.yaml new file mode 100644 index 0000000..eb138bf --- /dev/null +++ b/config/prow/labels.yaml @@ -0,0 +1,3 @@ +labels: + - color: 00ff00 + name: lgtm diff --git a/config/prow/plugins.yaml b/config/prow/plugins.yaml index d1b2f11..f221511 100644 --- a/config/prow/plugins.yaml +++ b/config/prow/plugins.yaml @@ -10,6 +10,7 @@ plugins: - help - heart - hold + - needs-rebase - label - lgtm - trigger From c0845fe297ca9600561c4d69332fda19199ddfbb Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sun, 30 Oct 2022 02:38:53 +0100 Subject: [PATCH 3/4] needs-rebase should be an external-plugin --- config/prow/plugins.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/prow/plugins.yaml b/config/prow/plugins.yaml index f221511..ef15132 100644 --- a/config/prow/plugins.yaml +++ b/config/prow/plugins.yaml @@ -10,7 +10,6 @@ plugins: - help - heart - hold - - needs-rebase - label - lgtm - trigger @@ -18,6 +17,13 @@ plugins: - wip - yuks +external_plugins: + rocky-linux/peridot: + - name: needs-rebase + events: + - issue_comment + - pull_request + config_updater: maps: config/prow/config.yaml: From 75380ddb83896fa1cf5d9b134d257929c4e54d8b Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sun, 30 Oct 2022 02:40:05 +0100 Subject: [PATCH 4/4] Remove unnecessary allowed_clusters --- config/prow/config.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/prow/config.yaml b/config/prow/config.yaml index 148d9ad..383d42a 100644 --- a/config/prow/config.yaml +++ b/config/prow/config.yaml @@ -1,10 +1,6 @@ prowjob_namespace: prow pod_namespace: test-pods -allowed_clusters: - rocky-linux/peridot: - - default - deck: spyglass: lenses: