This is an automated email from the ASF dual-hosted git repository.

xtsong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git

commit a5d8ce2bb9886615a92c0d4d2bdeb21b6668d486
Author: youjin <[email protected]>
AuthorDate: Thu Jan 15 16:31:08 2026 +0800

    [test] Enable Java Vector Store Cross-Language Test in CI
---
 .github/workflows/ci.yml | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e46eb712..c5b71fbb 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -165,6 +165,21 @@ jobs:
   cross_language_tests:
     name: cross-language [${{ matrix.os }}] [python-${{ 
matrix.python-version}}] [java-${{ matrix.java-version}}]
     runs-on: ${{ matrix.os }}
+    services:
+      elasticsearch:
+        image: docker.elastic.co/elasticsearch/elasticsearch:8.19.0
+        env:
+          discovery.type: single-node
+          xpack.security.enabled: false
+          ES_JAVA_OPTS: "-Xms512m -Xmx512m"
+        ports:
+          - 9200:9200
+        options: >-
+          --health-cmd "curl -f http://localhost:9200/_cluster/health || exit 
1"
+          --health-interval 10s
+          --health-timeout 5s
+          --health-retries 10
+          --health-start-period 30s
     strategy:
       fail-fast: false
       matrix:
@@ -173,6 +188,17 @@ jobs:
         java-version: [ '17' ]
     steps:
       - uses: actions/checkout@v4
+      # Free disk space to ensure Elasticsearch has sufficient space for 
indexing operations
+      # This step removes unnecessary pre-installed tools (~30GB) to prevent 
disk watermark warnings
+      - name: Free disk space
+        uses: 
jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
+        with:
+          tool-cache: true
+          android: true
+          dotnet: true
+          haskell: true
+          large-packages: true
+          docker-images: true
       - name: Install java
         uses: actions/setup-java@v4
         with:
@@ -191,4 +217,6 @@ jobs:
       - name: Install ollama
         run: bash tools/start_ollama_server.sh
       - name: Run e2e tests
-        run: bash tools/e2e.sh
\ No newline at end of file
+        run: |
+          export ES_HOST="http://localhost:9200";
+          tools/e2e.sh
\ No newline at end of file

Reply via email to