From 0b8bf50898e8ef167af8048a2538c9e035388939 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Thu, 17 Feb 2022 17:58:53 -0600 Subject: [PATCH] Remove ts refs build from bootstrap (#126005) * Revert "Revert "Remove ts refs build from bootstrap (#125314)"" This reverts commit 8757e965fcc0e5cee96fa8c1be8627b9d3c21966. * build ts refs cache if enabled --- .buildkite/scripts/bootstrap.sh | 2 ++ packages/kbn-pm/dist/index.js | 7 ------- packages/kbn-pm/src/commands/bootstrap.ts | 10 ---------- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/.buildkite/scripts/bootstrap.sh b/.buildkite/scripts/bootstrap.sh index d4e8434fe6df8..c80f215052a26 100755 --- a/.buildkite/scripts/bootstrap.sh +++ b/.buildkite/scripts/bootstrap.sh @@ -26,6 +26,8 @@ fi ### upload ts-refs-cache artifacts as quickly as possible so they are available for download ### if [[ "${BUILD_TS_REFS_CACHE_CAPTURE:-}" == "true" ]]; then + echo "--- Build ts-refs-cache" + node scripts/build_ts_refs.js --ignore-type-failures echo "--- Upload ts-refs-cache" cd "$KIBANA_DIR/target/ts_refs_cache" gsutil cp "*.zip" 'gs://kibana-ci-ts-refs-cache/' diff --git a/packages/kbn-pm/dist/index.js b/packages/kbn-pm/dist/index.js index 607afa266da83..d390966a6a52f 100644 --- a/packages/kbn-pm/dist/index.js +++ b/packages/kbn-pm/dist/index.js @@ -8987,13 +8987,6 @@ const BootstrapCommand = { }, { prefix: '[vscode]', debug: false - }); - await Object(_utils_child_process__WEBPACK_IMPORTED_MODULE_3__["spawnStreaming"])(process.execPath, ['scripts/build_ts_refs', '--ignore-type-failures'], { - cwd: kbn.getAbsolute(), - env: process.env - }, { - prefix: '[ts refs]', - debug: false }); // send timings await reporter.timings({ diff --git a/packages/kbn-pm/src/commands/bootstrap.ts b/packages/kbn-pm/src/commands/bootstrap.ts index e7b8cad7ebc16..0b3141ab9a5a9 100644 --- a/packages/kbn-pm/src/commands/bootstrap.ts +++ b/packages/kbn-pm/src/commands/bootstrap.ts @@ -137,16 +137,6 @@ export const BootstrapCommand: ICommand = { { prefix: '[vscode]', debug: false } ); - await spawnStreaming( - process.execPath, - ['scripts/build_ts_refs', '--ignore-type-failures'], - { - cwd: kbn.getAbsolute(), - env: process.env, - }, - { prefix: '[ts refs]', debug: false } - ); - // send timings await reporter.timings({ upstreamBranch: kbn.kibanaProject.json.branch,