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 7e4a63a0588f [SPARK-46316][CORE] Enable `buf-lint-action` on `core` module 7e4a63a0588f is described below commit 7e4a63a0588f1b4b16e76d4d7d1add19cb2f0a82 Author: Dongjoon Hyun <dh...@apple.com> AuthorDate: Thu Dec 7 19:57:08 2023 -0800 [SPARK-46316][CORE] Enable `buf-lint-action` on `core` module ### What changes were proposed in this pull request? This PR aims to enable `buf-lint-action` on `core` module. ### Why are the changes needed? To enforce the community guideline. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ![Screenshot 2023-12-07 at 7 40 54 PM](https://github.com/apache/spark/assets/9700541/7777b23f-d8be-410a-bc61-88f8b477a3b0) ### Was this patch authored or co-authored using generative AI tooling? No. Closes #44246 from dongjoon-hyun/SPARK-46316. Authored-by: Dongjoon Hyun <dh...@apple.com> Signed-off-by: Dongjoon Hyun <dh...@apple.com> --- .github/workflows/build_and_test.yml | 4 ++++ core/src/main/protobuf/buf.yaml | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 0e1a4a810f8a..e54883552920 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -583,6 +583,10 @@ jobs: uses: bufbuild/buf-setup-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Protocol Buffers Linter + uses: bufbuild/buf-lint-action@v1 + with: + input: core/src/main/protobuf # Change 'branch-3.5' to 'branch-4.0' in master branch after cutting branch-4.0 branch. - name: Breaking change detection against branch-3.5 uses: bufbuild/buf-breaking-action@v1 diff --git a/core/src/main/protobuf/buf.yaml b/core/src/main/protobuf/buf.yaml new file mode 100644 index 000000000000..47f69191a5c7 --- /dev/null +++ b/core/src/main/protobuf/buf.yaml @@ -0,0 +1,23 @@ +# +# 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. +# +version: v1 +breaking: + use: + - FILE +lint: + use: + - BASIC --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org