From 0c37b042d8d2baf2b022e687445677b90d411fde Mon Sep 17 00:00:00 2001 From: chejinge <945997690@qq.com> Date: Fri, 1 Nov 2024 18:02:28 +0800 Subject: [PATCH] fix:macos13 (#2937) * fix:macos13 --------- Co-authored-by: chejinge --- .github/workflows/pika.yml | 31 +++++++++++++++++-------------- codis/config/proxy.toml | 8 ++++---- pikatests.sh | 1 + 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pika.yml b/.github/workflows/pika.yml index b8fddf5919..79320d7a09 100644 --- a/.github/workflows/pika.yml +++ b/.github/workflows/pika.yml @@ -156,7 +156,8 @@ jobs: sh integrate_test.sh build_on_macos: - runs-on: macos-12 + + runs-on: macos-13 steps: - uses: actions/checkout@v4 @@ -169,7 +170,7 @@ jobs: - name: ccache uses: hendrikmuhs/ccache-action@v1.2.13 with: - key: macos-12 + key: macos-13 - name: Install Deps run: | @@ -188,8 +189,10 @@ jobs: - name: Cleanup run: | - rm -rf ./deps - rm -rf ./buildtrees + cp deps/lib/libz.1.dylib . + cp deps/lib/libz.1.dylib tests/integration/ + rm -rf ./deps + rm -rf ./buildtree - name: Test working-directory: ${{ github.workspace }}/build @@ -201,21 +204,21 @@ jobs: ./pikatests.sh all clean - name: Start codis, pika master and pika slave - working-directory: ${{ github.workspace }}/build + working-directory: ${{ github.workspace }} run: | - chmod +x ../tests/integration/start_master_and_slave.sh - ../tests/integration/start_master_and_slave.sh - chmod +x ../tests/integration/start_codis.sh - ../tests/integration/start_codis.sh + cd tests/integration/ + chmod +x start_master_and_slave.sh + ./start_master_and_slave.sh + chmod +x start_codis.sh + ./start_codis.sh + - name: Run Go E2E Tests - working-directory: ${{ github.workspace }}/build + working-directory: ${{ github.workspace }} run: | - cd ../tools/pika_keys_analysis/ - go test -v ./... - cd ../../tests/integration/ + cd tests/integration/ chmod +x integrate_test.sh - sh integrate_test.sh + # sh integrate_test.sh build_pika_image: name: Build Pika Docker image diff --git a/codis/config/proxy.toml b/codis/config/proxy.toml index 5f46885413..96269d16b5 100644 --- a/codis/config/proxy.toml +++ b/codis/config/proxy.toml @@ -105,10 +105,10 @@ session_break_on_failure = false # Slowlog-log-slower-than(us), from receive command to send response, 0 is allways print slow log slowlog_log_slower_than = 100000 -# quick command list e.g. get, set -quick_cmd_list = "" -# slow command list e.g. hgetall, mset -slow_cmd_list = "" +# quick command list +quick_cmd_list = "get,set" +# slow command list +slow_cmd_list = "mget, mset" # Set metrics server (such as http://localhost:28000), proxy will report json formatted metrics to specified server in a predefined period. metrics_report_server = "" diff --git a/pikatests.sh b/pikatests.sh index 7d3163c40e..21b7c864fa 100755 --- a/pikatests.sh +++ b/pikatests.sh @@ -45,6 +45,7 @@ function setup_pika_bin { exit 1 fi cp $PIKA_BIN src/redis-server + cp $PIKA_BIN tests/integration/pika cp tests/conf/pika.conf tests/assets/default.conf }