Skip to content

Commit

Permalink
[8.x] [ci] Validate bundle limits earlier (elastic#199155) (elastic#1…
Browse files Browse the repository at this point in the history
…99199)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ci] Validate bundle limits earlier
(elastic#199155)](elastic#199155)

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

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

<!--BACKPORT
[{"author":{"name":"Jon","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-06T17:52:53Z","message":"[ci]
Validate bundle limits earlier (elastic#199155)\n\nCurrently pull request
builds that create bundle changes over the limits\r\ndefined in
`packages/kbn-optimizer/limits.yml` receive an error in the\r\n`Post
Build` step. This information is available earlier, after the\r\n`Build
Distribution` step.\r\n\r\nBy failing earlier we can reduce the number
of test runs caused by\r\nbundle limit changes. The report created in
the `Post Build` step will\r\ncontinue to behave as it currently
is.","sha":"78f566a4b11411fa0b0c4d1c943b13ba0dff10d5","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[ci]
Validate bundle limits
earlier","number":199155,"url":"https://github.com/elastic/kibana/pull/199155","mergeCommit":{"message":"[ci]
Validate bundle limits earlier (elastic#199155)\n\nCurrently pull request
builds that create bundle changes over the limits\r\ndefined in
`packages/kbn-optimizer/limits.yml` receive an error in the\r\n`Post
Build` step. This information is available earlier, after the\r\n`Build
Distribution` step.\r\n\r\nBy failing earlier we can reduce the number
of test runs caused by\r\nbundle limit changes. The report created in
the `Post Build` step will\r\ncontinue to behave as it currently
is.","sha":"78f566a4b11411fa0b0c4d1c943b13ba0dff10d5"}},"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/199155","number":199155,"mergeCommit":{"message":"[ci]
Validate bundle limits earlier (elastic#199155)\n\nCurrently pull request
builds that create bundle changes over the limits\r\ndefined in
`packages/kbn-optimizer/limits.yml` receive an error in the\r\n`Post
Build` step. This information is available earlier, after the\r\n`Build
Distribution` step.\r\n\r\nBy failing earlier we can reduce the number
of test runs caused by\r\nbundle limit changes. The report created in
the `Post Build` step will\r\ncontinue to behave as it currently
is.","sha":"78f566a4b11411fa0b0c4d1c943b13ba0dff10d5"}}]}] BACKPORT-->

Co-authored-by: Jon <[email protected]>
  • Loading branch information
kibanamachine and jbudz authored Nov 6, 2024
1 parent 1973e31 commit 885f75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .buildkite/scripts/post_build_kibana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ ! "${DISABLE_CI_STATS_SHIPPING:-}" ]]; then
"--metrics" "build/kibana/node_modules/@kbn/ui-shared-deps-src/shared_built_assets/metrics.json"
)

if [ "$BUILDKITE_PIPELINE_SLUG" == "kibana-on-merge" ]; then
if [[ "$BUILDKITE_PIPELINE_SLUG" == "kibana-on-merge" ]] || [[ "$BUILDKITE_PIPELINE_SLUG" == "kibana-pull-request" ]]; then
cmd+=("--validate")
fi

Expand Down

0 comments on commit 885f75d

Please sign in to comment.