Skip to content

Generate elasticsearch-js before Kibana type checks #3934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .buildkite/kibana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@ set -euo pipefail
# Since we're into the current repo, move to the top-level
cd ..

echo "--- Install dependencies"
lsb_release -a
apt-get update -y
apt-get install -y unzip

echo "--- Clone elasticsearch-js"
git clone -v -- [email protected]:elastic/elasticsearch-js.git
pushd elasticsearch-js
git checkout $BUILDKITE_BRANCH
popd

echo "--- Clone elastic-client-generator-js"
git clone -v -- [email protected]:elastic/elastic-client-generator-js.git
mkdir elastic-client-generator-js/output

echo "--- Clone Kibana"
git clone -v --reference /usr/local/git-references/git-github-com-elastic-kibana-git -- [email protected]:elastic/kibana.git
cd kibana
pushd kibana

echo "--- Install Node.js and Yarn"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
Expand All @@ -25,13 +31,17 @@ set -e
nvm install
nvm use
npm install --global yarn
popd

echo "--- Install elasticsearch-js"
pushd ../elasticsearch-js
pushd elasticsearch-js
npm install
node .buildkite/make.mjs --task codegen main
npm run build
npm pack
popd

pushd kibana
yarn add ../elasticsearch-js/elastic-elasticsearch-*.tgz

echo "--- Bootstrap Kibana"
Expand Down
1 change: 0 additions & 1 deletion .buildkite/kibana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ agents:
cpu: "4"
ephemeralStorage: 15Gi


steps:
- label: "Run Kibana type checks"
command: .buildkite/kibana.sh