# Backport
This will backport the following commits from `main` to `8.6`:
- [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"}}]}]
BACKPORT-->
Co-authored-by: Spencer <spencer@elastic.co>
# Backport
This will backport the following commits from `main` to `8.6`:
- [[APM] Add parallel builds for cypress tests
(#142598)](https://github.com/elastic/kibana/pull/142598)
<!--- Backport version: 8.9.7 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Giorgos
Bamparopoulos","email":"georgios.bamparopoulos@elastic.co"},"sourceCommit":{"committedDate":"2022-12-21T15:36:08Z","message":"[APM]
Add parallel builds for cypress tests (#142598)\n\n- Tests runs
initiated by the flaky test runner are not recorded
or\r\nparallelized","sha":"042403e606e59468024b9a822ab7a9c199a487f5","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:APM","release_note:skip","v8.6.0","v8.7.0"],"number":142598,"url":"https://github.com/elastic/kibana/pull/142598","mergeCommit":{"message":"[APM]
Add parallel builds for cypress tests (#142598)\n\n- Tests runs
initiated by the flaky test runner are not recorded
or\r\nparallelized","sha":"042403e606e59468024b9a822ab7a9c199a487f5"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/142598","number":142598,"mergeCommit":{"message":"[APM]
Add parallel builds for cypress tests (#142598)\n\n- Tests runs
initiated by the flaky test runner are not recorded
or\r\nparallelized","sha":"042403e606e59468024b9a822ab7a9c199a487f5"}}]}]
BACKPORT-->
Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>
# Backport
This will backport the following commits from `main` to `8.6`:
- [[RAM] Reactivate most tests in triggers_actions_ui
#147535](https://github.com/elastic/kibana/pull/147535)
<!--- Backport version: 8.9.7 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Ievgen
Sorokopud","email":"ievgen.sorokopud@elastic.co"},"sourceCommit":{"committedDate":"2022-12-14T21:15:30Z","message":"[Security
Solution] ML job enchancement: update warning message (#147550)\n\n##
Summary\r\n\r\nThese changes update the wording around the ML job
selection in ML rule.\r\nAs we gonna try to start selected job/s in case
those are not running,\r\nwe should accordingly mention that in the
callout below the job\r\nselection
combobox.\r\n\r\nSlack\r\n[discussion](https://elastic.slack.com/archives/C03DXS9UZDF/p1670950300234779)\r\n\r\nMain
ticket:\r\n[#1912](https://github.com/elastic/security-team/issues/1912)\r\n\r\n<img
width=\"1860\" alt=\"Screenshot 2022-12-14 at 17 50
48\"\r\nsrc=\"https://user-images.githubusercontent.com/2700761/207658080-deb81240-3643-4634-aa01-0c9dee59c3b2.png\">\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b74e7f9b8227a3229b0a2b8099df776d1761fb86","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection
Alerts","backport:prev-minor","ci:cloud-deploy","v8.7.0"],"number":147550,"url":"https://github.com/elastic/kibana/pull/147550","mergeCommit":{"message":"[Security
Solution] ML job enchancement: update warning message (#147550)\n\n##
Summary\r\n\r\nThese changes update the wording around the ML job
selection in ML rule.\r\nAs we gonna try to start selected job/s in case
those are not running,\r\nwe should accordingly mention that in the
callout below the job\r\nselection
combobox.\r\n\r\nSlack\r\n[discussion](https://elastic.slack.com/archives/C03DXS9UZDF/p1670950300234779)\r\n\r\nMain
ticket:\r\n[#1912](https://github.com/elastic/security-team/issues/1912)\r\n\r\n<img
width=\"1860\" alt=\"Screenshot 2022-12-14 at 17 50
48\"\r\nsrc=\"https://user-images.githubusercontent.com/2700761/207658080-deb81240-3643-4634-aa01-0c9dee59c3b2.png\">\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b74e7f9b8227a3229b0a2b8099df776d1761fb86"}},"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/147550","number":147550,"mergeCommit":{"message":"[Security
Solution] ML job enchancement: update warning message (#147550)\n\n##
Summary\r\n\r\nThese changes update the wording around the ML job
selection in ML rule.\r\nAs we gonna try to start selected job/s in case
those are not running,\r\nwe should accordingly mention that in the
callout below the job\r\nselection
combobox.\r\n\r\nSlack\r\n[discussion](https://elastic.slack.com/archives/C03DXS9UZDF/p1670950300234779)\r\n\r\nMain
ticket:\r\n[#1912](https://github.com/elastic/security-team/issues/1912)\r\n\r\n<img
width=\"1860\" alt=\"Screenshot 2022-12-14 at 17 50
48\"\r\nsrc=\"https://user-images.githubusercontent.com/2700761/207658080-deb81240-3643-4634-aa01-0c9dee59c3b2.png\">\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"b74e7f9b8227a3229b0a2b8099df776d1761fb86"}}]}]
BACKPORT-->
Co-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>
# Backport
This will backport the following commits from `main` to `8.6`:
- [Add custom Buildkite pipeline for @kbn/handlebars
(#146964)](https://github.com/elastic/kibana/pull/146964)
<!--- Backport version: 8.9.7 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Thomas
Watson","email":"watson@elastic.co"},"sourceCommit":{"committedDate":"2022-12-08T17:28:33Z","message":"Add
custom Buildkite pipeline for @kbn/handlebars (#146964)\n\nCloses
#146963","sha":"39d27bb868ba5e0d544a0fa17afb19abf650c7bf","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v8.7.0"],"number":146964,"url":"https://github.com/elastic/kibana/pull/146964","mergeCommit":{"message":"Add
custom Buildkite pipeline for @kbn/handlebars (#146964)\n\nCloses
#146963","sha":"39d27bb868ba5e0d544a0fa17afb19abf650c7bf"}},"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/146964","number":146964,"mergeCommit":{"message":"Add
custom Buildkite pipeline for @kbn/handlebars (#146964)\n\nCloses
#146963","sha":"39d27bb868ba5e0d544a0fa17afb19abf650c7bf"}}]}]
BACKPORT-->
Co-authored-by: Thomas Watson <watson@elastic.co>
# Backport
This will backport the following commits from `main` to `8.6`:
- [[Security Solution] Adding security solution packages as a dependency
(#146561)](https://github.com/elastic/kibana/pull/146561)
<!--- Backport version: 8.9.7 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Gloria
Hornero","email":"gloria.hornero@elastic.co"},"sourceCommit":{"committedDate":"2022-11-30T14:17:32Z","message":"[Security
Solution] Adding security solution packages as a dependency
(#146561)","sha":"2cb675d8142638f35b8e4abb6e91a0349f9f5c73","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detections
and Resp","Team:Threat Hunting","Team:
SecuritySolution","v8.6.0","v8.7.0"],"number":146561,"url":"https://github.com/elastic/kibana/pull/146561","mergeCommit":{"message":"[Security
Solution] Adding security solution packages as a dependency
(#146561)","sha":"2cb675d8142638f35b8e4abb6e91a0349f9f5c73"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146561","number":146561,"mergeCommit":{"message":"[Security
Solution] Adding security solution packages as a dependency
(#146561)","sha":"2cb675d8142638f35b8e4abb6e91a0349f9f5c73"}}]}]
BACKPORT-->
Co-authored-by: Gloria Hornero <gloria.hornero@elastic.co>
# Backport
This will backport the following commits from `main` to `8.6`:
- [[ci] Shorten timeout for jest and ftr steps
(#146636)](https://github.com/elastic/kibana/pull/146636)
<!--- 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-29T23:26:07Z","message":"[ci]
Shorten timeout for jest and ftr steps (#146636)\n\nWe're seeing
sporadic image outages today causing test steps to reach\r\ntheir max
timeout. Currently we displays warnings on configurations\r\ntaking >40?
minutes. This decreases the error timeout for jest and
ftr\r\nconfigurations to 60
minutes.\r\n\r\n\r\nhttps://buildkite.com/elastic/kibana-on-merge/builds/24321#0184c4b6-ae6c-4777-a637-20d34feba777\r\nhttps://buildkite.com/elastic/kibana-on-merge/builds/24279#0184c3d0-5b12-4c8b-9e8c-6c7b67638661\r\n\r\nI'll
follow up with a separate issue for better error handling during\r\ntest
setup.","sha":"ab2f1fe84a92c87a7d3421c5a40b113b49036dd6","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","v8.6.0","v8.7.0","v8.5.3"],"number":146636,"url":"https://github.com/elastic/kibana/pull/146636","mergeCommit":{"message":"[ci]
Shorten timeout for jest and ftr steps (#146636)\n\nWe're seeing
sporadic image outages today causing test steps to reach\r\ntheir max
timeout. Currently we displays warnings on configurations\r\ntaking >40?
minutes. This decreases the error timeout for jest and
ftr\r\nconfigurations to 60
minutes.\r\n\r\n\r\nhttps://buildkite.com/elastic/kibana-on-merge/builds/24321#0184c4b6-ae6c-4777-a637-20d34feba777\r\nhttps://buildkite.com/elastic/kibana-on-merge/builds/24279#0184c3d0-5b12-4c8b-9e8c-6c7b67638661\r\n\r\nI'll
follow up with a separate issue for better error handling during\r\ntest
setup.","sha":"ab2f1fe84a92c87a7d3421c5a40b113b49036dd6"}},"sourceBranch":"main","suggestedTargetBranches":["8.6","8.5"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146636","number":146636,"mergeCommit":{"message":"[ci]
Shorten timeout for jest and ftr steps (#146636)\n\nWe're seeing
sporadic image outages today causing test steps to reach\r\ntheir max
timeout. Currently we displays warnings on configurations\r\ntaking >40?
minutes. This decreases the error timeout for jest and
ftr\r\nconfigurations to 60
minutes.\r\n\r\n\r\nhttps://buildkite.com/elastic/kibana-on-merge/builds/24321#0184c4b6-ae6c-4777-a637-20d34feba777\r\nhttps://buildkite.com/elastic/kibana-on-merge/builds/24279#0184c3d0-5b12-4c8b-9e8c-6c7b67638661\r\n\r\nI'll
follow up with a separate issue for better error handling during\r\ntest
setup.","sha":"ab2f1fe84a92c87a7d3421c5a40b113b49036dd6"}},{"branch":"8.5","label":"v8.5.3","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This PR disables the jest config on CI for `triggers_actions_ui` plugin
as it has been failing regularly during the entire day.
We are not sure about what is the problem but when running this test
suite the CI is logging `console.error` multiple times across many test
files warning around tests not being properly wrapped or using
unsupported syntax. Those should be fixed by the owning teams and I've
opened an issue for that at
https://github.com/elastic/kibana/issues/145188
## Summary
Last week, our team has dicovered that e2e tests are not executed on CI,
this PR is an attempt to fix that.
Threat intel pipeline should be run whenever the `threat_intelligence`
plugin source or related tests config has changed.
* Separate rule execution logic tests and move bulk of the tests to preview for speed
* Remove bad dependency
* Update unit test snapshot
* Fix flaky test
* Fix another flaky test
* Fix more imports
* Remove superfluous return type
This passes the beats manifest used to download metricbeat and filebeat
for our cloud image to the release-manager CLI. This will be used to
validate that the bundled versions we use match the released versions.
This removes the success requirement in the cloud deployment step for
pull requests.
Creating a cloud deployment from a pull request is optional and not
providing test coverage. Failures are typically upstream and not
something that can be fixed from the Kibana repository.
* [artifacts] Reuse Cloud image for tests
In https://github.com/elastic/kibana/pull/141657 we turned on Cloud
image builds in Kibana CI. This updates the Cloud deployment test suite
to reuse the same image build.
* update comment
* Record e2e tests to Cypress dashboard and enable screenshots and videos
* Delete videos that have no failures or retries
* Set browser witdh and height for tests
* Fix flaky test for storage explorer
* Remove cypress plugin file
* Fix typo in spec name
* Enable test retries
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Adding event log check to CI check.
* Adding event log check to CI check.
* Can I check out ECS
* Checking out specific ECS branch
* Checking out specific ECS branch
* Custom error message
* Reverting event log mapping test changes
* Pinning to 1.8
* Update .buildkite/scripts/steps/checks/event_log.sh
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
* Implement new alert summary widget design and remove chart
* Fix padding issue
* Remove unused translation
* Fix type and test errors
* Fix types and remove extra aggs logic
* Add triggers_actions_ui to storybook list
* Fix small alignment issue by removing extra EuiFlexGroup
* Fix UI issue for small mobile
* Update spacing
Co-authored-by: Kevin Delemme <kdelemme@gmail.com>
Co-authored-by: Kevin Delemme <kdelemme@gmail.com>
Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
* [ftr] add first-class support for playwrite journeys
* [CI] Auto-commit changed files from 'node scripts/generate codeowners'
* fix jest test
* remove ability to customize kibana server args, if we need it we can add it back
* remove dev dir that doesn't exist
* fix typo
* prevent duplicated array converstion logic by sharing flag reader
* remove destructuring of option
* fix scalability config and config_path import
* fix start_servers args and tests
* include simple readme
* fix jest tests and support build re-use when changes are just to jest tests
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>