Skip to content

Commit

Permalink
Remove ts refs build from bootstrap (elastic#126005)
Browse files Browse the repository at this point in the history
* Revert "Revert "Remove ts refs build from bootstrap (elastic#125314)""

This reverts commit 8757e96.

* build ts refs cache if enabled
  • Loading branch information
jbudz authored and lucasfcosta committed Mar 2, 2022
1 parent 1268096 commit 0b8bf50
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .buildkite/scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
Expand Down
7 changes: 0 additions & 7 deletions packages/kbn-pm/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
10 changes: 0 additions & 10 deletions packages/kbn-pm/src/commands/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0b8bf50

Please sign in to comment.