From 840c6f306b88a7cda5dfc33aed3742fe4170477b Mon Sep 17 00:00:00 2001 From: Guillermo Gaston Date: Mon, 12 Feb 2024 15:31:08 -0600 Subject: [PATCH] Allow to set tests to run in quick e2e buildspec (#7553) This allows to manually run a pipeline with this buildspec and running only one or a particular subset of tests. It introduces the value "QUICK" that allows to run all configured tests for the quick pipeline without knowing the tests. This allows a manual pipeline to run all quick tests without passing an empty variable, which is not allowed. --- .../build/buildspecs/quick-test-eks-a-cli.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/integration_test/build/buildspecs/quick-test-eks-a-cli.yml b/cmd/integration_test/build/buildspecs/quick-test-eks-a-cli.yml index 1e036236b931..2c1b4f4698c4 100644 --- a/cmd/integration_test/build/buildspecs/quick-test-eks-a-cli.yml +++ b/cmd/integration_test/build/buildspecs/quick-test-eks-a-cli.yml @@ -174,7 +174,10 @@ phases: BUNDLES_OVERRIDE=true fi - SKIPPED_TESTS=$(yq e ".skipped_tests | @csv" ${CODEBUILD_SRC_DIR}/test/e2e/SKIPPED_TESTS.yaml) - - QUICK_TESTS="($(yq e '.quick_tests | join("|")' ./test/e2e/QUICK_TESTS.yaml))" + - | + if [ -z "$TESTS" ] || [ "$TESTS" == "QUICK" ]; then + TESTS=$(yq e '.quick_tests | join("|")' ./test/e2e/QUICK_TESTS.yaml) + fi - > ./bin/test e2e run -c ${INTEGRATION_TEST_INFRA_CONFIG} @@ -183,7 +186,7 @@ phases: -i ${INTEGRATION_TEST_INSTANCE_PROFILE} -m ${INTEGRATION_TEST_MAX_EC2_COUNT} -p ${INTEGRATION_TEST_MAX_CONCURRENT_TEST_COUNT} - -r ${QUICK_TESTS} + -r ${TESTS} -v 4 --skip ${SKIPPED_TESTS} --bundles-override=${BUNDLES_OVERRIDE}