Commit graph

47659 commits

Author SHA1 Message Date
Gloria Hornero
0e1d42d400
skips exceptions tests (#116568) 2021-10-28 12:11:36 +01:00
Dzmitry Lemechko
f79b94faed
[load testing] add default package to simulation class (#116375)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-28 13:11:24 +02:00
Shahzad
4a92e3bc36
[Exploratory View]added loading state for metric selector (#115748)
Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-10-28 11:36:27 +01:00
spalger
acf0426194 skip flaky suite (#89369) 2021-10-28 09:19:16 +00:00
spalger
8a34170b2f skip flaky suite (#90536) 2021-10-28 09:13:26 +00:00
spalger
c760db6a01 skip flaky suite (#115307) 2021-10-28 09:08:47 +00:00
Giorgos Bamparopoulos
e0764bd1d0
Update examples in the elastic-apm-synthtrace CLI section (#116574) 2021-10-28 05:04:01 -04:00
spalger
42857a4da9 skip flaky suite (#116537) 2021-10-28 09:03:16 +00:00
Rudolf Meijering
2e4c87211c
[docs] Fix anchor link to saved objects migrations testing (#116427) 2021-10-28 10:36:57 +02:00
Søren Louv-Jansen
01503c5d5d
Add stale bot for APM issues (#116432)
* Add stale bot for APM issues

* Update stale.yml

* Update stale.yml
2021-10-28 04:14:40 -04:00
Joe Reuter
2b15dc9b10
retry reading suggestion list (#116405)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-28 09:36:52 +02:00
Frank Hassanabad
3424f94fb4
Unskips tests and fixes a few of them. (#116469)
## Summary

* For the test of `create_endpoint_exceptions.ts` code was changed to try to reduce/remove flake. I put the code back to where it was and with the sorting introduced it all should pass
* Added `await waitForSignalsToBePresent(supertest, 1, [id]);` to areas of code that were missing.
* The `.flat` should be an added layer of protection for flakes.


### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-10-27 21:31:18 -06:00
Tiago Costa
a78e50ca94
skip flaky suite (#116059) 2021-10-28 03:13:46 +01:00
Nathan L Smith
cca0a082d2
e2e tests for dependencies (#116369)
Also fix a link in testing readme.

References #116290.
2021-10-27 21:07:08 -05:00
Spencer
9e6e84571f
Revert "[Canvas] By-Value Embeddables (#113827)" (#116527)
This reverts commit bacd7f91dd.

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-10-27 20:38:43 -05:00
Nicolas Chaulet
ede3882e18
[Fleet] Fix back button when adding integration from multiple integrations package (#116352) 2021-10-28 01:55:23 +01:00
Joey F. Poon
4efabacd4e
[Security Solution] fix endpoint being visible after unenrolling agent (#116372)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 17:38:53 -05:00
Spencer
17df3a2654
[ci] bump timeout for cigroups until we figure out the slowdown (#116506)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-10-27 17:03:37 -05:00
spalger
83288af8bd skip failing suite (#72874) 2021-10-27 21:34:41 +00:00
Devon Thomson
dc2bea778c
Lowered bundle size limits for dashboard and presentationUtil (#116478) 2021-10-27 16:43:00 -04:00
Tiago Costa
edc8f9583b
chore(NA): bump version to 8.1.0 (#116429)
* chore(NA): bump version to 8.1.0

* chore(NA): update non supported plugins

* chore(NA): update non supported plugins

* chore(NA): skip failing tests

* chore(NA): update jest snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 21:24:48 +01:00
Tiago Costa
9978803893
chore(NA): adds backport config for 8.1.0 bump (#116431) 2021-10-27 21:24:35 +01:00
Frank Hassanabad
ae7b5a9be9
[Security Solutions] Adds bsearch service to FTR e2e tests to reduce flake, boilerplate, and technique choices (#116211)
## Summary

Fixes flake tests of:
https://github.com/elastic/kibana/issues/115918
https://github.com/elastic/kibana/issues/103273
https://github.com/elastic/kibana/issues/108640
https://github.com/elastic/kibana/issues/109447
https://github.com/elastic/kibana/issues/100630
https://github.com/elastic/kibana/issues/94535
https://github.com/elastic/kibana/issues/104260

Security solution has been using `bsearch` and has encountered flake in various forms. Different developers have been fixing the flake in a few odd ways (myself included) which aren't 100%. This PR introduces a once-in-for-all REST API retry service called `bsearch` which will query `bsearch` and if `bsearch` is not completed because of async occurring due to slower CI runtimes it will continuously call into the `bsearch` with the correct API to ensure it gets a complete response before returning.


## Usage

Anyone can use this service like so:
```ts
const bsearch = getService('bsearch');
const response = await bsearch.send<MyType>({
 supertest,
 options: {
   defaultIndex: ['large_volume_dns_data'],
}
  strategy: 'securitySolutionSearchStrategy',
});
```

If you're using a custom auth then you can set that beforehand like so:
```ts
const bsearch = getService('bsearch');
const supertestWithoutAuth = getService('supertestWithoutAuth');
const supertest supertestWithoutAuth.auth(username, password);
const response = await bsearch.send<MyType>({
 supertest,
 options: {
   defaultIndex: ['large_volume_dns_data'],
  }
  strategy: 'securitySolutionSearchStrategy',
});
```

## Misconceptions in the tests leading to flake
* Can you just call the bsearch REST API and it will always return data first time? Not always true, as when CI slows down or data increases `bsearch` will give you back an async reference and then your test will blow up.
* Can we wrap the REST API in `retry` to fix the flake? Not always but mostly true, as when CI slows down or data increases `bsearch` could return the async version continuously which could then fail your test. It's also tedious to tell everyone in code reviews to wrap everything in `retry` instead of just fixing it with a service as well as inform new people why we are constantly wrapping these tests in `retry`.
* Can we manually parse the `bsearch` if it has `async` for each test? This is true but is error prone and I did this for one test and it's ugly and I had issues as I have to wrap 2 things in `retry` and test several conditions. Also it's harder for people to read the tests rather than just reading there is a service call. Also people in code reviews missed where I had bugs with it. Also lots of boiler plate.
* Can we just increase the timeout with `wait_for_completion_timeout` and the tests will pass for sure then? Not true today but maybe true later, as this hasn't been added as plumbing yet. See this [open ticket](https://github.com/elastic/kibana/issues/107241). Even if it is and we increase the timeout to a very large number bsearch might return with an `async` or you might want to test the `async` path. Either way, if/when we add the ability we can increase it within 1 spot which is this service for everyone rather than going to each individual test to add it. If/when it's added if people don't use the bsearch service we can remove it later if we find this is deterministic enough and no one wants to test bsearch features with their strategies down the road.

## Manual test of bsearch service
If you want to manually watch the bsearch operate as if the CI system is running slow or to cause an `async` manually you manually modify this setting here:
https://github.com/elastic/kibana/blob/master/src/plugins/data/server/search/strategies/ese_search/request_utils.ts#L61

To be of a lower number such as `1ms` and then you will see it enter the `async` code within `bsearch` consistently

## Reference PRs
We cannot set the wait_for_complete just yet
https://github.com/elastic/kibana/issues/107241 so we decided this was the best way to reduce flake for testing for now. 

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-10-27 14:22:45 -06:00
Byron Hulcher
c3f207a071
Revert "[App Search] Load curation settings at root /curations/ path (#115690)" (#116462) 2021-10-27 21:18:19 +01:00
Gloria Hornero
136d322bdd
adds lists plugin to security solution cypress tests execution (#116442) 2021-10-27 20:55:55 +01:00
Kaarina Tungseth
bd2a7cefa5
[DOCS] Fixes monitoring setting (#116309) 2021-10-27 13:42:11 -05:00
Tyler Smalley
017fcac4b9
Removes functional tests using freeze API (#116373)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-27 10:53:07 -07:00
Nick Partridge
6b4d9dd1a9
[Charts] Multi-layer time axis (#115853)
This commit introduces the multi-layer time axis in Discover, Lens, Visualize, TSVB.
It adds visualization:useLegacyTimeAxis advanced settings under charts plugin to toggle legacy time axis.

The new multi-layer time axis is introduced in @elastic/charts https://elastic.github.io/elastic-charts/?path=/story/area-chart--timeslip and was demoed as part of the Kibana Demo Days.

It is the outcome of the research done in elastic/elastic-charts#1310 related to improving the time axis solving the following problems:
- sparse time labels that can be far apart
- unclear where time point is on the label (the middle)
- difficult / tedious to read due to redundant information and small fonts
- resolution is not explicit (is it hours of days or days themselves)
2021-10-27 19:22:35 +02:00
Rudolf Meijering
e0fe09607f
Unskip migrations actions integration tests (#116285) 2021-10-27 19:11:08 +02:00
spalger
d6f9adf73a skip flaky suite (#116463) 2021-10-27 16:29:41 +00:00
Luke Elmers
4be1d8f438
[docs] Re-add experimental label to dashboard import/export API docs. (#116348) 2021-10-27 08:46:53 -06:00
Gloria Hornero
9330ea7d97
[Security Solution] Skips EQL test (#116456) 2021-10-27 09:44:03 -05:00
Gloria Hornero
6fbda831b5
unskips exceptions tests (#116149) 2021-10-27 10:04:28 -04:00
Tiago Costa
bed54a9d45
skip flaky suite (#109943) 2021-10-27 14:43:03 +01:00
Tiago Costa
76e65967fc
skip flaky suite (#116414) 2021-10-27 14:27:59 +01:00
Felix Stürmer
34b22578d6
[Logs UI] [Metrics UI] Remove deprecated alias config entries (#115974)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 15:20:19 +02:00
Paul Tavares
c566e048e8
make EndpointPrivileges object immutable (#116299) 2021-10-27 09:07:19 -04:00
Paul Tavares
8998655fcb
Fix driver to the policy details loading state (#116208) 2021-10-27 09:05:40 -04:00
Byron Hulcher
0381326ede
Retrieve search results on Relevance Tuning page whenever precision or query is changed (#116316) 2021-10-27 08:52:14 -04:00
Nathan Reese
3b3c4b2f4a
[maps] Use desaturated map tiles instead of bright map tiles by default (#116179)
* [maps] default to desaturated tiles in light mode

* fix jest and functional tests

* eslint

* update migrations version expect

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 06:34:07 -06:00
Dima Arnautov
37632f1798
[ML] Nodes overview for the Model Management page (#116361)
* [ML] Nodes overview for the Model Management page  (#115772)

* [ML] trained models tab

* [ML] wip nodes list

* [ML] add types

* [ML] add types

* [ML] node expanded row

* [ML] wip show memory usage

* [ML] refactor, use model_memory_limit for dfa jobs

* [ML] fix refresh button

* [ML] add process memory overhead

* [ML] trained models memory overview

* [ML] add jvm size, remove node props from the response

* [ML] fix tab name

* [ML] custom colors for the bar chart

* [ML] sub jvm size

* [ML] updates for the model list

* [ML] apply native process overhead

* [ML]add adjusted_total_in_bytes

* [ML] start and stop deployment

* [ML] fix default sorting

* [ML] fix types issues

* [ML] fix const

* [ML] remove unused i18n strings

* [ML] fix lint

* [ML] extra custom URLs test

* [ML] update tests for model provider

* [ML] add node routing state info

* [ML] fix functional tests

* [ML] update for es response

* [ML] GetTrainedModelDeploymentStats

* [ML] add deployment stats

* [ML] add spacer

* [ML] disable stop allocation for models with pipelines

* [ML] fix type

* [ML] add beta label

* [ML] move beta label

* [ML] rename model_size prop

* [ML] update tooltip header

* [ML] update text

* [ML] remove ts ignore

* [ML] update types

* remove commented code

* replace toast notification service

* remove ts-ignore

* remove empty panel

* add comments, update test subjects

* fix ts error

* update comment

* fix applying memory overhead

* Revert "fix applying memory overhead"

This reverts commit 0cf38fbead.

* fix type, remove ts-ignore

* add todo comment

(cherry picked from commit 605e9e2d3d)

* updates for the latest elasticsearch client

* hide allocated models when missing

* [ML] Update jest test mock

Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co>
2021-10-27 11:29:57 +02:00
Shahzad
98231f45ac
[Uptime] Uptime index config using kibana.yml (#115775)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 10:15:21 +02:00
Devon Thomson
0b2dcdf408
[Controls] Dashboard Integration (#115991)
Create filters when controls change. Integrated controls on dashboard behind lab
2021-10-27 03:55:55 -04:00
Tyler Smalley
910a5cae5f skip flaky suite (#104260) 2021-10-26 22:30:55 -07:00
Chenhui Wang
306a7cb0f4
Include Files in GitHub UI (#115956) 2021-10-27 12:16:05 +08:00
Tyler Smalley
4b25b00fde skip flaky suite (#116060) 2021-10-26 18:00:25 -07:00
Catherine Liu
bacd7f91dd
[Canvas] By-Value Embeddables (#113827)
* [Canvas] Generic embeddable function (#104499)

* Created generic embeddable function

    Fixed telemetry

    Updates expression on input change

    Fixed ts errors

Store embeddable input to expression

Added lib functions

Added comments

Fixed type errors

Fixed ts errors

Clean up

Removed extraneous import

Added context type to embeddable function def

Fix import

Update encode/decode fns

Moved embeddable data url lib file

Added embeddable test

Updated comment

* Fix reference extract/inject in embeddable fn

* Simplify embeddable toExpression

* Moved labsService to flyout.tsx

* Added comment

* [Canvas] Adds Save and Return Workflow (#111411)

* [Canvas] Adds editor menu to Canvas (#113194)

* Merge existing embeddable input with incoming embeddable input (#116026)

* [Canvas] Extract and inject references for by-value embeddables (#115124)

* Extract/inject references for by-value embeddables in embeddable function

Fixed server interpreter setup

Register external functions in canvas_plugin_src plugin def

* Fixed ref name in embeddable.inject

* Fixed ts errors

* Fix missing type error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 17:25:06 -07:00
Tyler Smalley
01292cec67 Skip failing test (#115366)
https://github.com/elastic/kibana/issues/115366

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-26 17:23:24 -07:00
Patryk Kopyciński
82caede4fa
[Osquery] Fix live query search doesn't return relevant results for agents (#116332) 2021-10-27 01:04:26 +01:00
Caroline Horn
5666bd79fd
[Integrations] Added link in old Add Data description and fixed alignment in cards (#116213) 2021-10-26 19:46:51 -04:00