From af424743e3f0b2350cacef140834998803705baa Mon Sep 17 00:00:00 2001 From: Phoenix <44333391+yuhongwei380@users.noreply.github.com> Date: Fri, 4 Sep 2026 11:39:57 +0800 Subject: [PATCH 1/4] update pull_request.yml & support variable for minio --- .github/workflows/pull_request.yml | 42 +++++++++--------------------- 1 file changed, 12 insertions(+), 30 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d049c3b..4b2a868 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -6,20 +6,19 @@ on: - master - 'v[0-9]+.*' - defaults: run: shell: bash - + env: - NIGHTLY_URL: http://minio.vesoft-inc.com:9000/nightly-build/nebula-graph - + NIGHTLY_URL: ${{ vars.MINIO_ENDPOINT }}/nightly-build/nebula-graph + jobs: lint: name: lint runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 2 - name: Check License Header @@ -56,14 +55,13 @@ jobs: - uses: webiny/action-post-run@3.0.0 with: run: sh -c "find . -mindepth 1 -delete" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: CMake run: | case ${{ matrix.compiler }} in gcc-*) case ${{ matrix.os }} in centos7) - # build with Release type cmake \ -DCMAKE_CXX_COMPILER=$TOOLSET_GCC_DIR/bin/g++ \ -DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \ @@ -74,7 +72,6 @@ jobs: -B build ;; ubuntu2004) - # build with Debug type cmake \ -DCMAKE_CXX_COMPILER=$TOOLSET_GCC_DIR/bin/g++ \ -DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \ @@ -86,7 +83,6 @@ jobs: esac ;; clang-*) - # build with Sanitizer cmake \ -DCMAKE_CXX_COMPILER=$TOOLSET_CLANG_DIR/bin/clang++ \ -DCMAKE_C_COMPILER=$TOOLSET_CLANG_DIR/bin/clang \ @@ -131,14 +127,12 @@ jobs: echo '127.0.0.1 graphd' >> /etc/hosts echo '127.0.0.1 graphd1' >> /etc/hosts echo '127.0.0.1 graphd2' >> /etc/hosts - # The connection maybe unstable, so we wait a while sleep 10 - name: CTest env: ASAN_OPTIONS: fast_unwind_on_malloc=1 run: | pushd build - # register storage to meta and wait heartbeat ./bin/regist_host --host=127.0.0.1:9779 && sleep 20 ctest -j $(nproc) -E '\w*_ssl_test' --timeout 10000 --output-on-failure make install @@ -148,7 +142,6 @@ jobs: run: | case ${{ matrix.os }} in centos7) - # install GCC4.8 by yum to build example yum -y update && yum -y install gcc gcc-c++ libstdc++-static pushd examples mkdir build @@ -166,7 +159,6 @@ jobs: mkdir build cmake -B build cmake --build build/ -j $(nproc) - # if the example use the g++ under /opt/vesoft/toolset, need to replace the low version libstdc++.so rm /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ln -s /opt/vesoft/toolset/clang/10.0.0/lib64/libstdc++.so /usr/lib/x86_64-linux-gnu/libstdc++.so.6 LD_LIBRARY_PATH=/usr/local/nebula/lib64:/usr/local/nebula/lib:$LD_LIBRARY_PATH ./build/session_example graphd:9669 @@ -175,11 +167,11 @@ jobs: ;; esac - name: Upload logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ failure() }} with: name: ${{ matrix.os }}-${{ matrix.compiler }}-test-logs - path: /usr/local/nebula/logs/ + path: /usr/local/nebula/logs/ - name: Cleanup if: ${{ always() }} run: rm -rf build modules @@ -208,14 +200,13 @@ jobs: - /tmp/nebula-graph-client/${{ matrix.os }}-${{ matrix.compiler }}:/tmp/nebula-graph-client/nebula-graph/${{ matrix.os }}-${{ matrix.compiler }} options: --mount type=tmpfs,destination=/tmp/ccache/nebula-graph,tmpfs-size=1073741824 --cap-add=SYS_PTRACE steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: CMake run: | case ${{ matrix.compiler }} in gcc-*) case ${{ matrix.os }} in centos7) - # build with Release type cmake \ -DCMAKE_CXX_COMPILER=$TOOLSET_GCC_DIR/bin/g++ \ -DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \ @@ -226,7 +217,6 @@ jobs: -B build ;; ubuntu2004) - # build with Debug type cmake \ -DCMAKE_CXX_COMPILER=$TOOLSET_GCC_DIR/bin/g++ \ -DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \ @@ -238,7 +228,6 @@ jobs: esac ;; clang-*) - # build with Sanitizer cmake \ -DCMAKE_CXX_COMPILER=$TOOLSET_CLANG_DIR/bin/clang++ \ -DCMAKE_C_COMPILER=$TOOLSET_CLANG_DIR/bin/clang \ @@ -288,25 +277,23 @@ jobs: echo '127.0.0.1 graphd' >> /etc/hosts echo '127.0.0.1 graphd1' >> /etc/hosts echo '127.0.0.1 graphd2' >> /etc/hosts - # The connection maybe unstable, so we wait a while sleep 10 - name: CTest SSL env: ASAN_OPTIONS: fast_unwind_on_malloc=1 run: | pushd build - # register storage to meta and wait heartbeat ./bin/regist_host --enable_ssl=true --host=127.0.0.1:9779 && sleep 20 ctest -j $(nproc) -R '\w*_ssl_test' --timeout 10000 --output-on-failure make install popd timeout-minutes: 10 - name: Upload logs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ failure() }} with: name: ${{ matrix.os }}-${{ matrix.compiler }}-ssl-test-logs - path: /usr/local/nebula/logs/ + path: /usr/local/nebula/logs/ - name: Cleanup if: ${{ always() }} run: rm -rf build modules @@ -335,14 +322,13 @@ jobs: - /tmp/nebula-graph-client/${{ matrix.os }}-${{ matrix.compiler }}:/tmp/nebula-graph-client/nebula-graph/${{ matrix.os }}-${{ matrix.compiler }} options: --mount type=tmpfs,destination=/tmp/ccache/nebula-graph,tmpfs-size=1073741824 --cap-add=SYS_PTRACE steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: CMake run: | case ${{ matrix.compiler }} in gcc-*) case ${{ matrix.os }} in centos7) - # build with Release type cmake \ -DCMAKE_CXX_COMPILER=$TOOLSET_GCC_DIR/bin/g++ \ -DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \ @@ -353,7 +339,6 @@ jobs: -B build ;; ubuntu2004) - # build with Debug type cmake \ -DCMAKE_CXX_COMPILER=$TOOLSET_GCC_DIR/bin/g++ \ -DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \ @@ -365,7 +350,6 @@ jobs: esac ;; clang-*) - # build with Sanitizer cmake \ -DCMAKE_CXX_COMPILER=$TOOLSET_CLANG_DIR/bin/clang++ \ -DCMAKE_C_COMPILER=$TOOLSET_CLANG_DIR/bin/clang \ @@ -415,14 +399,12 @@ jobs: echo '127.0.0.1 graphd' >> /etc/hosts echo '127.0.0.1 graphd1' >> /etc/hosts echo '127.0.0.1 graphd2' >> /etc/hosts - # The connection maybe unstable, so we wait a while sleep 10 - name: CTest self-signed SSL env: ASAN_OPTIONS: fast_unwind_on_malloc=1 run: | pushd build - # register storage to meta and wait heartbeat ./bin/regist_host --enable_ssl=true --host=127.0.0.1:9779 && sleep 20 ctest -j $(nproc) -R '\w*_ssl_test' --timeout 10000 --output-on-failure make install @@ -433,7 +415,7 @@ jobs: if: ${{ failure() }} with: name: ${{ matrix.os }}-${{ matrix.compiler }}-ssl-test-logs - path: /usr/local/nebula/logs/ + path: /usr/local/nebula/logs/ - name: Cleanup if: ${{ always() }} run: rm -rf build modules From a7ff1970edf23f283a9c3d4acb03c117adfcbd8c Mon Sep 17 00:00:00 2001 From: Phoenix <44333391+yuhongwei380@users.noreply.github.com> Date: Fri, 4 Sep 2026 12:31:18 +0800 Subject: [PATCH 2/4] bump runner label from 20.04 to 24.04 --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 4b2a868..d3be426 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -16,7 +16,7 @@ env: jobs: lint: name: lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 with: From 6e6588e74a069c826a4b3d67439d8a9d5109fd88 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Sep 2026 13:41:06 +0800 Subject: [PATCH 3/4] ci: raise file descriptor limit before starting nebula services in build job Co-authored-by: xiajingchun <6269380+xiajingchun@users.noreply.github.com> --- .github/workflows/pull_request.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d3be426..a7b720c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -121,6 +121,7 @@ jobs: set -e ;; esac + ulimit -n 65535 sed -i 's/--enable_authorize=false/--enable_authorize=true/g' /usr/local/nebula/etc/nebula-graphd.conf /usr/local/nebula/scripts/nebula.service start all /usr/local/nebula/scripts/nebula.service status all From 3761592c896cc82de72a487a9c1dd54586aa9500 Mon Sep 17 00:00:00 2001 From: Phoenix Date: Mon, 7 Sep 2026 14:06:22 +0800 Subject: [PATCH 4/4] rollback nightly_url --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index a7b720c..5892fc3 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -11,7 +11,7 @@ defaults: shell: bash env: - NIGHTLY_URL: ${{ vars.MINIO_ENDPOINT }}/nightly-build/nebula-graph + NIGHTLY_URL: http://minio.vesoft-inc.com:9000/nightly-build/nebula-graph jobs: lint: