Skip to content

Commit 9980374

Browse files
committed
fixes
1 parent 67a1331 commit 9980374

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

integration-test/start_server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ docker exec couchbase curl --fail --silent --retry-all-errors --connect-timeout
8585
docker exec couchbase couchbase-cli cluster-init --cluster-username Administrator --cluster-password password --cluster-ramsize 3072 --cluster-index-ramsize 3072 --cluster-fts-ramsize 256 --services data,index,query
8686
docker exec couchbase couchbase-cli setting-index --cluster couchbase://localhost --username Administrator --password password --index-threads 4 --index-log-level verbose --index-max-rollback-points 10 --index-storage-setting default --index-memory-snapshot-interval 150 --index-stable-snapshot-interval 40000
8787

88-
curl -u Administrator:password http://127.0.0.1:8091/node/controller/rename -d 'hostname=127.0.0.1'
88+
docker exec couchbase curl -u Administrator:password http://127.0.0.1:8091/node/controller/rename -d 'hostname=127.0.0.1'
8989

9090
if [ "${MULTI_NODE:-}" == "true" ]; then
9191
REPLICA1_NAME=couchbase-replica1

jenkins-integration-build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ else
8888
fi
8989

9090
if [ "${DETECT_RACES:-}" == "true" ]; then
91-
GO_TEST_FLAGS=(-race)
91+
GO_TEST_FLAGS+=(-race)
9292
fi
9393

9494
if [ "${FAIL_FAST:-}" == "true" ]; then
@@ -101,7 +101,6 @@ fi
101101

102102
if [ "${RUN_WALRUS}" == "true" ]; then
103103
set +e -x
104-
set -x +e
105104
# EE
106105
gotestsum --junitfile=rosmar-ee.xml --junitfile-project-name rosmar-EE --junitfile-testcase-classname relative --format standard-verbose -- -coverprofile=coverage_walrus_ee.out -coverpkg=github.com/couchbase/sync_gateway/... -tags cb_sg_devmode,cb_sg_enterprise "${GO_TEST_FLAGS[@]}" "github.com/couchbase/sync_gateway/${TARGET_PACKAGE}" > verbose_unit_ee.out 2>&1
107106
xmlstarlet ed -u '//testcase/@classname' -x 'concat("rosmar-EE-", .)' rosmar-ee.xml > verbose_unit_ee.xml
@@ -134,7 +133,7 @@ else
134133
GO_TEST_FLAGS+=(-tags cb_sg_devmode)
135134
fi
136135

137-
set -x # Output all executed shell commands
136+
set +e -x # Output all executed shell commands
138137
gotestsum --junitfile=integration.xml --junitfile-project-name integration --junitfile-testcase-classname relative --format standard-verbose -- "${GO_TEST_FLAGS[@]}" -coverprofile=coverage_int.out -coverpkg=github.com/couchbase/sync_gateway/... "github.com/couchbase/sync_gateway/${TARGET_PACKAGE}" 2>&1 | stdbuf -oL tee "${INT_LOG_FILE_NAME}.out" | stdbuf -oL grep -a -E '(--- (FAIL|PASS|SKIP):|github.com/couchbase/sync_gateway(/.+)?\t|TEST: |panic: )'
139138
if [ "${PIPESTATUS[0]}" -ne "0" ]; then # If test exit code is not 0 (failed)
140139
echo "Go test failed! Parsing logs to find cause..."

0 commit comments

Comments
 (0)