From 8a8052d17b57d92fe41149a7ef886f3c9a89d252 Mon Sep 17 00:00:00 2001 From: TaiJuWu Date: Mon, 16 Sep 2024 03:21:49 +0000 Subject: [PATCH 01/13] init labeler --- .github/labeler.yml | 86 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 14 ++++++ 2 files changed, 100 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..205301981b392 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,86 @@ +build: + - changed-files: + - any-glob-to-any-file: + - '.github/**' + - 'gradle/**' + - '*gradlew*' + +clients: +- changed-files: + - any-glob-to-any-file: + - 'clients/**' + +connect: +- changed-files: + - any-glob-to-any-file: + - 'connect/**' + +core: +- changed-files: + - any-glob-to-any-file: + - 'core/**' + - '*server*/**' + +storage: +- changed-files: + - any-glob-to-any-file: + - 'storage/**' + +streams: +- changed-files: + - any-glob-to-any-file: + - 'streams/**' + +tests: +- changed-files: + - any-glob-to-all-files: + - 'tests/**' + - '**/test/**' + +tools: +- changed-files: + - any-glob-to-any-file: + - 'tools/**' + - 'trogdor/**' + - 'vagrant/**' + - 'committer-tools/**' + +docs: +- changed-files: + - any-glob-to-any-file: + - 'docs/**' + - '**/*.md' + - 'examples/**' + +docker: +- changed-files: + - any-glob-to-any-file: + - 'docker/**' + + +coordinator: +- changed-files: + - any-glob-to-any-file: + - 'group-coordinator/**' + - 'coordinator-common/**' + +performance: +- changed-files: + - any-glob-to-any-file: + - 'jmh-benchmarks/**' + +consumer: + - changed-files: + - any-glob-to-any-file: + - 'clients/src/main/java/org/apache/kafka/clients/consumer/**' + +producer: + - changed-files: + - any-glob-to-any-file: + - 'clients/src/main/java/org/apache/kafka/clients/producer/**' + +kraft: + - changed-files: + - any-glob-to-any-file: + - 'metadata/**' + - 'raft/**' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000000..1fd783cb934b7 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" +on: + pull_request_target: + types: [opened, reopened, synchronize] + + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 From 9a866dac325047c8e353e38321ce8a6f25d98b1e Mon Sep 17 00:00:00 2001 From: TaiJuWu Date: Wed, 18 Sep 2024 01:16:57 +0000 Subject: [PATCH 02/13] address comments --- .github/workflows/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 1fd783cb934b7..554d5742aad66 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -5,7 +5,7 @@ on: jobs: - labeler: + label PRs: permissions: contents: read pull-requests: write From f259074a336233c82e5c8812041a38611b1376ee Mon Sep 17 00:00:00 2001 From: TaiJuWu Date: Wed, 18 Sep 2024 01:19:20 +0000 Subject: [PATCH 03/13] address comments --- .github/labeler.yml | 6 ------ .github/workflows/labeler.yml | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 205301981b392..192920240eaa4 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -31,12 +31,6 @@ streams: - any-glob-to-any-file: - 'streams/**' -tests: -- changed-files: - - any-glob-to-all-files: - - 'tests/**' - - '**/test/**' - tools: - changed-files: - any-glob-to-any-file: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 554d5742aad66..cfe99636e6831 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -5,7 +5,7 @@ on: jobs: - label PRs: + label_PRs: permissions: contents: read pull-requests: write From 5211f2ef04ba70a3fe545827d95d2168ef81c83b Mon Sep 17 00:00:00 2001 From: TaiJuWu Date: Wed, 18 Sep 2024 01:58:34 +0000 Subject: [PATCH 04/13] add licience --- .github/labeler.yml | 15 +++++++++++++++ .github/workflows/labeler.yml | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 192920240eaa4..d5d017c59f25a 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + build: - changed-files: - any-glob-to-any-file: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index cfe99636e6831..aef1b675cfbc2 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: "Pull Request Labeler" on: pull_request_target: From ac283f0296d1240e0c261769f06429427d82e62b Mon Sep 17 00:00:00 2001 From: TaiJuWu Date: Thu, 19 Sep 2024 00:25:16 +0000 Subject: [PATCH 05/13] fix docs setting --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index d5d017c59f25a..89130d035fa96 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -56,7 +56,7 @@ tools: docs: - changed-files: - - any-glob-to-any-file: + - any-glob-to-all-files: - 'docs/**' - '**/*.md' - 'examples/**' From 17bb7f740fe5dc3b9c5ec978f15e300cf350a626 Mon Sep 17 00:00:00 2001 From: TaiJuWu Date: Thu, 19 Sep 2024 00:39:31 +0000 Subject: [PATCH 06/13] add mirror label --- .github/labeler.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 89130d035fa96..3ca3cece3b531 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -30,6 +30,11 @@ connect: - any-glob-to-any-file: - 'connect/**' +mirror-maker-2: +- changed-files: + - any-glob-to-any-file: + - 'connect/mirror/**' + core: - changed-files: - any-glob-to-any-file: From 3391bc514757a78bf6cbe8e87747d7a0716fb434 Mon Sep 17 00:00:00 2001 From: TaiJuWu Date: Thu, 19 Sep 2024 01:53:43 +0000 Subject: [PATCH 07/13] exclude mirror from connect module --- .github/labeler.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 3ca3cece3b531..56b3a09baa6ce 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -26,9 +26,12 @@ clients: - 'clients/**' connect: -- changed-files: - - any-glob-to-any-file: - - 'connect/**' +- all: + - changed-files: + - any-glob-to-any-file: + - 'connect/**/*' + - all-globs-to-all-files: + - '!connect/mirror/*' mirror-maker-2: - changed-files: From 91bafe1d6015c058056978d4d5ff4acd264e04f9 Mon Sep 17 00:00:00 2001 From: TaiJuWu Date: Thu, 19 Sep 2024 02:26:21 +0000 Subject: [PATCH 08/13] add test label --- .github/labeler.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 56b3a09baa6ce..df189cb87ff04 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -25,6 +25,16 @@ clients: - any-glob-to-any-file: - 'clients/**' + +tests: +- all: + - changed-files: + - any-glob-to-all-files: + - 'tests/**' + - '**/test/**' + - all-globs-to-all-files: + - '!**/test/*' + connect: - all: - changed-files: From 4ae10233e460f03e2f172e02980ecdbb0924f857 Mon Sep 17 00:00:00 2001 From: TaiJuWu Date: Thu, 19 Sep 2024 04:41:12 +0000 Subject: [PATCH 09/13] remove redundant --- .github/labeler.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index df189cb87ff04..cc8b18ecb4425 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -32,8 +32,7 @@ tests: - any-glob-to-all-files: - 'tests/**' - '**/test/**' - - all-globs-to-all-files: - - '!**/test/*' + connect: - all: From f4f708ad4224ca4f5d0e7252e4ae87f5420a0264 Mon Sep 17 00:00:00 2001 From: TaiJu Wu Date: Fri, 20 Sep 2024 03:02:48 +0800 Subject: [PATCH 10/13] move config to .github/config --- .github/{ => configs}/labeler.yml | 0 .github/workflows/labeler.yml | 2 ++ 2 files changed, 2 insertions(+) rename .github/{ => configs}/labeler.yml (100%) diff --git a/.github/labeler.yml b/.github/configs/labeler.yml similarity index 100% rename from .github/labeler.yml rename to .github/configs/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index aef1b675cfbc2..2fee16426c04f 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -27,3 +27,5 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/labeler@v5 + with: + configuration-path: .github/configs/labeler.yml From 80bfa4a2f54923f0f07f8195040147e52a3db85a Mon Sep 17 00:00:00 2001 From: TaiJu Wu Date: Fri, 20 Sep 2024 03:11:32 +0800 Subject: [PATCH 11/13] address comments --- .github/configs/labeler.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/configs/labeler.yml b/.github/configs/labeler.yml index cc8b18ecb4425..3dd716906d3be 100644 --- a/.github/configs/labeler.yml +++ b/.github/configs/labeler.yml @@ -22,7 +22,7 @@ build: clients: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - 'clients/**' @@ -47,6 +47,7 @@ mirror-maker-2: - any-glob-to-any-file: - 'connect/mirror/**' + core: - changed-files: - any-glob-to-any-file: @@ -55,12 +56,12 @@ core: storage: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - 'storage/**' streams: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - 'streams/**' tools: @@ -70,6 +71,8 @@ tools: - 'trogdor/**' - 'vagrant/**' - 'committer-tools/**' + - 'log4j-appender/**' + - 'shell/**' docs: - changed-files: @@ -78,6 +81,21 @@ docs: - '**/*.md' - 'examples/**' +generator: + - changed-files: + - any-glob-to-any-file: + - 'generator/**' + +transaction: + - changed-files: + - any-glob-to-any-file: + - 'transaction*/**' + +share: + - changed-files: + - any-glob-to-any-file: + - '*share*/**' + docker: - changed-files: - any-glob-to-any-file: From 22c99fd010430471079cab0d04880b9678f45b04 Mon Sep 17 00:00:00 2001 From: TaiJu Wu Date: Fri, 20 Sep 2024 07:08:52 +0800 Subject: [PATCH 12/13] address comments --- .github/configs/labeler.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/configs/labeler.yml b/.github/configs/labeler.yml index 3dd716906d3be..32b5c41db7b0e 100644 --- a/.github/configs/labeler.yml +++ b/.github/configs/labeler.yml @@ -89,25 +89,19 @@ generator: transaction: - changed-files: - any-glob-to-any-file: - - 'transaction*/**' + - 'transaction-coordinator/**' -share: +KIP-932: - changed-files: - any-glob-to-any-file: - - '*share*/**' + - 'share/**' + - 'share-coordinator/**' docker: - changed-files: - any-glob-to-any-file: - 'docker/**' - -coordinator: -- changed-files: - - any-glob-to-any-file: - - 'group-coordinator/**' - - 'coordinator-common/**' - performance: - changed-files: - any-glob-to-any-file: From e39f883572faaaf6cdcb76d0fa1d00ebb3db1795 Mon Sep 17 00:00:00 2001 From: TaiJu Wu Date: Fri, 20 Sep 2024 07:36:15 +0800 Subject: [PATCH 13/13] address comments --- .github/configs/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/configs/labeler.yml b/.github/configs/labeler.yml index 32b5c41db7b0e..1181061c15144 100644 --- a/.github/configs/labeler.yml +++ b/.github/configs/labeler.yml @@ -86,7 +86,7 @@ generator: - any-glob-to-any-file: - 'generator/**' -transaction: +transactions: - changed-files: - any-glob-to-any-file: - 'transaction-coordinator/**'