From 9c31ab203a42188adf8dfcc86dd29db51735af21 Mon Sep 17 00:00:00 2001 From: Sergey Avseyev Date: Wed, 2 Oct 2024 09:57:20 -0700 Subject: [PATCH] fix tests --- .github/workflows/tests.yml | 8 ++++---- bin/test.rb | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4c5a6c03..5b307414 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -316,8 +316,8 @@ jobs: - nts - zts server: - - 7.6.0 - - 7.2.4 + - 7.6.3 + - 7.2.6 - 7.1.6 - 7.0.5 steps: @@ -331,7 +331,7 @@ jobs: - name: Install cbdinocluster run: | mkdir -p "$HOME/bin" - curl -L -o "$HOME/bin/cbdinocluster" https://github.com/couchbaselabs/cbdinocluster/releases/download/v0.0.35/cbdinocluster-linux + curl -L -o "$HOME/bin/cbdinocluster" https://github.com/couchbaselabs/cbdinocluster/releases/download/v0.0.52/cbdinocluster-linux chmod a+x "$HOME/bin/cbdinocluster" echo "$HOME/bin" >> $GITHUB_PATH - name: Initialize cbdinocluster @@ -358,7 +358,7 @@ jobs: run: | CLUSTER_ID=$(cbdinocluster -v allocate --def="${CLUSTERCONFIG}") CONNECTION_STRING=$(cbdinocluster -v connstr "${CLUSTER_ID}") - cbdinocluster -v buckets add ${CLUSTER_ID} default --ram-quota-mb=100 --flush-enabled=true + cbdinocluster -v buckets add ${CLUSTER_ID} default --ram-quota-mb=100 --flush-enabled=true --num-replicas=2 cbdinocluster -v buckets load-sample ${CLUSTER_ID} travel-sample echo "CLUSTER_ID=${CLUSTER_ID}" >> "$GITHUB_ENV" echo "TEST_CONNECTION_STRING=${CONNECTION_STRING}?dump_configuration=true" >> "$GITHUB_ENV" diff --git a/bin/test.rb b/bin/test.rb index 3a382e35..bcfd382e 100755 --- a/bin/test.rb +++ b/bin/test.rb @@ -68,6 +68,11 @@ def capture(*args) output end +if ENV["CB_VALGRIND"] + ENV["USE_ZEND_ALLOC"] = 0 + ENV["ZEND_DONT_UNLOAD_MODULES"] = 1 +end + project_root = File.expand_path(File.join(__dir__, "..")) build_root = File.join(project_root, "build")