This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-1.1
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-1.1 by this push:
new 82c7a52cc2 [#9921] improvement(build): Add mcp-server changes handling
in build workflow. (cherry-pick) (#9951)
82c7a52cc2 is described below
commit 82c7a52cc2d792ae4bdb5039754a531b4e25df87
Author: Qi Yu <[email protected]>
AuthorDate: Wed Feb 11 14:01:27 2026 +0800
[#9921] improvement(build): Add mcp-server changes handling in build
workflow. (cherry-pick) (#9951)
### What changes were proposed in this pull request?
This pull request updates the CI workflow in
`.github/workflows/build.yml` to add support for detecting changes in
the `mcp-server` directory and conditionally running builds for it.
Additionally, there is a minor documentation improvement in a Java
utility file.
### Why are the changes needed?
To optimize CI pipeline to reduce resource consumption.
Fix: #9921
### Does this PR introduce _any_ user-facing change?
N/A.
### How was this patch tested?
CI
---
.github/workflows/build.yml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c3408c0824..c98415628e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -43,11 +43,15 @@ jobs:
- '!**/*.md'
- '!**/*.png'
- '!**/*.svg'
+ - 'mcp-server/**'
spark_connector_changes:
- spark-connector/**
+ mcp_server_changes:
+ - mcp-server/**
outputs:
source_changes: ${{ steps.filter.outputs.source_changes }}
spark_connector_changes: ${{
steps.filter.outputs.spark_connector_changes }}
+ mcp_server_changes: ${{ steps.filter.outputs.mcp_server_changes }}
compile-check:
runs-on: ubuntu-latest
@@ -133,8 +137,13 @@ jobs:
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
- name: Build with Gradle
+ if: needs.changes.outputs.mcp_server_changes == 'true'
run: ./gradlew build -PskipITs -PskipDockerTests=false -x
:clients:client-python:build
+ - name: Build with Gradle (skip mcp-server tests)
+ if: needs.changes.outputs.mcp_server_changes != 'true'
+ run: ./gradlew build -PskipITs -PskipDockerTests=false -x
:clients:client-python:build -x :mcp-server:build -x :mcp-server:test -x
:mcp-server:pylint
+
- name: Release with Gradle
run: ./gradlew clean && ./gradlew release -x test --rerun-tasks