From 2410278a10d657665c34806fdbf2ca9db0411f2c Mon Sep 17 00:00:00 2001 From: Zach Butler Date: Tue, 6 Oct 2020 11:40:36 -0400 Subject: [PATCH 1/3] Edit generate-pipeline.sh to only run nodeos_irreversible_mode_lr_test --- .cicd/generate-pipeline.sh | 379 +------------------------------------ 1 file changed, 1 insertion(+), 378 deletions(-) diff --git a/.cicd/generate-pipeline.sh b/.cicd/generate-pipeline.sh index d24f96400ca..14752d8edb4 100755 --- a/.cicd/generate-pipeline.sh +++ b/.cicd/generate-pipeline.sh @@ -181,174 +181,11 @@ IFS=$oIFS for ROUND in $(seq 1 $ROUNDS); do IFS=$'' echo " # round $ROUND of $ROUNDS" - # parallel tests - echo ' # parallel tests' - echo $PLATFORMS_JSON_ARRAY | jq -cr '.[]' | while read -r PLATFORM_JSON; do - if [[ ! "$(echo "$PLATFORM_JSON" | jq -r .FILE_NAME)" =~ 'macos' ]]; then - cat < Date: Tue, 6 Oct 2020 12:13:02 -0400 Subject: [PATCH 2/3] Add gating to support running N rounds in parallel, defined by ROUND_SIZE --- .cicd/generate-pipeline.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.cicd/generate-pipeline.sh b/.cicd/generate-pipeline.sh index 14752d8edb4..e890b0e7a9f 100755 --- a/.cicd/generate-pipeline.sh +++ b/.cicd/generate-pipeline.sh @@ -4,6 +4,7 @@ set -eo pipefail . ./.cicd/helpers/general.sh export PLATFORMS_JSON_ARRAY='[]' [[ -z "$ROUNDS" ]] && export ROUNDS='1' +[[ -z "$ROUND_SIZE" ]] && export ROUND_SIZE='1' BUILDKITE_BUILD_AGENT_QUEUE='automation-eks-eos-builder-fleet' BUILDKITE_TEST_AGENT_QUEUE='automation-eks-eos-tester-fleet' @@ -239,7 +240,7 @@ EOF IFS=$nIFS done IFS=$oIFS - if [[ "$ROUND" != "$ROUNDS" ]]; then + if [[ "$ROUND" != "$ROUNDS" && "$(( $ROUND % $ROUND_SIZE ))" == '0' ]]; then echo ' - wait' echo '' fi From 34c5d1aaa5c24ada5ce817f9cf759940864737db Mon Sep 17 00:00:00 2001 From: Zach Butler Date: Tue, 6 Oct 2020 12:13:30 -0400 Subject: [PATCH 3/3] Set default ROUND_SIZE to 16 --- .cicd/generate-pipeline.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cicd/generate-pipeline.sh b/.cicd/generate-pipeline.sh index e890b0e7a9f..eddc55072f6 100755 --- a/.cicd/generate-pipeline.sh +++ b/.cicd/generate-pipeline.sh @@ -4,7 +4,7 @@ set -eo pipefail . ./.cicd/helpers/general.sh export PLATFORMS_JSON_ARRAY='[]' [[ -z "$ROUNDS" ]] && export ROUNDS='1' -[[ -z "$ROUND_SIZE" ]] && export ROUND_SIZE='1' +[[ -z "$ROUND_SIZE" ]] && export ROUND_SIZE='16' BUILDKITE_BUILD_AGENT_QUEUE='automation-eks-eos-builder-fleet' BUILDKITE_TEST_AGENT_QUEUE='automation-eks-eos-tester-fleet'