Skip to content

Commit 536d703

Browse files
authored
remove test options flaky (babel#16914)
1 parent af91759 commit 536d703

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

.github/workflows/ci.yml

-7
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ jobs:
7676
run: |
7777
make -j test-ci-coverage
7878
yarn test:esm
79-
env:
80-
BABEL_CLI_FLAKY_TESTS: true
8179
- name: Upload coverage report
8280
uses: codecov/codecov-action@v3
8381

@@ -103,7 +101,6 @@ jobs:
103101
env:
104102
BABEL_ENV: test
105103
USE_ESM: true
106-
BABEL_CLI_FLAKY_TESTS: trues
107104

108105
build:
109106
name: Build Babel Artifacts
@@ -262,7 +259,6 @@ jobs:
262259
run: |
263260
BABEL_ENV=test node --max-old-space-size=4096 ./node_modules/.bin/jest --ci
264261
env:
265-
BABEL_CLI_FLAKY_TESTS: true
266262
TEST_FUZZ: "${{ (matrix.node-version == '6' || matrix.node-version == '8' || matrix.node-version == '10') && 'false' || 'true' }}"
267263
- name: Use Node.js latest # For `yarn version` in post actions of the first actions/setup-node
268264
if: matrix.node-version == '6' || matrix.node-version == '8' || matrix.node-version == '10'
@@ -339,13 +335,11 @@ jobs:
339335
env:
340336
BABEL_ENV: test
341337
BABEL_8_BREAKING: true
342-
BABEL_CLI_FLAKY_TESTS: true
343338
- name: Test ESM
344339
run: yarn test:esm
345340
env:
346341
BABEL_ENV: test
347342
BABEL_8_BREAKING: true
348-
BABEL_CLI_FLAKY_TESTS: true
349343

350344
test-windows-mac:
351345
name: Test on
@@ -375,7 +369,6 @@ jobs:
375369
run: yarn jest --ci
376370
env:
377371
BABEL_ENV: test
378-
BABEL_CLI_FLAKY_TESTS: true
379372

380373
external-parser-tests:
381374
name: Third-party Parser Tests

CONTRIBUTING.md

-3
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,6 @@ In case you're not able to reproduce an error on CI locally, it may be due to
244244

245245
- Node Version: Travis CI runs the tests against all major node versions. If your tests use JavaScript features unsupported by lower versions of node, then use [minNodeVersion option](#writing-tests) in options.json.
246246
- Timeout: Check the CI log and if the only errors are timeout errors and you are sure that it's not related to the changes you made, ask someone in the slack channel to trigger rebuild on the CI build and it might be resolved
247-
- Some `@babel/cli` tests are known to be flaky and thus we do not run them by
248-
default locally. You can run them by setting the `BABEL_CLI_FLAKY_TESTS=true`
249-
env variable.
250247

251248
In case you're locally getting errors which are not on the CI, it may be due to
252249

packages/babel-helper-transform-fixture-test-runner/src/index.ts

-6
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ export type ProcessTestOpts = {
635635
inFiles?: Record<string, string>;
636636
noBabelrc?: boolean;
637637
minNodeVersion?: number;
638-
flaky?: boolean;
639638
env?: Record<string, string>;
640639
BABEL_8_BREAKING?: boolean;
641640
};
@@ -881,15 +880,10 @@ export function buildProcessTests(
881880
const skip =
882881
(opts.minNodeVersion &&
883882
parseInt(process.versions.node, 10) < opts.minNodeVersion) ||
884-
(opts.flaky && !process.env.BABEL_CLI_FLAKY_TESTS) ||
885883
(process.env.BABEL_8_BREAKING
886884
? opts.BABEL_8_BREAKING === false
887885
: opts.BABEL_8_BREAKING === true);
888886

889-
if (opts.flaky) {
890-
testName += " (flaky)";
891-
}
892-
893887
const test: ProcessTest = {
894888
suiteName,
895889
testName,

0 commit comments

Comments
 (0)