Skip to content

Commit a8df4a4

Browse files
committed
[Test} add command to quick e2e buildspec
1 parent fb2aae5 commit a8df4a4

File tree

1 file changed

+69
-63
lines changed

1 file changed

+69
-63
lines changed

cmd/integration_test/build/buildspecs/quick-test-eks-a-cli.yml

+69-63
Original file line numberDiff line numberDiff line change
@@ -186,71 +186,77 @@ phases:
186186
- ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/start_docker.sh
187187
- make eks-a-for-dev-e2e build-integration-test-binary e2e-tests-binary E2E_TAGS="e2e all_providers" E2E_OUTPUT_FILE=bin/e2e.test
188188
- export CLUSTER_NAME_PREFIX="${BRANCH_NAME//./-}"
189+
# - >
190+
# ./bin/test e2e cleanup vsphere
191+
# -n ${CLUSTER_NAME_PREFIX}
192+
# -v 4
193+
# - >
194+
# ./bin/test e2e cleanup cloudstack
195+
# -n ${CLUSTER_NAME_PREFIX}
196+
# --delete-duplicate-networks
197+
# -v 6
198+
# - >
199+
# ./bin/test e2e cleanup nutanix
200+
# -n ${CLUSTER_NAME_PREFIX}
201+
# -e ${T_NUTANIX_ENDPOINT}
202+
# -p ${T_NUTANIX_PORT}
203+
# --insecure
204+
# --ignoreErrors
205+
# -v 4
189206
- >
190-
./bin/test e2e cleanup vsphere
191-
-n ${CLUSTER_NAME_PREFIX}
192-
-v 4
193-
- >
194-
./bin/test e2e cleanup cloudstack
195-
-n ${CLUSTER_NAME_PREFIX}
196-
--delete-duplicate-networks
197-
-v 6
198-
- >
199-
./bin/test e2e cleanup nutanix
200-
-n ${CLUSTER_NAME_PREFIX}
201-
-e ${T_NUTANIX_ENDPOINT}
202-
-p ${T_NUTANIX_PORT}
203-
--insecure
204-
--ignoreErrors
205-
-v 4
206-
build:
207-
commands:
208-
- export JOB_ID=$CODEBUILD_BUILD_ID
209-
- BUNDLES_OVERRIDE=false
210-
- |
211-
if [ -f ./bin/local-bundle-release.yaml ]; then
212-
BUNDLES_OVERRIDE=true
213-
fi
214-
- SKIPPED_TESTS=$(yq e ".skipped_tests | @csv" ${CODEBUILD_SRC_DIR}/test/e2e/SKIPPED_TESTS.yaml)
215-
- |
216-
if [ -z "$TESTS" ] || [ "$TESTS" == "QUICK" ]; then
217-
TESTS=$(yq e '.quick_tests | join("|")' ./test/e2e/QUICK_TESTS.yaml)
218-
fi
219-
- >
220-
./bin/test e2e run
221-
-c ${INTEGRATION_TEST_INFRA_CONFIG}
222-
-s ${INTEGRATION_TEST_STORAGE_BUCKET}
223-
-j ${JOB_ID}
224-
-i ${INTEGRATION_TEST_INSTANCE_PROFILE}
225-
-m ${INTEGRATION_TEST_MAX_EC2_COUNT}
226-
-p ${INTEGRATION_TEST_MAX_CONCURRENT_TEST_COUNT}
227-
-r ${TESTS}
228-
-v 4
229-
--skip ${SKIPPED_TESTS}
230-
--bundles-override=${BUNDLES_OVERRIDE}
231-
--cleanup-resources=true
232-
--test-report-folder=reports
233-
--branch-name=${BRANCH_NAME}
234-
--baremetal-branch=${BAREMETAL_BRANCH}
235-
post_build:
236-
commands:
237-
- unset AWS_SDK_LOAD_CONFIG AWS_PROFILE
238-
- >
239-
./bin/test e2e cleanup vsphere
240-
-n ${CLUSTER_NAME_PREFIX}
241-
-v 4
242-
- >
243-
./bin/test e2e cleanup cloudstack
244-
-n ${CLUSTER_NAME_PREFIX}
245-
-v 4
246-
- >
247-
./bin/test e2e cleanup nutanix
248-
-n ${CLUSTER_NAME_PREFIX}
249-
-e ${T_NUTANIX_ENDPOINT}
250-
-p ${T_NUTANIX_PORT}
251-
--insecure
252-
--ignoreErrors
207+
./bin/test e2e cleanup tinkerbell
208+
--storage-bucket ${INTEGRATION_TEST_STORAGE_BUCKET}
209+
--nstance-config ${INTEGRATION_TEST_INSTANCE_PROFILE}
210+
--dry-run
253211
-v 4
212+
# build:
213+
# commands:
214+
# - export JOB_ID=$CODEBUILD_BUILD_ID
215+
# - BUNDLES_OVERRIDE=false
216+
# - |
217+
# if [ -f ./bin/local-bundle-release.yaml ]; then
218+
# BUNDLES_OVERRIDE=true
219+
# fi
220+
# - SKIPPED_TESTS=$(yq e ".skipped_tests | @csv" ${CODEBUILD_SRC_DIR}/test/e2e/SKIPPED_TESTS.yaml)
221+
# - |
222+
# if [ -z "$TESTS" ] || [ "$TESTS" == "QUICK" ]; then
223+
# TESTS=$(yq e '.quick_tests | join("|")' ./test/e2e/QUICK_TESTS.yaml)
224+
# fi
225+
# - >
226+
# ./bin/test e2e run
227+
# -c ${INTEGRATION_TEST_INFRA_CONFIG}
228+
# -s ${INTEGRATION_TEST_STORAGE_BUCKET}
229+
# -j ${JOB_ID}
230+
# -i ${INTEGRATION_TEST_INSTANCE_PROFILE}
231+
# -m ${INTEGRATION_TEST_MAX_EC2_COUNT}
232+
# -p ${INTEGRATION_TEST_MAX_CONCURRENT_TEST_COUNT}
233+
# -r ${TESTS}
234+
# -v 4
235+
# --skip ${SKIPPED_TESTS}
236+
# --bundles-override=${BUNDLES_OVERRIDE}
237+
# --cleanup-resources=true
238+
# --test-report-folder=reports
239+
# --branch-name=${BRANCH_NAME}
240+
# --baremetal-branch=${BAREMETAL_BRANCH}
241+
# post_build:
242+
# commands:
243+
# - unset AWS_SDK_LOAD_CONFIG AWS_PROFILE
244+
# - >
245+
# ./bin/test e2e cleanup vsphere
246+
# -n ${CLUSTER_NAME_PREFIX}
247+
# -v 4
248+
# - >
249+
# ./bin/test e2e cleanup cloudstack
250+
# -n ${CLUSTER_NAME_PREFIX}
251+
# -v 4
252+
# - >
253+
# ./bin/test e2e cleanup nutanix
254+
# -n ${CLUSTER_NAME_PREFIX}
255+
# -e ${T_NUTANIX_ENDPOINT}
256+
# -p ${T_NUTANIX_PORT}
257+
# --insecure
258+
# --ignoreErrors
259+
# -v 4
254260
reports:
255261
e2e-reports:
256262
files:

0 commit comments

Comments
 (0)