Skip to content

Commit

Permalink
[8.x] [api docs] Stabilize build (#205432) (#205460)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.x`:
- [[api docs] Stabilize build
(#205432)](#205432)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Jon","email":"jon@elastic.co"},"sourceCommit":{"committedDate":"2025-01-03T01:14:14Z","message":"[api
docs] Stabilize build (#205432)\n\nThe API docs build times have become
unstable over the last few months,\r\nranging from 45 to 80 minutes
before timing
out:\r\nhttps://buildkite.com/elastic/kibana-api-docs-daily/builds?state=failed.\r\n\r\nWhen
the API docs build times out in the on-merge pipeline, or
takes\r\nlonger than a pull request build, pull requests based on it
will also\r\nfail due to missing baseline metrics. Testing
at\r\nhttps://buildkite.com/elastic/kibana-pull-request/builds/263821
and\r\nhttps://buildkite.com/elastic/kibana-pull-request/builds/263838\r\nindicates
consistency and time improvements with more memory.\r\n\r\nThis updates
the machine type from n2-standard-4 to n2-highmem-4 and\r\nallocates
24gb to the node
process.","sha":"68f510eed9dcc3c4488e03315e643e868b10bd08","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","v9.0.0","backport:prev-major"],"title":"[api
docs] Stabilize
build","number":205432,"url":"https://github.com/elastic/kibana/pull/205432","mergeCommit":{"message":"[api
docs] Stabilize build (#205432)\n\nThe API docs build times have become
unstable over the last few months,\r\nranging from 45 to 80 minutes
before timing
out:\r\nhttps://buildkite.com/elastic/kibana-api-docs-daily/builds?state=failed.\r\n\r\nWhen
the API docs build times out in the on-merge pipeline, or
takes\r\nlonger than a pull request build, pull requests based on it
will also\r\nfail due to missing baseline metrics. Testing
at\r\nhttps://buildkite.com/elastic/kibana-pull-request/builds/263821
and\r\nhttps://buildkite.com/elastic/kibana-pull-request/builds/263838\r\nindicates
consistency and time improvements with more memory.\r\n\r\nThis updates
the machine type from n2-standard-4 to n2-highmem-4 and\r\nallocates
24gb to the node
process.","sha":"68f510eed9dcc3c4488e03315e643e868b10bd08"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205432","number":205432,"mergeCommit":{"message":"[api
docs] Stabilize build (#205432)\n\nThe API docs build times have become
unstable over the last few months,\r\nranging from 45 to 80 minutes
before timing
out:\r\nhttps://buildkite.com/elastic/kibana-api-docs-daily/builds?state=failed.\r\n\r\nWhen
the API docs build times out in the on-merge pipeline, or
takes\r\nlonger than a pull request build, pull requests based on it
will also\r\nfail due to missing baseline metrics. Testing
at\r\nhttps://buildkite.com/elastic/kibana-pull-request/builds/263821
and\r\nhttps://buildkite.com/elastic/kibana-pull-request/builds/263838\r\nindicates
consistency and time improvements with more memory.\r\n\r\nThis updates
the machine type from n2-standard-4 to n2-highmem-4 and\r\nallocates
24gb to the node
process.","sha":"68f510eed9dcc3c4488e03315e643e868b10bd08"}}]}]
BACKPORT-->

Co-authored-by: Jon <jon@elastic.co>
  • Loading branch information
kibanamachine and jbudz authored Jan 3, 2025
1 parent 46de4db commit 465d2aa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipelines/build_api_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-4
machineType: n2-highmem-4
preemptible: true
key: build_api_docs
timeout_in_minutes: 50
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipelines/on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ steps:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
provider: gcp
machineType: n2-standard-4
machineType: n2-highmem-4
preemptible: true
diskSizeGb: 75
timeout_in_minutes: 80
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipelines/pull_request/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ steps:
- command: .buildkite/scripts/steps/api_docs/build_api_docs.sh
label: 'Build API Docs'
agents:
machineType: n2-standard-4
machineType: n2-highmem-4
preemptible: true
diskSizeGb: 75
key: build_api_docs
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/steps/api_docs/build_api_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
.buildkite/scripts/bootstrap.sh

echo "--- Build API Docs"
node --max-old-space-size=12000 scripts/build_api_docs
node --max-old-space-size=24000 scripts/build_api_docs

if [[ "${PUBLISH_API_DOCS_CHANGES:-}" == "true" ]]; then
echo "--- Store API Docs changes in Buildkite"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -euo pipefail
source .buildkite/scripts/common/util.sh

echo --- Building api docs
node --max-old-space-size=12000 scripts/build_api_docs
node --max-old-space-size=24000 scripts/build_api_docs
2 changes: 1 addition & 1 deletion .buildkite/scripts/steps/on_merge_api_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export DISABLE_BOOTSTRAP_VALIDATION=true
.buildkite/scripts/bootstrap.sh

echo "--- Build API Docs"
node --max-old-space-size=12000 scripts/build_api_docs
node --max-old-space-size=24000 scripts/build_api_docs

0 comments on commit 465d2aa

Please sign in to comment.