Skip to content

Commit

Permalink
Add flake attempts to concourse task
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Boyles <[email protected]>
Co-authored-by: David Alvarado <[email protected]>
  • Loading branch information
sethboyles and dalvarado committed Dec 5, 2022
1 parent 1dd4746 commit db33a8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion concourse/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set -eu
: "${USE_CF_DEPLOYMENT_VARS:="false"}"
: "${USE_CREDHUB:="false"}"
: "${RUN_REVISIONS_TESTS:="false"}"
: "${FLAKE_ATTEMPTS:=1}"

get_from_credhub() {
set +x
Expand Down Expand Up @@ -77,7 +78,7 @@ mkdir -p "${GOPATH}/src/code.cloudfoundry.org"
cp -a sync-integration-tests "${GOPATH}/src/code.cloudfoundry.org"

pushd "${GOPATH}/src/code.cloudfoundry.org/sync-integration-tests" > /dev/null
ginkgo -nodes="${NODES}"
ginkgo -nodes="${NODES}" --flakeAttempts="${FLAKE_ATTEMPTS}"
popd > /dev/null

exit 0
1 change: 1 addition & 0 deletions concourse/task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ params:
CF_SKIP_SSL_VALIDATION: false
CF_APPS_DOMAIN:
BBL_STATE_DIR:
FLAKE_ATTEMPTS: 1
1 change: 1 addition & 0 deletions concourse/task_with_credhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ params:
BBL_STATE_DIR:
USE_CREDHUB:
RUN_REVISIONS_TESTS: false
FLAKE_ATTEMPTS: 1

0 comments on commit db33a8c

Please sign in to comment.