You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "yuqi1129 (via GitHub)" <gi...@apache.org> on 2025/08/13 08:27:27 UTC

[PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

yuqi1129 opened a new pull request, #8062:
URL: https://github.com/apache/gravitino/pull/8062

   
   
   ### What changes were proposed in this pull request?
   
   Add a CI pipeline to build module `mcp` specifically.
   
   ### Why are the changes needed?
   
   To optimize CI resources
   
   Fix: #8061 
   
   ### Does this PR introduce _any_ user-facing change?
   
   N/A.
   
   ### How was this patch tested?
   
   CI
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2278163226


##########
.github/workflows/build.yml:
##########
@@ -23,31 +23,39 @@ jobs:
         with:
           filters: |
             source_changes:
-              - '.github/**'
-              - 'catalogs/**'
-              - 'clients/**'
-              - 'conf/**'
-              - 'dev/**'
-              - 'docs/open-api/**'
-              - 'gradle/**'
-              - 'gradle.properties'
-              - 'meta/**'
-              - 'scripts/**'
-              - 'web/**'
-              - '**/*.java'
-              - '**/*.kts'
-              - '**/*.py'
-              - '**/*.rs'
-              - '**/resources/**'
-              - '**/src/**'
-              - '!**/*.md'
-              - '!**/*.png'
-              - '!**/*.svg'

Review Comment:
   This may make the configuraiton complicated, Take `spark-integration-test` for example,  we should exclude not only `mcp-server` but also `python-clients` etcs.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2275826345


##########
.github/workflows/build.yml:
##########
@@ -23,31 +23,39 @@ jobs:
         with:
           filters: |
             source_changes:
-              - '.github/**'
-              - 'catalogs/**'
-              - 'clients/**'
-              - 'conf/**'
-              - 'dev/**'
-              - 'docs/open-api/**'
-              - 'gradle/**'
-              - 'gradle.properties'
-              - 'meta/**'
-              - 'scripts/**'
-              - 'web/**'
-              - '**/*.java'
-              - '**/*.kts'
-              - '**/*.py'
-              - '**/*.rs'
-              - '**/resources/**'
-              - '**/src/**'
-              - '!**/*.md'
-              - '!**/*.png'
-              - '!**/*.svg'

Review Comment:
   The prefix `!` does not take effect, and we should use the `excluded` keyword to exclude some files.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2278152067


##########
.github/workflows/build.yml:
##########
@@ -23,31 +23,39 @@ jobs:
         with:
           filters: |
             source_changes:
-              - '.github/**'
-              - 'catalogs/**'
-              - 'clients/**'
-              - 'conf/**'
-              - 'dev/**'
-              - 'docs/open-api/**'
-              - 'gradle/**'
-              - 'gradle.properties'
-              - 'meta/**'
-              - 'scripts/**'
-              - 'web/**'
-              - '**/*.java'
-              - '**/*.kts'
-              - '**/*.py'
-              - '**/*.rs'
-              - '**/resources/**'
-              - '**/src/**'
-              - '!**/*.md'
-              - '!**/*.png'
-              - '!**/*.svg'

Review Comment:
   I have tried, and it seems that as long as `mcp-server` is not in the `excluded` list, the CI will be triggered even though `mcp-server` is also not in the `include` list when there are changes under `mcp-server` folder.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2278152267


##########
.github/workflows/build.yml:
##########
@@ -98,6 +106,28 @@ jobs:
             build/reports
             spark-connector/**/*.log
 
+  mcp-server-build:
+    needs: changes
+    if: needs.changes.outputs.mcp_server_changes == 'true'
+    runs-on: ubuntu-latest
+    timeout-minutes: 30
+    strategy:
+      matrix:
+        java-version: [ 17 ]

Review Comment:
   Yes, let me simplify it. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2278129105


##########
.github/workflows/build.yml:
##########
@@ -23,31 +23,39 @@ jobs:
         with:
           filters: |
             source_changes:
-              - '.github/**'
-              - 'catalogs/**'
-              - 'clients/**'
-              - 'conf/**'
-              - 'dev/**'
-              - 'docs/open-api/**'
-              - 'gradle/**'
-              - 'gradle.properties'
-              - 'meta/**'
-              - 'scripts/**'
-              - 'web/**'
-              - '**/*.java'
-              - '**/*.kts'
-              - '**/*.py'
-              - '**/*.rs'
-              - '**/resources/**'
-              - '**/src/**'
-              - '!**/*.md'
-              - '!**/*.png'
-              - '!**/*.svg'

Review Comment:
   do we need to exclude `mcp-server` for most yml files? since `mcp-server` is not in include list



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#issuecomment-3187391374

   Commit [fc7ca2b](https://github.com/apache/gravitino/pull/8062/commits/fc7ca2b48470a8203c2af62906977c3f1d48ead0)  has been test and the CI pipelines are as expected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2278101269


##########
.github/workflows/build.yml:
##########
@@ -98,6 +106,28 @@ jobs:
             build/reports
             spark-connector/**/*.log
 
+  mcp-server-build:
+    needs: changes
+    if: needs.changes.outputs.mcp_server_changes == 'true'
+    runs-on: ubuntu-latest
+    timeout-minutes: 30
+    strategy:
+      matrix:
+        java-version: [ 17 ]
+        python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
+    steps:
+      - uses: actions/checkout@v4
+
+      - uses: actions/setup-java@v4
+        with:
+          java-version: ${{ matrix.java-version }}
+          distribution: 'temurin'
+          cache: 'gradle'
+
+      - name: Build MCP Server
+        run: |
+          ./gradlew -PjdkVersion=${{ matrix.java-version }} -PpythonVersion=${{ matrix.python-version }} -PskipDockerTests=false :mcp-server:build           

Review Comment:
   it's useless to pass `pythonVersion` and `java-version` for `:mcp-server:build`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2278387906


##########
.github/workflows/build.yml:
##########
@@ -23,31 +23,39 @@ jobs:
         with:
           filters: |
             source_changes:
-              - '.github/**'
-              - 'catalogs/**'
-              - 'clients/**'
-              - 'conf/**'
-              - 'dev/**'
-              - 'docs/open-api/**'
-              - 'gradle/**'
-              - 'gradle.properties'
-              - 'meta/**'
-              - 'scripts/**'
-              - 'web/**'
-              - '**/*.java'
-              - '**/*.kts'
-              - '**/*.py'
-              - '**/*.rs'
-              - '**/resources/**'
-              - '**/src/**'
-              - '!**/*.md'
-              - '!**/*.png'
-              - '!**/*.svg'

Review Comment:
   > do we need to exclude mcp-server for most yml files? since mcp-server is not in include list
   
   The fact is: `'**/*.py'` may include most files in `mcp-server`, so we need to exclude `mcp-server/**`.
   



##########
.github/workflows/build.yml:
##########
@@ -23,31 +23,39 @@ jobs:
         with:
           filters: |
             source_changes:
-              - '.github/**'
-              - 'catalogs/**'
-              - 'clients/**'
-              - 'conf/**'
-              - 'dev/**'
-              - 'docs/open-api/**'
-              - 'gradle/**'
-              - 'gradle.properties'
-              - 'meta/**'
-              - 'scripts/**'
-              - 'web/**'
-              - '**/*.java'
-              - '**/*.kts'
-              - '**/*.py'
-              - '**/*.rs'
-              - '**/resources/**'
-              - '**/src/**'
-              - '!**/*.md'
-              - '!**/*.png'
-              - '!**/*.svg'

Review Comment:
   Fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 merged PR #8062:
URL: https://github.com/apache/gravitino/pull/8062


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2278129635


##########
.github/workflows/build.yml:
##########
@@ -98,6 +106,28 @@ jobs:
             build/reports
             spark-connector/**/*.log
 
+  mcp-server-build:
+    needs: changes
+    if: needs.changes.outputs.mcp_server_changes == 'true'
+    runs-on: ubuntu-latest
+    timeout-minutes: 30
+    strategy:
+      matrix:
+        java-version: [ 17 ]

Review Comment:
   could you remove this matrix too?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#issuecomment-3190467305

   LGTM


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2278097236


##########
.github/workflows/build.yml:
##########
@@ -23,31 +23,39 @@ jobs:
         with:
           filters: |
             source_changes:
-              - '.github/**'
-              - 'catalogs/**'
-              - 'clients/**'
-              - 'conf/**'
-              - 'dev/**'
-              - 'docs/open-api/**'
-              - 'gradle/**'
-              - 'gradle.properties'
-              - 'meta/**'
-              - 'scripts/**'
-              - 'web/**'
-              - '**/*.java'
-              - '**/*.kts'
-              - '**/*.py'
-              - '**/*.rs'
-              - '**/resources/**'
-              - '**/src/**'
-              - '!**/*.md'
-              - '!**/*.png'
-              - '!**/*.svg'

Review Comment:
   This is the reason why using `include` and `exclude` for all yml files?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2278102098


##########
.github/workflows/build.yml:
##########
@@ -23,31 +23,39 @@ jobs:
         with:
           filters: |
             source_changes:
-              - '.github/**'
-              - 'catalogs/**'
-              - 'clients/**'
-              - 'conf/**'
-              - 'dev/**'
-              - 'docs/open-api/**'
-              - 'gradle/**'
-              - 'gradle.properties'
-              - 'meta/**'
-              - 'scripts/**'
-              - 'web/**'
-              - '**/*.java'
-              - '**/*.kts'
-              - '**/*.py'
-              - '**/*.rs'
-              - '**/resources/**'
-              - '**/src/**'
-              - '!**/*.md'
-              - '!**/*.png'
-              - '!**/*.svg'

Review Comment:
   Yeah



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp` specifically. [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #8062:
URL: https://github.com/apache/gravitino/pull/8062#discussion_r2278387906


##########
.github/workflows/build.yml:
##########
@@ -23,31 +23,39 @@ jobs:
         with:
           filters: |
             source_changes:
-              - '.github/**'
-              - 'catalogs/**'
-              - 'clients/**'
-              - 'conf/**'
-              - 'dev/**'
-              - 'docs/open-api/**'
-              - 'gradle/**'
-              - 'gradle.properties'
-              - 'meta/**'
-              - 'scripts/**'
-              - 'web/**'
-              - '**/*.java'
-              - '**/*.kts'
-              - '**/*.py'
-              - '**/*.rs'
-              - '**/resources/**'
-              - '**/src/**'
-              - '!**/*.md'
-              - '!**/*.png'
-              - '!**/*.svg'

Review Comment:
   > do we need to exclude mcp-server for most yml files? since mcp-server is not in include list
   
   The fact is: `'**/*.py'` may include most files in `mcp-server`, so we need to exclude `mcp-server/**`.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org