Skip to content

Commit f31be90

Browse files
committed
[OAS] Publish OAS bundles to bump.sh (#197482)
## Summary Publish OAS docs to bump.sh on merge to `main` or `8.x` ## To reviewers * For now actual publication requires a manual step on bump.sh (so things aren't going live immediately) * Will get to serverless OAS docs next! ## Blockers * Address vulnerable deps before merging: bump-sh/cli#583 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 8278b06) # Conflicts: # oas_docs/makefile # oas_docs/output/kibana.serverless.yaml # oas_docs/output/kibana.yaml
1 parent 591c595 commit f31be90

11 files changed

Lines changed: 58310 additions & 29 deletions

File tree

.buildkite/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.buildkite/pipelines/on_merge.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,21 @@ steps:
358358
- exit_status: '-1'
359359
limit: 3
360360

361+
- command: .buildkite/scripts/steps/openapi_publishing/publish_oas_docs.sh
362+
label: 'Publish OAS docs to bump.sh'
363+
agents:
364+
image: family/kibana-ubuntu-2004
365+
imageProject: elastic-images-prod
366+
provider: gcp
367+
machineType: n2-standard-2
368+
preemptible: true
369+
timeout_in_minutes: 60
370+
soft_fail: true
371+
retry:
372+
automatic:
373+
- exit_status: '-1'
374+
limit: 3
375+
361376
- command: .buildkite/scripts/steps/bazel_cache/bootstrap_linux.sh
362377
label: 'Populate local dev bazel cache (Linux)'
363378
agents:

.buildkite/scripts/steps/openapi_bundling/final_merge.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@ set -euo pipefail
44

55
source .buildkite/scripts/common/util.sh
66

7+
cur_dir=$(pwd)
8+
cd oas_docs
9+
10+
echo --- Installing NPM modules
11+
npm install
12+
713
echo --- Merge Kibana OpenAPI specs
14+
make api-docs
15+
# make api-docs-lint <-- Relies on JSONPath version with RCE vulnerabilities based on `npm audit`, https://github.com/advisories/GHSA-pppg-cpfq-h7wr
816

9-
(cd oas_docs && make api-docs && make api-docs-lint)
17+
cd "$cur_dir"
1018

1119
check_for_changed_files "make api-docs" true

0 commit comments

Comments
 (0)