From 65d3ade20d0300ba062d6a22873dfac20181a163 Mon Sep 17 00:00:00 2001 From: Spencer Date: Fri, 23 Sep 2022 12:50:47 -0500 Subject: [PATCH] [watcher] disable jest config in CI, it's regularly failing (#141677) --- .buildkite/disabled_jest_configs.json | 3 +++ .../pipeline-utils/ci-stats/pick_test_group_run_order.ts | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .buildkite/disabled_jest_configs.json diff --git a/.buildkite/disabled_jest_configs.json b/.buildkite/disabled_jest_configs.json new file mode 100644 index 0000000000000..a64c34ae741b4 --- /dev/null +++ b/.buildkite/disabled_jest_configs.json @@ -0,0 +1,3 @@ +[ + "x-pack/plugins/watcher/jest.config.js" +] diff --git a/.buildkite/pipeline-utils/ci-stats/pick_test_group_run_order.ts b/.buildkite/pipeline-utils/ci-stats/pick_test_group_run_order.ts index 4044c4f1bebad..c326e979b93db 100644 --- a/.buildkite/pipeline-utils/ci-stats/pick_test_group_run_order.ts +++ b/.buildkite/pipeline-utils/ci-stats/pick_test_group_run_order.ts @@ -15,6 +15,8 @@ import { load as loadYaml } from 'js-yaml'; import { BuildkiteClient, BuildkiteStep } from '../buildkite'; import { CiStatsClient, TestGroupRunOrderResponse } from './client'; +import DISABLED_JEST_CONFIGS from '../../disabled_jest_configs.json'; + type RunGroup = TestGroupRunOrderResponse['types'][0]; const getRequiredEnv = (name: string) => { @@ -220,6 +222,7 @@ export async function pickTestGroupRunOrder() { ? globby.sync(['**/jest.config.js', '!**/__fixtures__/**'], { cwd: process.cwd(), absolute: false, + ignore: DISABLED_JEST_CONFIGS, }) : [];