Remove ts refs build from bootstrap (#126005) (#126009)

* Revert "Revert "Remove ts refs build from bootstrap (#125314)""

This reverts commit 8757e965fc.

* build ts refs cache if enabled

(cherry picked from commit 854e8a6b61)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This commit is contained in:
Kibana Machine 2022-02-17 20:36:17 -05:00 committed by GitHub
parent f7d585ae2d
commit cc4e2571f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 17 deletions

View file

@ -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/'

View file

@ -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({

View file

@ -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,