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 <pbk1...@gmail.com>
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,
       <img width="843" alt="image" 
src="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
      <img width="950" alt="image" 
src="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
       <img width="913" alt="image" 
src="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
       <img width="914" alt="image" 
src="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 <pbk1...@gmail.com>
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
---
 .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: [
+     'common/kvstore/**/*',
+     'common/network-common/**/*',
+     'common/network-shuffle/**/*',
+     'python/pyspark/*.py',
+     'python/pyspark/tests/**/*.py'
+    ]
+
 SPARK SUBMIT:
-  - "bin/spark-submit*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'bin/spark-submit*'
+    ]
+
 SPARK SHELL:
-  - "repl/**/*"
-  - "bin/spark-shell*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'repl/**/*',
+     'bin/spark-shell*'
+    ]
+
 SQL:
-  - any: ["**/sql/**/*", "!python/pyspark/sql/avro/**/*", 
"!python/pyspark/sql/streaming/**/*", 
"!python/pyspark/sql/tests/streaming/test_streaming*.py"]
-  - "common/unsafe/**/*"
-  - "bin/spark-sql*"
-  - "bin/beeline*"
-  - "sbin/*thriftserver*.sh"
-  - "**/*SQL*.R"
-  - "**/DataFrame.R"
-  - "**/*WindowSpec.R"
-  - "**/*catalog.R"
-  - "**/*column.R"
-  - "**/*functions.R"
-  - "**/*group.R"
-  - "**/*schema.R"
-  - "**/*types.R"
+  - changed-files:
+    - all-globs-to-any-file: [
+     '**/sql/**/*',
+     '!python/pyspark/sql/avro/**/*',
+     '!python/pyspark/sql/streaming/**/*',
+     '!python/pyspark/sql/tests/streaming/test_streaming*.py'
+    ]
+    - any-glob-to-any-file: [
+     'common/unsafe/**/*',
+     'bin/spark-sql*',
+     'bin/beeline*',
+     'sbin/*thriftserver*.sh',
+     '**/*SQL*.R',
+     '**/DataFrame.R',
+     '**/*WindowSpec.R',
+     '**/*catalog.R',
+     '**/*column.R',
+     '**/*functions.R',
+     '**/*group.R',
+     '**/*schema.R',
+     '**/*types.R'
+    ]
+
 AVRO:
-  - "connector/avro/**/*"
-  - "python/pyspark/sql/avro/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'connector/avro/**/*',
+     'python/pyspark/sql/avro/**/*'
+    ]
+
 DSTREAM:
-  - "streaming/**/*"
-  - "data/streaming/**/*"
-  - "connector/kinesis*"
-  - "connector/kafka*"
-  - "python/pyspark/streaming/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'streaming/**/*',
+     'data/streaming/**/*',
+     'connector/kinesis*',
+     'connector/kafka*',
+     'python/pyspark/streaming/**/*'
+    ]
+
 GRAPHX:
-  - "graphx/**/*"
-  - "data/graphx/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'graphx/**/*',
+     'data/graphx/**/*'
+    ]
+
 ML:
-  - "**/ml/**/*"
-  - "**/*mllib_*.R"
+  - changed-files:
+    - any-glob-to-any-file: [
+     '**/ml/**/*',
+     '**/*mllib_*.R'
+    ]
+
 MLLIB:
-  - "**/spark/mllib/**/*"
-  - "mllib-local/**/*"
-  - "python/pyspark/mllib/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     '**/spark/mllib/**/*',
+     'mllib-local/**/*',
+     'python/pyspark/mllib/**/*'
+    ]
+
 STRUCTURED STREAMING:
-  - "**/sql/**/streaming/**/*"
-  - "connector/kafka-0-10-sql/**/*"
-  - "python/pyspark/sql/streaming/**/*"
-  - "python/pyspark/sql/tests/streaming/test_streaming*.py"
-  - "**/*streaming.R"
+  - changed-files:
+    - any-glob-to-any-file: [
+     '**/sql/**/streaming/**/*',
+     'connector/kafka-0-10-sql/**/*',
+     'python/pyspark/sql/streaming/**/*',
+     'python/pyspark/sql/tests/streaming/test_streaming*.py',
+     '**/*streaming.R'
+    ]
+
 PYTHON:
-  - "bin/pyspark*"
-  - "**/python/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'bin/pyspark*',
+     '**/python/**/*'
+    ]
+
 PANDAS API ON SPARK:
-  - "python/pyspark/pandas/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'python/pyspark/pandas/**/*'
+    ]
+
 R:
-  - "**/r/**/*"
-  - "**/R/**/*"
-  - "bin/sparkR*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     '**/r/**/*',
+     '**/R/**/*',
+     'bin/sparkR*'
+    ]
+
 YARN:
-  - "resource-managers/yarn/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'resource-managers/yarn/**/*'
+    ]
+
 KUBERNETES:
-  - "resource-managers/kubernetes/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'resource-managers/kubernetes/**/*'
+    ]
+
 WINDOWS:
-  - "**/*.cmd"
-  - "R/pkg/tests/fulltests/test_Windows.R"
+  - changed-files:
+    - any-glob-to-any-file: [
+     '**/*.cmd',
+     'R/pkg/tests/fulltests/test_Windows.R'
+    ]
+
 WEB UI:
-  - "**/ui/**/*"
-  - "**/*UI.scala"
+  - changed-files:
+    - any-glob-to-any-file: [
+     '**/ui/**/*',
+     '**/*UI.scala'
+    ]
+
 DEPLOY:
-  - "sbin/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'sbin/**/*'
+    ]
+
 CONNECT:
-  - "connector/connect/**/*"
-  - "python/pyspark/sql/**/connect/**/*"
-  - "python/pyspark/ml/**/connect/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'connector/connect/**/*',
+     'python/pyspark/sql/**/connect/**/*',
+     'python/pyspark/ml/**/connect/**/*'
+    ]
+
 PROTOBUF:
-  - "connector/protobuf/**/*"
-  - "python/pyspark/sql/protobuf/**/*"
+  - changed-files:
+    - any-glob-to-any-file: [
+     'connector/protobuf/**/*',
+     'python/pyspark/sql/protobuf/**/*'
+    ]
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

Reply via email to