Commit graph

193 commits

Author SHA1 Message Date
Brad White
5ff42151be
[7.17] Remove CI Composite Storybook (#171258) (#171762)
# Backport

Manual backport due to merge conflicts.

This will backport the following commits from `main` to `7.17`:
- [Remove CI Composite Storybook
(#171258)](https://github.com/elastic/kibana/pull/171258)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Brad
White","email":"Ikuni17@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-11-21T21:59:39Z","message":"Remove
CI Composite Storybook (#171258)\n\n## Summary\r\nCloses
#160803\r\n\r\nThis PR removes the `CI Composite` story because it has
been broken\r\nsince at least ac23dce29f
(and possibly\r\nsince b862a6c181). The
functionality is\r\ncovered by the generated `index.html`
in\r\ndda4498fee/.buildkite/scripts/steps/storybooks/build_and_upload.ts (L105-L120)\r\n\r\nTo
fix the composite story requires generating `stories.json` for
every\r\nstorybook, which requires migrating the repo off the
deprecated\r\n`storiesOf` API. That task is quite extensive and would be
better\r\nhandled alongside an upgrade to Storybook
7.x","sha":"1919c87b90c4f489c2027d71293631d89034f40f","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","ci:build-storybooks","v8.12.0"],"number":171258,"url":"https://github.com/elastic/kibana/pull/171258","mergeCommit":{"message":"Remove
CI Composite Storybook (#171258)\n\n## Summary\r\nCloses
#160803\r\n\r\nThis PR removes the `CI Composite` story because it has
been broken\r\nsince at least ac23dce29f
(and possibly\r\nsince b862a6c181). The
functionality is\r\ncovered by the generated `index.html`
in\r\ndda4498fee/.buildkite/scripts/steps/storybooks/build_and_upload.ts (L105-L120)\r\n\r\nTo
fix the composite story requires generating `stories.json` for
every\r\nstorybook, which requires migrating the repo off the
deprecated\r\n`storiesOf` API. That task is quite extensive and would be
better\r\nhandled alongside an upgrade to Storybook
7.x","sha":"1919c87b90c4f489c2027d71293631d89034f40f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/171258","number":171258,"mergeCommit":{"message":"Remove
CI Composite Storybook (#171258)\n\n## Summary\r\nCloses
#160803\r\n\r\nThis PR removes the `CI Composite` story because it has
been broken\r\nsince at least ac23dce29f
(and possibly\r\nsince b862a6c181). The
functionality is\r\ncovered by the generated `index.html`
in\r\ndda4498fee/.buildkite/scripts/steps/storybooks/build_and_upload.ts (L105-L120)\r\n\r\nTo
fix the composite story requires generating `stories.json` for
every\r\nstorybook, which requires migrating the repo off the
deprecated\r\n`storiesOf` API. That task is quite extensive and would be
better\r\nhandled alongside an upgrade to Storybook
7.x","sha":"1919c87b90c4f489c2027d71293631d89034f40f"}},{"url":"https://github.com/elastic/kibana/pull/171695","number":171695,"branch":"8.11","state":"OPEN"}]}]
BACKPORT-->

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-27 12:53:56 -06:00
Tiago Costa
728fcb9e23
chore(NA): regenerate package-lock.json 2023-11-23 02:06:22 +00:00
Tiago Costa
337aa1e8b7
chore(NA): regenerate package.lock.json for .buildkite npm deps 2023-11-23 01:36:11 +00:00
Brad White
d5e2c9e65e
[7.17] fix/redact axios headers (#171803) (#171809)
# Backport

This will backport the following commits from `main` to `7.17`:
- [fix/redact axios headers
(#171803)](https://github.com/elastic/kibana/pull/171803)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Brad
White","email":"Ikuni17@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-11-22T22:12:33Z","message":"fix/redact
axios headers (#171803)\n\nFix token
things\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"17ed0748e8d7671df31291d7b2bce5460c74b0f5","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v8.12.0"],"number":171803,"url":"https://github.com/elastic/kibana/pull/171803","mergeCommit":{"message":"fix/redact
axios headers (#171803)\n\nFix token
things\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"17ed0748e8d7671df31291d7b2bce5460c74b0f5"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/171803","number":171803,"mergeCommit":{"message":"fix/redact
axios headers (#171803)\n\nFix token
things\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"17ed0748e8d7671df31291d7b2bce5460c74b0f5"}},{"url":"https://github.com/elastic/kibana/pull/171808","number":171808,"branch":"8.11","state":"OPEN"}]}]
BACKPORT-->

---------

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2023-11-22 17:20:55 -08:00
Jon
f9713698f1
[7.17] [ci/artifacts] Fix docker context args (#170944) (#170990)
Backports #170944

https://buildkite.com/elastic/kibana-artifacts-staging/builds/2341
2023-11-10 05:46:12 -08:00
Jon
5beb0dd5ff
[7.17] [artifacts] Test mock building Iron Bank context (#170682) (#170746)
#170682

Had conflicts so re-ran a build -
https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/3453
2023-11-07 09:29:25 -08:00
Jon
a3a94fe4a8
[7.17] [docker] Add ubi9 image (#170260)
Backports #135868 

Builds available at
https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/3392
2023-10-31 17:56:21 -05:00
Patryk Kopyciński
ea08ee42c0
[7.17] Bump cypress@13.3.0 (#162383) (#167738)
# Backport

This will backport the following commits from `main` to `7.17`:
- [Bump cypress@13.3.0
(#162383)](https://github.com/elastic/kibana/pull/162383)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Patryk
Kopyciński","email":"contact@patrykkopycinski.com"},"sourceCommit":{"committedDate":"2023-10-01T08:55:01Z","message":"Bump
cypress@13.3.0 (#162383)\n\n## Summary\r\n\r\nBump Cypress-related
dependencies to the latest versions and update\r\n`renovate.json` to do
it automatically in the future\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Gloria Hornero
<gloria.hornero@elastic.co>","sha":"924664fc79d29a3f77014902c1d7d24537a5d9e3","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:APM","release_note:skip","Team:Fleet","ci:all-cypress-suites","backport:prev-minor","backport:prev-MAJOR","v8.11.0"],"number":162383,"url":"https://github.com/elastic/kibana/pull/162383","mergeCommit":{"message":"Bump
cypress@13.3.0 (#162383)\n\n## Summary\r\n\r\nBump Cypress-related
dependencies to the latest versions and update\r\n`renovate.json` to do
it automatically in the future\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Gloria Hornero
<gloria.hornero@elastic.co>","sha":"924664fc79d29a3f77014902c1d7d24537a5d9e3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/162383","number":162383,"mergeCommit":{"message":"Bump
cypress@13.3.0 (#162383)\n\n## Summary\r\n\r\nBump Cypress-related
dependencies to the latest versions and update\r\n`renovate.json` to do
it automatically in the future\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Gloria Hornero
<gloria.hornero@elastic.co>","sha":"924664fc79d29a3f77014902c1d7d24537a5d9e3"}}]}]
BACKPORT-->

---------

Co-authored-by: Gloria Hornero <gloria.hornero@elastic.co>
2023-10-02 13:46:19 -07:00
Patryk Kopyciński
d48e3db666
[7.17] [security_solution] Cypress flaky tests catcher (#162376) (#163992)
# Backport

This will backport the following commits from `main` to `7.17`:
- [[security_solution] Cypress flaky tests catcher
(#162376)](https://github.com/elastic/kibana/pull/162376)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Patryk
Kopyciński","email":"contact@patrykkopycinski.com"},"sourceCommit":{"committedDate":"2023-08-09T21:58:04Z","message":"[security_solution]
Cypress flaky tests catcher (#162376)\n\n## Summary\r\n\r\nInspired by
https://glebbahmutov.com/blog/burning-tests/\r\n\r\nImplements the idea
presented
here\r\nhttps://glebbahmutov.com/blog/burning-tests/#bonus-3-burning-new-or-changed-specs\r\n\r\nIn
short, on PR that is changing/adding new Cypress spec files we
will\r\ntry to \"burn\" them, it means we will try to run each `it` `2`
times to\r\nmake sure tests are written in a way that gives Cypress a
chance to\r\nrecover from the failed test.\r\nAlso adding a command that
allows to \"burn\" tests locally\r\n```\r\nyarn cypress:burn --spec
\"<>\"\r\n```\r\n\r\nRight now the job is set to `soft_fail`, so it is
not going to block the\r\nPR from merging, but hopefully will help the
Team to recognize potential\r\nflakiness before it is merged to
`main`","sha":"09aaecb59d5e82e17bf6f274de3cedd394bbe25b","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v8.10.0"],"number":162376,"url":"https://github.com/elastic/kibana/pull/162376","mergeCommit":{"message":"[security_solution]
Cypress flaky tests catcher (#162376)\n\n## Summary\r\n\r\nInspired by
https://glebbahmutov.com/blog/burning-tests/\r\n\r\nImplements the idea
presented
here\r\nhttps://glebbahmutov.com/blog/burning-tests/#bonus-3-burning-new-or-changed-specs\r\n\r\nIn
short, on PR that is changing/adding new Cypress spec files we
will\r\ntry to \"burn\" them, it means we will try to run each `it` `2`
times to\r\nmake sure tests are written in a way that gives Cypress a
chance to\r\nrecover from the failed test.\r\nAlso adding a command that
allows to \"burn\" tests locally\r\n```\r\nyarn cypress:burn --spec
\"<>\"\r\n```\r\n\r\nRight now the job is set to `soft_fail`, so it is
not going to block the\r\nPR from merging, but hopefully will help the
Team to recognize potential\r\nflakiness before it is merged to
`main`","sha":"09aaecb59d5e82e17bf6f274de3cedd394bbe25b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/162376","number":162376,"mergeCommit":{"message":"[security_solution]
Cypress flaky tests catcher (#162376)\n\n## Summary\r\n\r\nInspired by
https://glebbahmutov.com/blog/burning-tests/\r\n\r\nImplements the idea
presented
here\r\nhttps://glebbahmutov.com/blog/burning-tests/#bonus-3-burning-new-or-changed-specs\r\n\r\nIn
short, on PR that is changing/adding new Cypress spec files we
will\r\ntry to \"burn\" them, it means we will try to run each `it` `2`
times to\r\nmake sure tests are written in a way that gives Cypress a
chance to\r\nrecover from the failed test.\r\nAlso adding a command that
allows to \"burn\" tests locally\r\n```\r\nyarn cypress:burn --spec
\"<>\"\r\n```\r\n\r\nRight now the job is set to `soft_fail`, so it is
not going to block the\r\nPR from merging, but hopefully will help the
Team to recognize potential\r\nflakiness before it is merged to
`main`","sha":"09aaecb59d5e82e17bf6f274de3cedd394bbe25b"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2023-08-22 13:39:15 +01:00
Jon
91ee0ae974
[7.17] Fix package tests (#163978)
https://github.com/elastic/kibana/pull/163363 backported the requirement
for functional tests to specify a `--config` file.

This adds a config file flag to package tests instead of relying on a
global tag. This also swaps the test suite from an ingest test to
reporting, the same as main.

Tested
[here](https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/2696).
2023-08-16 15:43:43 +01:00
Alex Szabo
0920a80af2
[7.17] [Ops] Bump Node.js to version 18 (#160289) (#162722)
Closes https://github.com/elastic/kibana/issues/162695

# Backport

This will backport the following commits from `main` to `7.17`:
- [[Ops] Bump Node.js to version 18
(#160289)](https://github.com/elastic/kibana/pull/160289)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2023-07-27T12:12:48Z","message":"[Ops]
Bump Node.js to version 18 (#160289)\n\n## Summary\r\n\r\nBumps node.js
to 18.17.0 (replacement for PR #144012 which was
later\r\nreverted)\r\n\r\nAs a result, these categorical additions were
needed: \r\n- `node` evocations will need the
`--openssl-legacy-provider` flag,\r\nwherever it would use certain
crypto functionalities\r\n- tests required updating of the expected
HTTPS Agent call arguments,\r\n`noDelay` seems to be a default\r\n -
`window.[NAME]` fields cannot be written directly\r\n - some stricter
typechecks\r\n\r\nThis is using our in-house built node.js 18 versions
through the URLs\r\nthe proxy-cache. (built
with\r\nhttps://github.com/elastic/kibana-custom-nodejs-builds/pull/4)\r\n\r\nThese
urls are served from a bucket, where the RHEL7/Centos7
compatible\r\nnode distributables are.
(see:\r\nhttps://github.com/elastic/kibana-ci-proxy-cache/pull/7)\r\n\r\nFurther
todos: \r\n - [x] check docs wording and consistency\r\n - [ ] update
the dependency report\r\n - [x] explain custom builds in
documentation\r\n - [x] node_sass
prebuilts\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Tiago Costa <tiago.costa@elastic.co>\r\nCo-authored-by: Thomas Watson
<w@tson.dk>","sha":"8cf68dc6ba8f010e36538c1e7c92601a341efcf4","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","Team:uptime","backport:skip","release_note:feature","ci:all-cypress-suites","v8.10.0"],"number":160289,"url":"https://github.com/elastic/kibana/pull/160289","mergeCommit":{"message":"[Ops]
Bump Node.js to version 18 (#160289)\n\n## Summary\r\n\r\nBumps node.js
to 18.17.0 (replacement for PR #144012 which was
later\r\nreverted)\r\n\r\nAs a result, these categorical additions were
needed: \r\n- `node` evocations will need the
`--openssl-legacy-provider` flag,\r\nwherever it would use certain
crypto functionalities\r\n- tests required updating of the expected
HTTPS Agent call arguments,\r\n`noDelay` seems to be a default\r\n -
`window.[NAME]` fields cannot be written directly\r\n - some stricter
typechecks\r\n\r\nThis is using our in-house built node.js 18 versions
through the URLs\r\nthe proxy-cache. (built
with\r\nhttps://github.com/elastic/kibana-custom-nodejs-builds/pull/4)\r\n\r\nThese
urls are served from a bucket, where the RHEL7/Centos7
compatible\r\nnode distributables are.
(see:\r\nhttps://github.com/elastic/kibana-ci-proxy-cache/pull/7)\r\n\r\nFurther
todos: \r\n - [x] check docs wording and consistency\r\n - [ ] update
the dependency report\r\n - [x] explain custom builds in
documentation\r\n - [x] node_sass
prebuilts\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Tiago Costa <tiago.costa@elastic.co>\r\nCo-authored-by: Thomas Watson
<w@tson.dk>","sha":"8cf68dc6ba8f010e36538c1e7c92601a341efcf4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160289","number":160289,"mergeCommit":{"message":"[Ops]
Bump Node.js to version 18 (#160289)\n\n## Summary\r\n\r\nBumps node.js
to 18.17.0 (replacement for PR #144012 which was
later\r\nreverted)\r\n\r\nAs a result, these categorical additions were
needed: \r\n- `node` evocations will need the
`--openssl-legacy-provider` flag,\r\nwherever it would use certain
crypto functionalities\r\n- tests required updating of the expected
HTTPS Agent call arguments,\r\n`noDelay` seems to be a default\r\n -
`window.[NAME]` fields cannot be written directly\r\n - some stricter
typechecks\r\n\r\nThis is using our in-house built node.js 18 versions
through the URLs\r\nthe proxy-cache. (built
with\r\nhttps://github.com/elastic/kibana-custom-nodejs-builds/pull/4)\r\n\r\nThese
urls are served from a bucket, where the RHEL7/Centos7
compatible\r\nnode distributables are.
(see:\r\nhttps://github.com/elastic/kibana-ci-proxy-cache/pull/7)\r\n\r\nFurther
todos: \r\n - [x] check docs wording and consistency\r\n - [ ] update
the dependency report\r\n - [x] explain custom builds in
documentation\r\n - [x] node_sass
prebuilts\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Tiago Costa <tiago.costa@elastic.co>\r\nCo-authored-by: Thomas Watson
<w@tson.dk>","sha":"8cf68dc6ba8f010e36538c1e7c92601a341efcf4"}}]}]
BACKPORT-->

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
Co-authored-by: Thomas Watson <w@tson.dk>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2023-08-15 09:16:19 +02:00
Jon
ac50132159
[7.17] Test cypress OOM and chrome upgrade (#163363)
This PR introduces several changes to the Cypress config for 7.17 that
tries to mimic the state we currently have on main. The most notable
changes are the upgrade to cypress v12 and the addition of the
parallelisation. Both have required fundamentally bigger changes to what
we had before on that branch.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2023-08-15 02:01:14 +01:00
Jon
13916b37c3
[7.17] [bazel] Use a GCS bucket for local dev remote bazel cache (#148393)
08a8c640b8 removes the legacy remote
caching setup we had with buildbuddy

7982f6050c backports the
`populate-local-gcs` option from #131866. It adds support for keeping
the local development cache in gcs up to date. It's an old backport and
I don't think the complexity/maintenance is worth the development
performance on a feature frozen branch, but I'll leave it up for
discussion.

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2023-03-20 16:52:09 -05:00
Kibana Machine
a651e4ebc8
[7.17] [ci/es_snapshots] Set DOCKER_BUILDKIT as a bool (#150201) (#150217)
# Backport

This will backport the following commits from `main` to `7.17`:
- [[ci/es_snapshots] Set DOCKER_BUILDKIT as a bool
(#150201)](https://github.com/elastic/kibana/pull/150201)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT
[{"author":{"name":"Jon","email":"jon@elastic.co"},"sourceCommit":{"committedDate":"2023-02-02T18:45:55Z","message":"[ci/es_snapshots]
Set DOCKER_BUILDKIT as a bool (#150201)\n\nWe're seeing parse errors of
`DOCKER_BUILDKIT` after a version update.\r\nThis variable should either
be unset or a boolean. Instead of using an\r\nempty string this sets it
to
1.","sha":"82146cbd907a23f9a78dc6c3de1ffbbd00a34cb1","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v8.7.0"],"number":150201,"url":"https://github.com/elastic/kibana/pull/150201","mergeCommit":{"message":"[ci/es_snapshots]
Set DOCKER_BUILDKIT as a bool (#150201)\n\nWe're seeing parse errors of
`DOCKER_BUILDKIT` after a version update.\r\nThis variable should either
be unset or a boolean. Instead of using an\r\nempty string this sets it
to
1.","sha":"82146cbd907a23f9a78dc6c3de1ffbbd00a34cb1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/150201","number":150201,"mergeCommit":{"message":"[ci/es_snapshots]
Set DOCKER_BUILDKIT as a bool (#150201)\n\nWe're seeing parse errors of
`DOCKER_BUILDKIT` after a version update.\r\nThis variable should either
be unset or a boolean. Instead of using an\r\nempty string this sets it
to 1.","sha":"82146cbd907a23f9a78dc6c3de1ffbbd00a34cb1"}}]}] BACKPORT-->

Co-authored-by: Jon <jon@elastic.co>
2023-02-02 12:54:07 -06:00
Spencer
a8e7e9b6cf
[7.17] Fix autocommiting from CI (#148066) (#148070)
# Backport

This will backport the following commits from `main` to `7.17`:
- [Fix autocommiting from CI
(#148066)](https://github.com/elastic/kibana/pull/148066)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT
[{"author":{"name":"Spencer","email":"spencer@elastic.co"},"sourceCommit":{"committedDate":"2022-12-23T16:31:54Z","message":"Fix
autocommiting from CI (#148066)\n\nThe new images have an updated gh
binary which now requires setting the\r\n`GITHUB_REPO` env var, or
calling `gh repo set-default`. I opted for the\r\nenv var so that we
didn't need to find a good time to execute the CLI\r\n(after the keys
are in the env, but before all other user code) or worry\r\nabout the
logging. This also allows other users of our scripts to\r\ncustomize as
makes sense without having to dive into a bunch of\r\nimperative shell
code.\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1b8ddc626765af542d4270bdb372a6e8bec14419","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v8.7.0"],"number":148066,"url":"https://github.com/elastic/kibana/pull/148066","mergeCommit":{"message":"Fix
autocommiting from CI (#148066)\n\nThe new images have an updated gh
binary which now requires setting the\r\n`GITHUB_REPO` env var, or
calling `gh repo set-default`. I opted for the\r\nenv var so that we
didn't need to find a good time to execute the CLI\r\n(after the keys
are in the env, but before all other user code) or worry\r\nabout the
logging. This also allows other users of our scripts to\r\ncustomize as
makes sense without having to dive into a bunch of\r\nimperative shell
code.\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1b8ddc626765af542d4270bdb372a6e8bec14419"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/148066","number":148066,"mergeCommit":{"message":"Fix
autocommiting from CI (#148066)\n\nThe new images have an updated gh
binary which now requires setting the\r\n`GITHUB_REPO` env var, or
calling `gh repo set-default`. I opted for the\r\nenv var so that we
didn't need to find a good time to execute the CLI\r\n(after the keys
are in the env, but before all other user code) or worry\r\nabout the
logging. This also allows other users of our scripts to\r\ncustomize as
makes sense without having to dive into a bunch of\r\nimperative shell
code.\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1b8ddc626765af542d4270bdb372a6e8bec14419"}},{"url":"https://github.com/elastic/kibana/pull/148068","number":148068,"branch":"8.5","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/148069","number":148069,"branch":"8.6","state":"OPEN"}]}]
BACKPORT-->
2022-12-23 12:12:03 -07:00
Jonathan Budzenski
cd700fb4d2 Revert "remove macos buildbuddy cache"
This reverts commit 337ebcbca2.
2022-11-21 13:04:38 -06:00
Jonathan Budzenski
94f1004ce2 Revert "[7.17] Remove buildbuddy bazel cache (#145038)"
This reverts commit ebb6f0e7c7.
2022-11-21 13:04:13 -06:00
Jonathan Budzenski
337ebcbca2 remove macos buildbuddy cache 2022-11-21 12:19:50 -06:00
Jonathan Budzenski
ebb6f0e7c7
[7.17] Remove buildbuddy bazel cache (#145038)
This is no longer used.
2022-11-21 12:12:48 -06:00
Kibana Machine
eda3e0986e
[7.17] [ci] Set elasticsearch snapshot build timeout (#144831) (#144834)
# Backport

This will backport the following commits from `main` to `7.17`:
- [[ci] Set elasticsearch snapshot build timeout
(#144831)](https://github.com/elastic/kibana/pull/144831)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Jonathan
Budzenski","email":"jon@elastic.co"},"sourceCommit":{"committedDate":"2022-11-08T18:07:37Z","message":"[ci]
Set elasticsearch snapshot build timeout (#144831)\n\nWe had a few
stalled builds that timed out after 1d. Successful builds\r\ntypically
take 15m-18m. This sets the timeout 30
minutes.","sha":"62c62c3c2c3183afabfb125ec903e9acfd035361","branchLabelMapping":{"^v8.6.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","skip-ci","backport:all-open","v8.6.0"],"number":144831,"url":"https://github.com/elastic/kibana/pull/144831","mergeCommit":{"message":"[ci]
Set elasticsearch snapshot build timeout (#144831)\n\nWe had a few
stalled builds that timed out after 1d. Successful builds\r\ntypically
take 15m-18m. This sets the timeout 30
minutes.","sha":"62c62c3c2c3183afabfb125ec903e9acfd035361"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.6.0","labelRegex":"^v8.6.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/144831","number":144831,"mergeCommit":{"message":"[ci]
Set elasticsearch snapshot build timeout (#144831)\n\nWe had a few
stalled builds that timed out after 1d. Successful builds\r\ntypically
take 15m-18m. This sets the timeout 30
minutes.","sha":"62c62c3c2c3183afabfb125ec903e9acfd035361"}}]}]
BACKPORT-->

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-11-08 13:46:02 -07:00
Jonathan Budzenski
ee8fb2b323 Revert "Remove buildbuddy cache (#144356) (#144490)"
This reverts commit c0986fc04e.
2022-11-03 13:26:18 -05:00
Jonathan Budzenski
c0986fc04e
Remove buildbuddy cache (#144356) (#144490)
* Remove buildbuddy cache

* Update .buildkite/scripts/steps/on_merge_ts_refs_api_docs.sh

* Update .buildkite/scripts/common/setup_bazel.sh
2022-11-03 13:11:04 -05:00
Kibana Machine
c5fa6f724d
Re-enable Bazel cache on CI (#142975) (#142986)
* Re-enable Bazel cache on CI

* remove exit test

(cherry picked from commit 30e482bc8e)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-10-10 08:17:24 -07:00
Jonathan Budzenski
c0cc711dfb Disable bazel cache on CI (#142873) 2022-10-06 10:22:53 -05:00
Kibana Machine
4136e41afe
[CI] Use region-specific buckets for ci-proxy-cache for speed and cost savings (#138675) (#138827)
(cherry picked from commit c9a30dc27f)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-08-15 09:55:29 -07:00
Jonathan Budzenski
6a8d84fdeb
[7.17] [artifacts] Stabilize package testing (#134854) (#135616)
* bump ansible logging verbosity

* upgrade base os

* update base images

* add specificity to docker image glob

* limit memory

* bump base vm memory

* more cpu

* decrease verbosity

* less downloads

* disable shared symlinks

* more logging

* bump concurrency to test stability

* add concurrency group

* revert

* parallelism

* Revert "parallelism"

This reverts commit 4cc00f7144.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-05 12:29:00 -05:00
Kibana Machine
35e082fcfe
[es-snapshots] Disable caching on es snapshot manifests (#134525) (#134531)
(cherry picked from commit 95d3090f1a)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-06-15 15:57:05 -07:00
Spencer
bfa1d73786
[kbn/es] capture es debug files (#132355) (#132382)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 63fd2dd552)

# Conflicts:
#	packages/kbn-test/BUILD.bazel
#	packages/kbn-test/src/es/test_es_cluster.ts
2022-05-17 18:40:55 -07:00
Spencer
4951712cf8
[ci] install kibana-buildkite-library with npm (#131829) (#131838)
(cherry picked from commit 42c156fade)
2022-05-11 09:29:42 -07:00
Kibana Machine
336e643480
[ci] break out skip patterns so they can change without triggering CI (#131726) (#131743)
(cherry picked from commit c8624cdd98)

Co-authored-by: Spencer <spencer@elastic.co>
2022-05-06 10:10:53 -07:00
Kibana Machine
6d2362556f
exclude "Team:Unified observability" from Kibana QA team PR list (#131673) (#131725)
* exclude "Team:Unified observability"

* exclude "Feature:Unified Integrations"

* exclude "Team: AWP: Visualization"

* skip config file in ci

Co-authored-by: spalger <spencer@elastic.co>
(cherry picked from commit 0998b67ded)

Co-authored-by: Lee Drengenberg <lee.drengenberg@elastic.co>
2022-05-06 08:06:21 -07:00
Kibana Machine
84ca226799
[CI] Split check types into its own step, use spot for checks (#131096) (#131652)
(cherry picked from commit 267c674d42)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-05-05 11:53:45 -07:00
Kibana Machine
a84fa808d3
[ci] hide browserslist outdated warnings (#131549) (#131560)
(cherry picked from commit 1cdf0a45a6)

Co-authored-by: Spencer <spencer@elastic.co>
2022-05-04 12:26:40 -07:00
Kibana Machine
adba4b2922
[CI] Use GCS buckets for bazel remote caching (#131345) (#131464)
(cherry picked from commit 3bc9c42485)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-05-03 15:13:19 -07:00
Kibana Machine
f08bdb5808
changes to the nav-kibana-dev.docnav.json file are "docs only" (#131408) (#131435)
(cherry picked from commit 3295c9ffc7)

Co-authored-by: Spencer <spencer@elastic.co>
2022-05-03 12:05:13 -07:00
Spencer
e484af9119
[ci] validate that all tests are in a ciGroup (#131173) (#131202)
* [ci] validate that all tests are in a ciGroup

* make new checks script executable

* skip failing suite

(cherry picked from commit 7327155dbc)

# Conflicts:
#	x-pack/test/examples/screenshotting/index.ts
2022-05-02 01:26:37 -07:00
Gloria Hornero
64e69c8902
adding new dependencies (#125187) (#131127)
(cherry picked from commit 8771527334)

# Conflicts:
#	.buildkite/pipelines/pull_request/response_ops.yml
#	.buildkite/scripts/pipelines/pull_request/pipeline.js
#	x-pack/test/security_solution_cypress/runner.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-29 12:26:00 +02:00
Kibana Machine
87fee39313
[CI] Bump kibana-buildkite-library for getPrChanges fix (#130824) (#130831)
(cherry picked from commit e3d221ed39)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-04-21 15:05:19 -07:00
Kibana Machine
a7079e79a1
[artifacts] Skip publish if untracked branch (#130337) (#130406)
* [artifacts] Skip publish if untracked branch

* fix conditional

(cherry picked from commit 620b759dae)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-04-19 12:36:40 -07:00
Kibana Machine
da1f30a1b7
[artifacts] Extract default i18n messages (#128947) (#130326)
* [artifacts] Extract default i18n messages

* remove duplicate upload

* rm test file

* fix merge

* fix upload globs

* cleanup

* fix relative path in shasum

Co-authored-by: Ahmad Bamieh <ahmad.bamyeh@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 52b2ad2792)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
Co-authored-by: Spencer <spencer@elastic.co>
2022-04-18 16:03:40 -07:00
Kibana Machine
3f86f900e3
[package testing] Show kibana logs on exit (#128619) (#130328)
* [package testing] Show kibana logs on exit

* fix syntax

* fix syntax

* fix

* use absolute path

* wrap in fn

(cherry picked from commit 0300e02718)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
Co-authored-by: Spencer <spencer@elastic.co>
2022-04-18 15:46:29 -07:00
Tiago Costa
12a8648956
chore(NA): use new and more performant BuildBuddy servers (#130350) (#130441)
* chore(NA): use new and more performant BuildBuddy servers

* chore(NA): simple upgrade mechanism for new remote address servers

* docs(NA): missing note for future removal

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 48ca660c50)

# Conflicts:
#	packages/kbn-pm/dist/index.js

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-18 10:24:38 -07:00
Kibana Machine
54160c1e99
[CI] Resolve ES Snapshot manifest url at the beginning of the build (#130310) (#130324)
(cherry picked from commit d513ffc0e6)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-04-14 15:05:54 -07:00
Jonathan Budzenski
f097b3e4ff [artifacts] Add CI retries (#130194) 2022-04-13 20:02:11 -05:00
Jonathan Budzenski
476c7b9993
[7.17] [artifacts] Publish (#129499) (#130173)
* [artifacts] Publish (#129499)

* [artifacts] Publish release artifacts

This adds the publish step to the release pipeline, which uses the
release-manager CLI to upload a list Kibana artifacts.

* cleanup

* add missing artifacts

* enable rm

* fix syntax

* fix artifact

* source utils

* fix path

* fix version

* skip steps

* re-add pipeline steps

* set permissions

* Update .buildkite/scripts/steps/artifacts/publish.sh

Co-authored-by: Chris <chris.koehnke@elastic.co>

* Revert "Update .buildkite/scripts/steps/artifacts/publish.sh"

This reverts commit a6228f52cd.

* export

* support version qualifier

* setup env

* cleanup

* consistency

* \n

* comment

* unneccessary fallback

* +x

* hoist env args

* source

* link to artifacts

* fix artifacts summary

* relax docker glob

* \n

* fix summary

* fix variable

Co-authored-by: Chris <chris.koehnke@elastic.co>

* backport docker env variables

Co-authored-by: Chris <chris.koehnke@elastic.co>
2022-04-13 15:43:40 -05:00
Kibana Machine
ab222221f7
[CI] Don't generate an error comment when auto-committing changes (#129419) (#129682)
(cherry picked from commit eedb66b3af)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-04-06 17:32:33 -07:00
Kibana Machine
d605d2e227
[CI] Add SSH info to agent debug logs (#129413) (#129490)
(cherry picked from commit 50f80f44a8)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-04-05 09:31:23 -07:00
Jonathan Budzenski
1d65401084
[artifacts] Merge docker context verification (#129399) (#129426)
* [artifacts] Merge docker context verification

* add to pipeline

* n2-2
2022-04-05 07:21:56 -05:00
Jonathan Budzenski
b61b39e085
[artifacts] Merge package testing with release artifacts (#129378) (#129410)
* [artifacts] Merge package testing with release artifacts

* fix

* fix relative dir
2022-04-04 15:10:40 -07:00
Jonathan Budzenski
4e5b7f5a7b
[7.17] [ci] Add artifact build pipeline (#129363)
* [ci] Add artifact build pipeline (#128311)

* [ci] Add artifact build pipeline

* create dependencies report

* [artifacts] Setup conditional release vs snapshot build (#128801)

* [artifacts] Setup conditional release vs snapshot build

* Update .buildkite/scripts/steps/artifacts/build.sh

Co-authored-by: Brian Seeders <seeders@gmail.com>

Co-authored-by: Brian Seeders <seeders@gmail.com>

Co-authored-by: Brian Seeders <seeders@gmail.com>
2022-04-04 10:59:39 -05:00