(spark) branch master updated: [SPARK-46377][INFRA] Upgrade labeler action to v5

2023-12-18 Thread dongjoon
This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
 new eb17ddff1d77 [SPARK-46377][INFRA] Upgrade labeler action to v5
eb17ddff1d77 is described below

commit eb17ddff1d771ffbdeafe60c40eaccbc7e98583e
Author: panbingkun 
AuthorDate: Mon Dec 18 12:29:25 2023 -0800

[SPARK-46377][INFRA] Upgrade labeler action to v5

### What changes were proposed in this pull request?
The pr aims to upgrade `labeler action` from v4 to v5.

### Why are the changes needed?
The full release notes: 
https://github.com/actions/labeler/releases/tag/v5.0.0
Version 5 of this action updated the [runtime to Node.js 
20](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions).
 All scripts are now run with Node.js 20 instead of Node.js 16 and are affected 
by any breaking changes between Node.js 16 and 20.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
- Pass GA.
- Manually check:
   1.Considering that the testing of the `github labeler action` is 
relatively special: When I submitted changes to this repo, the GA still 
executed the v4 version logic before merging the PR into it
   ref: 
https://github.com/actions/labeler?tab=readme-ov-file#notes-regarding-pull_request_target,
   https://github.com/apache/spark/assets/15246973/529a7d4c-6260-4048-8730-54692c35d333;>

  2.I created a similar `private repo` to verify it
  The file (`.github/labeler.yml`) of this private repo is exactly the same 
as the file I am submitting to Spark repo
  https://github.com/apache/spark/assets/15246973/89135af6-a88c-45c9-9746-7a844674d6e7;>
  
https://github.com/panbingkun/github-action-test/blob/main/.github/labeler.yml

  3.The verification process is as follows:
  A.When I submitted `core/x.scala` to this repo, it automatically labeled 
`CORE`
   https://github.com/panbingkun/github-action-test/pull/2
   https://github.com/apache/spark/assets/15246973/92a9c6d3-b842-4b6d-b568-8aa8f48eab4f;>

   B.When I submitted `core/xxUI. scala` in this library, it automatically 
labeled `WEBUI`
   https://github.com/panbingkun/github-action-test/pull/3
   https://github.com/apache/spark/assets/15246973/c2b24fa5-e2b3-46ab-867e-7080544547d2;>

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #44350 from panbingkun/SPARK-46377_FOLLOWUP.

Authored-by: panbingkun 
Signed-off-by: Dongjoon Hyun 
---
 .github/labeler.yml   | 274 +-
 .github/workflows/labeler.yml |   2 +-
 2 files changed, 192 insertions(+), 84 deletions(-)

diff --git a/.github/labeler.yml b/.github/labeler.yml
index fc69733f4b66..20b5c936941c 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -18,109 +18,217 @@
 #
 
 INFRA:
-  - ".github/**/*"
-  - "appveyor.yml"
-  - "tools/**/*"
-  - "dev/create-release/**/*"
-  - ".asf.yaml"
-  - ".gitattributes"
-  - ".gitignore"
-  - "dev/merge_spark_pr.py"
-  - "dev/run-tests-jenkins*"
+  - changed-files:
+- any-glob-to-any-file: [
+ '.github/**/*',
+ 'appveyor.yml',
+ 'tools/**/*',
+ 'dev/create-release/**/*',
+ '.asf.yaml',
+ '.gitattributes',
+ '.gitignore',
+ 'dev/merge_spark_pr.py',
+ 'dev/run-tests-jenkins*'
+]
+
 BUILD:
- - any: ['dev/**/*', '!dev/merge_spark_pr.py', '!dev/run-tests-jenkins*']
- - "build/**/*"
- - "project/**/*"
- - "assembly/**/*"
- - "**/*pom.xml"
- - "bin/docker-image-tool.sh"
- - "bin/find-spark-home*"
- - "scalastyle-config.xml"
+  - changed-files:
+- all-globs-to-any-file: [
+ 'dev/**/*',
+ '!dev/merge_spark_pr.py',
+ '!dev/run-tests-jenkins*'
+]
+- any-glob-to-any-file: [
+ 'build/**/*',
+ 'project/**/*',
+ 'assembly/**/*',
+ '**/*pom.xml',
+ 'bin/docker-image-tool.sh',
+ 'bin/find-spark-home*',
+ 'scalastyle-config.xml'
+]
+
 DOCS:
-  - "docs/**/*"
-  - "**/README.md"
-  - "**/CONTRIBUTING.md"
-  - "python/docs/**/*"
+  - changed-files:
+- any-glob-to-any-file: [
+ 'docs/**/*',
+ '**/README.md',
+ '**/CONTRIBUTING.md',
+ 'python/docs/**/*'
+]
+
 EXAMPLES:
-  - "examples/**/*"
-  - "bin/run-example*"
+  - changed-files:
+- any-glob-to-any-file: [
+ 'examples/**/*',
+ 'bin/run-example*'
+]
+
 CORE:
-  - any: ["core/**/*", "!**/*UI.scala", "!**/ui/**/*"]
-  - "common/kvstore/**/*"
-  - "common/network-common/**/*"
-  - "common/network-shuffle/**/*"
-  - "python/pyspark/*.py"
-  - "python/pyspark/tests/**/*.py"
+  - changed-files:
+- all-globs-to-any-file: [
+ 'core/**/*',
+ '!**/*UI.scala',
+ '!**/ui/**/*'
+]
+- any-glob-to-any-file: [

(spark) branch master updated: [SPARK-46377][INFRA] Upgrade labeler action to v5

2023-12-13 Thread yao
This is an automated email from the ASF dual-hosted git repository.

yao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
 new 270da6f9b7b3 [SPARK-46377][INFRA] Upgrade labeler action to v5
270da6f9b7b3 is described below

commit 270da6f9b7b331e455d1f0bd1309fb87bc8740ab
Author: panbingkun 
AuthorDate: Thu Dec 14 11:09:14 2023 +0800

[SPARK-46377][INFRA] Upgrade labeler action to v5

### What changes were proposed in this pull request?
The pr aims to upgrade `labeler action` from v4 to v5.

### Why are the changes needed?
The full release notes: 
https://github.com/actions/labeler/releases/tag/v5.0.0
Version 5 of this action updated the [runtime to Node.js 
20](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions).
 All scripts are now run with Node.js 20 instead of Node.js 16 and are affected 
by any breaking changes between Node.js 16 and 20.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
- Pass GA.
- Manually continuous observation.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #44309 from panbingkun/SPARK-46377.

Authored-by: panbingkun 
Signed-off-by: Kent Yao 
---
 .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 b55d28e5a640..ccfdeb1653b9 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -34,7 +34,7 @@ jobs:
   contents: read
   pull-requests: write
 steps:
-- uses: actions/labeler@v4
+- uses: actions/labeler@v5
   with:
 repo-token: "${{ secrets.GITHUB_TOKEN }}"
 sync-labels: true


-
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org