From 56a469da026cd020704194506d2f42ba65962625 Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Mon, 2 Sep 2024 08:58:35 +0800 Subject: [PATCH] feat(tikv/rocksdb,tikv/rust-rocksdb): enable bot to control the reviewing flow (#1103) ref ti-community-infra/configs#824 --- prow/config/config.yaml | 44 +++++++++++++++++++++--- prow/config/external_plugins_config.yaml | 8 +++-- prow/config/plugins.yaml | 43 +++++++++++++++++++++-- 3 files changed, 86 insertions(+), 9 deletions(-) diff --git a/prow/config/config.yaml b/prow/config/config.yaml index 17ad6899..bacf326e 100644 --- a/prow/config/config.yaml +++ b/prow/config/config.yaml @@ -124,6 +124,38 @@ branch-protection: release-8.3: *pd-release-branch-pt-with-tools-chunks # release-{{.ver}}: *pd-release-branch-pt-with-tools-chunks + rocksdb: + branches: + 6.29.tikv: &rocksdb-branch-pt + protect: true + required_status_checks: + contexts: + - "tide" + strict: true + 6.4.tikv: *rocksdb-branch-pt + 6.25.tikv: *rocksdb-branch-pt + tikv-6.5: *rocksdb-branch-pt + rust-rocksdb: + branches: + master: + protect: true + required_status_checks: + contexts: + - "tide" + - "DCO" + strict: true + tikv-5.4: &rust-rocksdb-branch-pt-release + protect: true + required_status_checks: + contexts: + - "tide" + - "DCO" + strict: false + tikv-6.1: *rust-rocksdb-branch-pt-release + tikv-6.5: *rust-rocksdb-branch-pt-release + tikv-7.1: *rust-rocksdb-branch-pt-release + # tikv-{{.lts-major.minor}}: *rust-rocksdb-branch-pt-release + raft-engine: branches: master: &raft-engine-branch-pt @@ -926,11 +958,13 @@ tide: ti-community-infra/rfcs: squash ti-community-infra/test-prod: squash ti-community-infra/tichi: squash + tikv/client-go: squash + tikv/client-rust: squash tikv/community: squash tikv/pd: squash tikv/raft-engine: squash - tikv/client-go: squash - tikv/client-rust: squash + tikv/rocksdb: squash + tikv/rust-rocksdb: squash tikv/tikv: squash # Please reference the document about custom commit message template: @@ -1291,11 +1325,13 @@ tide: - needs-rebase - repos: - - pingcap/tiproxy - pingcap/tidb-engine-ext - - tikv/raft-engine + - pingcap/tiproxy - tikv/client-go - tikv/client-rust + - tikv/raft-engine + - tikv/rocksdb + - tikv/rust-rocksdb labels: - lgtm - approved diff --git a/prow/config/external_plugins_config.yaml b/prow/config/external_plugins_config.yaml index 50df0a70..e3382796 100644 --- a/prow/config/external_plugins_config.yaml +++ b/prow/config/external_plugins_config.yaml @@ -743,11 +743,13 @@ ti-community-cherrypicker: - lgtm - approved - repos: - - tikv/tikv - - tikv/pd - - tikv/client-java - tikv/client-go + - tikv/client-java - tikv/client-rust + - tikv/pd + - tikv/rocksdb + - tikv/rust-rocksdb + - tikv/tikv label_prefix: needs-cherry-pick- picked_label_prefix: type/cherry-pick-for- allow_all: true diff --git a/prow/config/plugins.yaml b/prow/config/plugins.yaml index 68173394..42ab2c25 100644 --- a/prow/config/plugins.yaml +++ b/prow/config/plugins.yaml @@ -22,7 +22,7 @@ approve: commandHelpLink: "https://prow.tidb.net/command-help" pr_process_link: "https://book.prow.tidb.net/#/workflows/pr" lgtm: - - repos: [pingcap, ti-community-infra, PingCAP-QE, pingcap-inc] + - repos: [pingcap, tikv, ti-community-infra, PingCAP-QE, pingcap-inc] review_acts_as_lgtm: true reviewer_count: 1 - repos: @@ -40,6 +40,7 @@ lgtm: - tikv/pd - tikv/raft-engine - tikv/tikv + - tikv/rocksdb review_acts_as_lgtm: true reviewer_count: 2 owners: @@ -74,6 +75,8 @@ owners: - tikv/client-rust - tikv/pd - tikv/raft-engine + - tikv/rocksdb + - tikv/rust-rocksdb - tikv/tikv filenames: pingcap/tidb-engine-ext: @@ -96,9 +99,11 @@ welcome: - ti-community-infra - tikv/client-go - tikv/client-rust - - tikv/tikv - tikv/pd - tikv/raft-engine + - tikv/rocksdb + - tikv/rust-rocksdb + - tikv/tikv message_template: "Welcome @{{.AuthorLogin}}!

It looks like this is your first PR to {{.Org}}/{{.Repo}} 🎉. @@ -665,6 +670,28 @@ plugins: - trigger - verify-owners - wip + tikv/rocksdb: + plugins: + - approve + - hold + - label + - lgtm + - owners-label + - size + - trigger + - verify-owners + - wip + tikv/rust-rocksdb: + plugins: + - approve + - hold + - label + - lgtm + - owners-label + - size + - trigger + - verify-owners + - wip tikv/client-go: plugins: - approve @@ -1425,6 +1452,18 @@ external_plugins: events: - pull_request - issue_comment + tikv/rocksdb: + - name: ti-community-cherrypicker + endpoint: http://prow-ti-community-cherrypicker + events: + - pull_request + - issue_comment + tikv/rust-rocksdb: + - name: ti-community-cherrypicker + endpoint: http://prow-ti-community-cherrypicker + events: + - pull_request + - issue_comment PingCAP-QE/tidb-test: - name: needs-rebase