|
17 | 17 | # under the License. |
18 | 18 | # |
19 | 19 |
|
20 | | -# |
21 | | -# Pull Request Labeler Github Action Configuration: https://github.com/marketplace/actions/labeler |
22 | | -# |
23 | | -# Note that we currently cannot use the negatioon operator (i.e. `!`) for miniglob matches as they |
24 | | -# would match any file that doesn't touch them. What's needed is the concept of `any `, which takes a |
25 | | -# list of constraints / globs and then matches all of the constraints for either `any` of the files or |
26 | | -# `all` of the files in the change set. |
27 | | -# |
28 | | -# However, `any`/`all` are not supported in a released version and testing off of the `main` branch |
29 | | -# resulted in some other errors when testing. |
30 | | -# |
31 | | -# An issue has been opened upstream requesting that a release be cut that has support for all/any: |
32 | | -# - https://github.com/actions/labeler/issues/111 |
33 | | -# |
34 | | -# While we wait for this issue to be handled upstream, we can remove |
35 | | -# the negated / `!` matches for now and at least have labels again. |
36 | | -# |
37 | 20 | INFRA: |
38 | | - - ".github/**/*" |
39 | | - - "appveyor.yml" |
40 | | - - "tools/**/*" |
41 | | - - "dev/create-release/**/*" |
42 | | - - ".asf.yaml" |
43 | | - - ".gitattributes" |
44 | | - - ".gitignore" |
45 | | - - "dev/merge_spark_pr.py" |
46 | | - - "dev/run-tests-jenkins*" |
| 21 | + - changed-files: |
| 22 | + - any-glob-to-any-file: [ |
| 23 | + '.github/**/*', |
| 24 | + 'tools/**/*', |
| 25 | + 'dev/create-release/**/*', |
| 26 | + '.asf.yaml', |
| 27 | + '.gitattributes', |
| 28 | + '.gitignore', |
| 29 | + 'dev/merge_spark_pr.py' |
| 30 | + ] |
| 31 | + |
47 | 32 | BUILD: |
48 | | - # Can be supported when a stable release with correct all/any is released |
49 | | - #- any: ['dev/**/*', '!dev/merge_spark_pr.py', '!dev/.rat-excludes'] |
50 | | - - "dev/**/*" |
51 | | - - "build/**/*" |
52 | | - - "project/**/*" |
53 | | - - "assembly/**/*" |
54 | | - - "**/*pom.xml" |
55 | | - - "bin/docker-image-tool.sh" |
56 | | - - "bin/find-spark-home*" |
57 | | - - "scalastyle-config.xml" |
58 | | - # These can be added in the above `any` clause (and the /dev/**/* glob removed) when |
59 | | - # `any`/`all` support is released |
60 | | - # - "!dev/merge_spark_pr.py" |
61 | | - # - "!dev/run-tests-jenkins*" |
62 | | - # - "!dev/.rat-excludes" |
| 33 | + - changed-files: |
| 34 | + - all-globs-to-any-file: [ |
| 35 | + 'dev/**/*', |
| 36 | + '!dev/merge_spark_pr.py' |
| 37 | + ] |
| 38 | + - any-glob-to-any-file: [ |
| 39 | + 'build/**/*', |
| 40 | + 'project/**/*', |
| 41 | + 'assembly/**/*', |
| 42 | + '**/*pom.xml', |
| 43 | + 'bin/docker-image-tool.sh', |
| 44 | + 'bin/find-spark-home*', |
| 45 | + 'scalastyle-config.xml' |
| 46 | + ] |
| 47 | + |
63 | 48 | DOCS: |
64 | | - - "docs/**/*" |
65 | | - - "**/README.md" |
66 | | - - "**/CONTRIBUTING.md" |
| 49 | + - changed-files: |
| 50 | + - any-glob-to-any-file: [ |
| 51 | + 'docs/**/*', |
| 52 | + '**/README.md', |
| 53 | + '**/CONTRIBUTING.md', |
| 54 | + 'python/docs/**/*' |
| 55 | + ] |
| 56 | + |
67 | 57 | EXAMPLES: |
68 | | - - "examples/**/*" |
69 | | - - "bin/run-example*" |
70 | | -# CORE needs to be updated when all/any are released upstream. |
| 58 | + - changed-files: |
| 59 | + - any-glob-to-any-file: [ |
| 60 | + 'examples/**/*', |
| 61 | + 'bin/run-example*' |
| 62 | + ] |
| 63 | + |
71 | 64 | CORE: |
72 | | - # - any: ["core/**/*", "!**/*UI.scala", "!**/ui/**/*"] # If any file matches all of the globs defined in the list started by `any`, label is applied. |
73 | | - - "core/**/*" |
74 | | - - "common/kvstore/**/*" |
75 | | - - "common/network-common/**/*" |
76 | | - - "common/network-shuffle/**/*" |
77 | | - - "python/pyspark/*.py" |
78 | | - - "python/pyspark/tests/**/*.py" |
| 65 | + - changed-files: |
| 66 | + - all-globs-to-any-file: [ |
| 67 | + 'core/**/*', |
| 68 | + '!**/*UI.scala', |
| 69 | + '!**/ui/**/*' |
| 70 | + ] |
| 71 | + - any-glob-to-any-file: [ |
| 72 | + 'common/kvstore/**/*', |
| 73 | + 'common/network-common/**/*', |
| 74 | + 'common/network-shuffle/**/*', |
| 75 | + 'python/pyspark/*.py', |
| 76 | + 'python/pyspark/tests/**/*.py' |
| 77 | + ] |
| 78 | + |
79 | 79 | SPARK SUBMIT: |
80 | | - - "bin/spark-submit*" |
| 80 | + - changed-files: |
| 81 | + - any-glob-to-any-file: [ |
| 82 | + 'bin/spark-submit*' |
| 83 | + ] |
| 84 | + |
81 | 85 | SPARK SHELL: |
82 | | - - "repl/**/*" |
83 | | - - "bin/spark-shell*" |
| 86 | + - changed-files: |
| 87 | + - any-glob-to-any-file: [ |
| 88 | + 'repl/**/*', |
| 89 | + 'bin/spark-shell*' |
| 90 | + ] |
| 91 | + |
84 | 92 | SQL: |
85 | | -#- any: ["**/sql/**/*", "!python/pyspark/sql/avro/**/*", "!python/pyspark/sql/streaming/**/*", "!python/pyspark/sql/tests/streaming/test_streaming.py"] |
86 | | - - "**/sql/**/*" |
87 | | - - "common/unsafe/**/*" |
88 | | - #- "!python/pyspark/sql/avro/**/*" |
89 | | - #- "!python/pyspark/sql/streaming/**/*" |
90 | | - #- "!python/pyspark/sql/tests/streaming/test_streaming.py" |
91 | | - - "bin/spark-sql*" |
92 | | - - "bin/beeline*" |
93 | | - - "sbin/*thriftserver*.sh" |
94 | | - - "**/*SQL*.R" |
95 | | - - "**/DataFrame.R" |
96 | | - - "**/*WindowSpec.R" |
97 | | - - "**/*catalog.R" |
98 | | - - "**/*column.R" |
99 | | - - "**/*functions.R" |
100 | | - - "**/*group.R" |
101 | | - - "**/*schema.R" |
102 | | - - "**/*types.R" |
| 93 | + - changed-files: |
| 94 | + - all-globs-to-any-file: [ |
| 95 | + '**/sql/**/*', |
| 96 | + '!python/**/avro/**/*', |
| 97 | + '!python/**/protobuf/**/*', |
| 98 | + '!python/**/streaming/**/*' |
| 99 | + ] |
| 100 | + - any-glob-to-any-file: [ |
| 101 | + 'common/unsafe/**/*', |
| 102 | + 'common/sketch/**/*', |
| 103 | + 'common/variant/**/*', |
| 104 | + 'bin/spark-sql*', |
| 105 | + 'bin/beeline*', |
| 106 | + 'sbin/*thriftserver*.sh', |
| 107 | + '**/*SQL*.R', |
| 108 | + '**/DataFrame.R', |
| 109 | + '**/*WindowSpec.R', |
| 110 | + '**/*catalog.R', |
| 111 | + '**/*column.R', |
| 112 | + '**/*functions.R', |
| 113 | + '**/*group.R', |
| 114 | + '**/*schema.R', |
| 115 | + '**/*types.R' |
| 116 | + ] |
| 117 | + |
103 | 118 | AVRO: |
104 | | - - "connector/avro/**/*" |
105 | | - - "python/pyspark/sql/avro/**/*" |
| 119 | + - changed-files: |
| 120 | + - any-glob-to-any-file: [ |
| 121 | + 'connector/avro/**/*', |
| 122 | + 'python/**/avro/**/*' |
| 123 | + ] |
| 124 | + |
106 | 125 | DSTREAM: |
107 | | - - "streaming/**/*" |
108 | | - - "data/streaming/**/*" |
109 | | - - "connector/kinesis*" |
110 | | - - "connector/kafka*" |
111 | | - - "python/pyspark/streaming/**/*" |
| 126 | + - changed-files: |
| 127 | + - any-glob-to-any-file: [ |
| 128 | + 'streaming/**/*', |
| 129 | + 'data/streaming/**/*', |
| 130 | + 'connector/kinesis-asl/**/*', |
| 131 | + 'connector/kinesis-asl-assembly/**/*', |
| 132 | + 'connector/kafka-0-10/**/*', |
| 133 | + 'connector/kafka-0-10-assembly/**/*', |
| 134 | + 'connector/kafka-0-10-token-provider/**/*', |
| 135 | + 'python/pyspark/streaming/**/*' |
| 136 | + ] |
| 137 | + |
112 | 138 | GRAPHX: |
113 | | - - "graphx/**/*" |
114 | | - - "data/graphx/**/*" |
| 139 | + - changed-files: |
| 140 | + - any-glob-to-any-file: [ |
| 141 | + 'graphx/**/*', |
| 142 | + 'data/graphx/**/*' |
| 143 | + ] |
| 144 | + |
115 | 145 | ML: |
116 | | - - "**/ml/**/*" |
117 | | - - "**/*mllib_*.R" |
| 146 | + - changed-files: |
| 147 | + - any-glob-to-any-file: [ |
| 148 | + '**/ml/**/*', |
| 149 | + '**/*mllib_*.R' |
| 150 | + ] |
| 151 | + |
118 | 152 | MLLIB: |
119 | | - - "**/spark/mllib/**/*" |
120 | | - - "mllib-local/**/*" |
121 | | - - "python/pyspark/mllib/**/*" |
| 153 | + - changed-files: |
| 154 | + - any-glob-to-any-file: [ |
| 155 | + '**/mllib/**/*', |
| 156 | + 'mllib-local/**/*' |
| 157 | + ] |
| 158 | + |
122 | 159 | STRUCTURED STREAMING: |
123 | | - - "**/sql/**/streaming/**/*" |
124 | | - - "connector/kafka-0-10-sql/**/*" |
125 | | - - "python/pyspark/sql/streaming/**/*" |
126 | | - - "python/pyspark/sql/tests/streaming/test_streaming.py" |
127 | | - - "**/*streaming.R" |
| 160 | + - changed-files: |
| 161 | + - any-glob-to-any-file: [ |
| 162 | + '**/sql/**/streaming/**/*', |
| 163 | + 'connector/kafka-0-10-sql/**/*', |
| 164 | + 'python/pyspark/sql/**/streaming/**/*', |
| 165 | + '**/*streaming.R' |
| 166 | + ] |
| 167 | + |
128 | 168 | PYTHON: |
129 | | - - "bin/pyspark*" |
130 | | - - "**/python/**/*" |
| 169 | + - changed-files: |
| 170 | + - any-glob-to-any-file: [ |
| 171 | + 'bin/pyspark*', |
| 172 | + '**/python/**/*' |
| 173 | + ] |
| 174 | + |
131 | 175 | PANDAS API ON SPARK: |
132 | | - - "python/pyspark/pandas/**/*" |
| 176 | + - changed-files: |
| 177 | + - any-glob-to-any-file: [ |
| 178 | + 'python/pyspark/pandas/**/*' |
| 179 | + ] |
| 180 | + |
133 | 181 | R: |
134 | | - - "**/r/**/*" |
135 | | - - "**/R/**/*" |
136 | | - - "bin/sparkR*" |
| 182 | + - changed-files: |
| 183 | + - any-glob-to-any-file: [ |
| 184 | + '**/r/**/*', |
| 185 | + '**/R/**/*', |
| 186 | + 'bin/sparkR*' |
| 187 | + ] |
| 188 | + |
137 | 189 | YARN: |
138 | | - - "resource-managers/yarn/**/*" |
| 190 | + - changed-files: |
| 191 | + - any-glob-to-any-file: [ |
| 192 | + 'resource-managers/yarn/**/*' |
| 193 | + ] |
| 194 | + |
139 | 195 | KUBERNETES: |
140 | | - - "resource-managers/kubernetes/**/*" |
| 196 | + - changed-files: |
| 197 | + - any-glob-to-any-file: [ |
| 198 | + 'bin/docker-image-tool.sh', |
| 199 | + 'resource-managers/kubernetes/**/*' |
| 200 | + ] |
| 201 | + |
141 | 202 | WINDOWS: |
142 | | - - "**/*.cmd" |
143 | | - - "R/pkg/tests/fulltests/test_Windows.R" |
| 203 | + - changed-files: |
| 204 | + - any-glob-to-any-file: [ |
| 205 | + '**/*.cmd', |
| 206 | + 'R/pkg/tests/fulltests/test_Windows.R' |
| 207 | + ] |
| 208 | + |
144 | 209 | WEB UI: |
145 | | - - "**/ui/**/*" |
146 | | - - "**/*UI.scala" |
| 210 | + - changed-files: |
| 211 | + - any-glob-to-any-file: [ |
| 212 | + '**/ui/**/*', |
| 213 | + '**/*UI.scala' |
| 214 | + ] |
| 215 | + |
147 | 216 | DEPLOY: |
148 | | - - "sbin/**/*" |
| 217 | + - changed-files: |
| 218 | + - any-glob-to-any-file: [ |
| 219 | + 'sbin/**/*' |
| 220 | + ] |
| 221 | + |
149 | 222 | CONNECT: |
150 | | - - "connector/connect/**/*" |
151 | | - - "**/sql/sparkconnect/**/*" |
152 | | - - "python/pyspark/sql/**/connect/**/*" |
153 | | - - "python/pyspark/ml/**/connect/**/*" |
| 223 | + - changed-files: |
| 224 | + - any-glob-to-any-file: [ |
| 225 | + 'sql/connect/**/*', |
| 226 | + 'python/**/connect/**/*' |
| 227 | + ] |
| 228 | + |
154 | 229 | PROTOBUF: |
155 | | - - "connector/protobuf/**/*" |
156 | | - - "python/pyspark/sql/protobuf/**/*" |
| 230 | + - changed-files: |
| 231 | + - any-glob-to-any-file: [ |
| 232 | + 'connector/protobuf/**/*', |
| 233 | + 'python/**/protobuf/**/*' |
| 234 | + ] |
0 commit comments