Skip to content

Commit dbc9d16

Browse files
committed
fix: remove cross-contaminated smoke test changes
1 parent 983766b commit dbc9d16

4 files changed

Lines changed: 2 additions & 16 deletions

File tree

.github/actions/run-smoke-tests/action.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,7 @@ runs:
6767
6868
- name: Run Smoke Tests
6969
shell: bash
70-
run: |
71-
set +e
72-
yarn smoketest -- --forceExit --no-cache --maxWorkers=2
73-
EXIT_CODE=$?
74-
if [ $EXIT_CODE -ne 0 ]; then
75-
echo "::warning::Smoke tests failed on first attempt (exit code $EXIT_CODE). Retrying in 30s..."
76-
sleep 30
77-
yarn smoketest -- --forceExit --no-cache --maxWorkers=2
78-
EXIT_CODE=$?
79-
fi
80-
exit $EXIT_CODE
70+
run: yarn smoketest -- --forceExit --no-cache --maxWorkers=2
8171
env:
8272
CLI_REGION: ${{ inputs.region }}
8373
CI: true

packages/amplify-e2e-tests/src/__tests__/smoke-tests/smoketest-amplify-app.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import {
1212
} from '../../amplify-app-helpers/amplify-app-validation';
1313
import execa from 'execa';
1414

15-
jest.retryTimes(1);
16-
1715
describe('amplify-app platform tests', () => {
1816
let projRoot: string;
1917

packages/amplify-e2e-tests/src/__tests__/smoke-tests/smoketest-ios.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import {
1010
import * as fs from 'fs/promises';
1111
import * as path from 'path';
1212

13-
jest.retryTimes(1);
14-
1513
describe('Smoke Test - iOS', () => {
1614
if (process.platform == 'darwin') {
1715
let projRoot: string;

packages/amplify-e2e-tests/src/__tests__/smoke-tests/smoketest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import * as fs from 'fs-extra';
44
import * as os from 'os';
55
import { getCLIPath, initJSProjectWithProfile, nspawn as spawn } from '@aws-amplify/amplify-e2e-core';
6-
jest.retryTimes(1);
6+
jest.retryTimes(0);
77

88
export type SmoketestArgs = {
99
projectDirectory: string;

0 commit comments

Comments
 (0)