Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The motivation to do this was that
SG_TEST_BUCKET_POOL
is explicitly set by this script and I think we should move to having these default values determined by the code and jenkins could optionally overwrite them.This is a low priority change to review.
This change is no-op, there are no functional changes to the script except not requiring setting
SG_TEST_BUCKET_POOL_SIZE
andSG_TEST_BUCKET_POOL_DEBUG
before you call this script. Note, these are always currently set by the jenkins pipelines anyway, so the values would pass through. So this is also not a functional change with the way the jenkins jobs are set up.if [ "${SG_TEST_X509:-}" == "true" -a "${COUCHBASE_SERVER_PROTOCOL}" != "couchbases" ]; then
to use&&
instead of-a
GO_TEST_FLAGS
to use a bash array so that it could be correctly quoted to appease shellcheck[
]
and is easy to read. I used the output to debug things but I think there's enough information to debug. This might just add noise.GO_MODULES
andXATTRS
sinceGO_MODULES
isn't relevant since 3.1 andXATTRS
is no longer relevant as of 4.0. This script now is always sourced from the repo, so I'm not worried about changes.DOCKER_CBS_ROOT_DIR
since/workspace
is the only volume used for cbcollects.\t
fromstdbuf -oL grep -a -E '(--- (FAIL|PASS|SKIP):|github.com/couchbase/sync_gateway(/.+)?\t|TEST: |panic: )'
since grep always complainted about it, and it didn't do what it said. The scripts still find the values we need for theok
orfailed
for finishing package.Testing
./jenkins-integration-build.sh -m
locally to simulateMasterIntegration
job../start_server.sh
locally (I already use this to create testing)Integration Tests
GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/3228/