Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .circleci/local_publish_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function retry {

resetAwsAccountCredentials
TEST_SUITE=${TEST_SUITE:-"TestSuiteNotSet"}
aws cloudwatch put-metric-data --metric-name FlakyE2ETests --namespace amplify-cli-e2e-tests --unit Count --value $n --dimensions testFile=$TEST_SUITE
aws cloudwatch put-metric-data --metric-name FlakyE2ETests --namespace amplify-cli-e2e-tests --unit Count --value $n --dimensions testFile=$TEST_SUITE || true
echo "Attempt $n succeeded."
exit 0 # don't fail the step if putting the metric fails
}
Expand Down Expand Up @@ -296,9 +296,19 @@ function runE2eTestCb {
if [ -f $FAILED_TEST_REGEX_FILE ]; then
# read the content of failed tests
failedTests=$(<$FAILED_TEST_REGEX_FILE)
NODE_V8_COVERAGE=$E2E_TEST_COVERAGE_DIR yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE -t "$failedTests"
if [[ ! -z "$DISABLE_COVERAGE" ]]; then
echo Running WITHOUT coverage
yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE -t "$failedTests"
else
NODE_V8_COVERAGE=$E2E_TEST_COVERAGE_DIR yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE -t "$failedTests"
fi
else
NODE_V8_COVERAGE=$E2E_TEST_COVERAGE_DIR yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE
if [[ ! -z "$DISABLE_COVERAGE" ]]; then
echo Running WITHOUT coverage
yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE
else
NODE_V8_COVERAGE=$E2E_TEST_COVERAGE_DIR yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE
fi
fi
}

Expand Down
1,776 changes: 5 additions & 1,771 deletions codebuild_specs/e2e_workflow_generated.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion codebuild_specs/migration_tests_v10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ phases:
build:
commands:
# you can provide a codebuild source version to use old cache and skip all other jobs :)
- export NODE_OPTIONS=--max-old-space-size=8096
# - export NODE_OPTIONS=--max-old-space-size=8096
- export AMPLIFY_DIR=$CODEBUILD_SRC_DIR/out
- export AMPLIFY_PATH=$HOME/.amplify/bin/amplify
- echo $AMPLIFY_DIR
Expand Down
2 changes: 1 addition & 1 deletion codebuild_specs/migration_tests_v8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ phases:
build:
commands:
# you can provide a codebuild source version to use old cache and skip all other jobs :)
- export NODE_OPTIONS=--max-old-space-size=8096
# - export NODE_OPTIONS=--max-old-space-size=8096
- export AMPLIFY_DIR=$CODEBUILD_SRC_DIR/out
- export AMPLIFY_PATH=$HOME/.npm-global/bin/amplify
- echo $AMPLIFY_DIR
Expand Down
2 changes: 1 addition & 1 deletion codebuild_specs/run_e2e_tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ phases:
build:
commands:
# you can provide a codebuild source version to use old cache and skip all other jobs :)
- export NODE_OPTIONS=--max-old-space-size=8096
- export NODE_OPTIONS=--max-old-space-size=4096
- export AMPLIFY_DIR=$CODEBUILD_SRC_DIR/out
- export AMPLIFY_PATH=$CODEBUILD_SRC_DIR/out/amplify-pkg-linux-x64
- echo $AMPLIFY_DIR
Expand Down
1 change: 1 addition & 0 deletions codebuild_specs/run_e2e_tests_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ phases:
build:
commands:
- choco install -fy jq
- git config --global core.longpaths true
- bash ./codebuild_specs/scripts-windows/load-e2e-cache.sh
- bash ./codebuild_specs/scripts-windows/rename-packaged-cli.sh
- bash ./codebuild_specs/scripts-windows/run-e2e-windows.sh
Expand Down
1 change: 1 addition & 0 deletions codebuild_specs/scripts-windows/run-e2e-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export MSYS2_ARG_CONV_EXCL="*"

export AMPLIFY_DIR=$CODEBUILD_SRC_DIR\\out
export AMPLIFY_PATH=$CODEBUILD_SRC_DIR\\out\\amplify.exe
export NODE_OPTIONS=--max-old-space-size=4096

source .circleci/local_publish_helpers.sh
source ./codebuild_specs/scripts-windows/shared-scripts-windows.sh
Expand Down
Loading