Commit graph

125 commits

Author SHA1 Message Date
Miriam
d82113483b
[APM] Unskip failing test fleet (#145073)
Closes https://github.com/elastic/kibana/issues/144907
2022-11-14 02:36:47 -07:00
Miriam
df43ad4e1e
[APM] Skip test after change in fleet url params (#144905)
Skipped failing test after change in fleep url params
https://github.com/elastic/kibana/pull/144343

Test will be fixed during test plan
https://github.com/elastic/kibana/issues/144907
2022-11-09 09:57:20 -07:00
Spencer
7d77d39e1f
[ts] set allowJs to true by default (#144281)
* [ts] set allowJs to true by default

* fix scripts/check_ts_projects, original implementation is now wildly inefficient

* produce stats in check_ts_projects to make sure it's actually working

* fix imports
2022-11-01 15:26:44 -07:00
Oliver Gupte
18e37cf639
[APM] Adds button group to navigate to "All services" (#142911)
* [APM] Adds button group to navigate to "All services" (#142084)

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Adds button group legend, fixes spacing and translation IDs

* makes the button group part of the page template

* addresses feedback

* addressed feedback:
- Use 'All services' as the default landing page
    - swap order of button group ->  All services, Service groups
    - move tour from the create button to service group half of the button group
- have service groups always enabled but marked Beta
    - removed some branching logic in routes / page templates
    - add 'Send feedback' link
- fixed service count in cards

* fixes tests and deep links

* change button group to single type

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-10-29 20:09:27 -07:00
spalger
52f2b33a07
[auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
spalger
e5d186a6f0
[ts] stop building @types packages in bootstrap 2022-10-28 14:03:55 -05:00
Giorgos Bamparopoulos
e390743f2e
[APM] Storage explorer improvements (#143179)
* Add total APM size to summary stats

* Show percentage of disk space used by the APM indices compared to the overall storage configured for ES

* Add tips and references section

* Add tooltips to summary metrics

* Add indices breakdown table

* Add callout for cross-cluster search

Co-authored-by: boriskirov <boris.kirov@elastic.co>
2022-10-26 12:01:28 +01:00
Mark Hopkin
2a0a1e6498
[Fleet] Display featured integrations at top of integrations list per category (#142771)
* remove featured integrations

* promote featured integrations to top of results

* fix apm link

* fix types

* improve naming

* trim translations

* show loading while loading cutoms integrations as well

* prevent high number of re-renders of package grid

* Revert "remove featured integrations"

This reverts commit d9ca449aa7.

* put new functionality behind feature flag

* change order of default promoted integrations

* use id as name for ui_link integrations

* fix types
2022-10-11 09:51:10 +01:00
Giorgos Bamparopoulos
4a74dd383c
[APM] Record e2e tests to Cypress dashboard and enable screenshots, videos and test retries (#142398)
* 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>
2022-10-04 20:01:39 +01:00
Giorgos Bamparopoulos
9e88bc978f
Add getByTestSubj command (#142591) 2022-10-04 15:51:26 +01:00
Giorgos Bamparopoulos
e3bf5539a1
[APM] Add e2e tests for storage explorer (#141959)
* Refactor APM user creation and add tests for storage explorer
2022-09-29 09:05:12 +01:00
Søren Louv-Jansen
52e01a3f35
[APM] Fix search bar suggestions (#141101) 2022-09-22 06:52:09 -07:00
renovate[bot]
b0cec96d38
Update dependency cypress to v10 (main) (#133168) 2022-09-13 18:20:20 +02:00
Cauê Marcondes
4255bac100
APM: converting params to destructured obj (#140450)
* service: converting params to destructured obj

* transaction: convert params to destructuring obj

* span/error: convert to destructure obj

* error

* browser

* fixing span
2022-09-13 06:47:09 -07:00
Miriam
b8457c10de
Fix deep-linking and added e2e tests (#140286)
* Fix deep-linking and added e2e tests

* fix url check

* pr suggestions
2022-09-09 09:55:05 +01:00
Constance
98f73d674a
Upgrade EUI to v63.0.6 - updates to new EuiPageTemplate and deprecates old page components (#139524)
* Update all usages of EuiPageTemplate to EuiPageTemplate_Deprecated

* EuiPageContent_Deprecated as EuiPageContent

* EuiPageContentBody_Deprecated as EuiPageContentBody

* EuiPageContentHeader_Deprecated as EuiPageContentHeader

* EuiPageContentHeaderSection_Deprecated as EuiPageContentHeaderSection

* EuiPageSideBar_Deprecated as EuiPageSideBar

* EuiPageContent__Deprecated to EuiPageContent_Deprecated

* Fix rogue semi-colons

* WIP: NoDataConfigPage & NoDataPage converted to new template

- `withSolutionNav` not yet handled

* WIP: KibanaPageTemplateInner converted to use new template

- Pushes existing `pageHeader` prompts onto created EuiPageTemplate.PageHeader
- Uses `isEmptyState` to push `pageHeader` props to EuiPageTemplate.EmptyPrompt instead (if `children` are not supplied)

* WIP: `withSolutionNav` now renders the sidebar content properly

- Collapsing isn’t working (minWidth isn’t updating)

* Fixing stickiness of sidebar

* [Security] Fixed SecuritySolutionTemplateWrapper’s usage

- Moved `bottomBar` to EuiPageTemplate.BottomBar (now contained in just the page contents)
- Change EuiPanel children wrapper with EuiPageTemplate.Section

* [O11y] Wrap `children` with EuiPageTemplate.Section

* Fix getting_started usage

* WIP: Fixing types

* Removing `template` pass through

* Set EUI to 63.0.0

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* More import fixes

* Sidebar component update

* Expand `KibanaPageTemplate` to all namespaced EUI counterparts

- Updated `docs/tutorials` mdx page
- Fixed SolutionNav prop types

* Updated the tutorial mdx page

* [Stack Management] Updated app layout to new template

- Some temporary props applied for BWC until all other pages can be converted
- Converted `API Keys` page’s layout (and especially prompt usags) to new paradigm

* Fix circular dep

* Fix new circular dependency

- copying and pasting types from KibanaPageTemplateProps, but ah well

* [Security Solution] Remove `template` prop - no longer a prop on Kibana/EuiPageTemplate

* [O11y] Allow customizing EuiPageTemplate.Section wrapper

- converts pageBodyProps
- fixes non-centered loading template

* [Enterprise Search] Update page templates

- fix layouts by auto-wrapping an EuiPageSection for padding, while adding a `customPageSections` prop for more custom sections/layouts

- re-center 404 errors

- update tests

* Update KibanaPageTemplate tests

* Update snapshots

* Fix FTR test with removed EUI classNames

* Fix FTR tests with changed kbn classNames

* Update failing dashboard snapshots

- drop shadow changed slightly in EUI

* Fix failing Security Cypress test

* [O11y] Fix Inventory page using deprecated CSS hooks

* [O11y][Uptime] Fix missing bottom bars

- Modifies ObservabilityPageTemplate to accept a `bottomBar` prop (a la the old EuiPageTemplate behavior)

NOTE: This opinionated page layout structure is starting to feel like it could be potentially limiting / have all the same pitfalls the previous EuiPageTemplate did. If so, consider something closer to the Enterprise Search page template conversion (`customPageSections`).

- Misc cleanup: Use `KibanaPageTemplate` over `EuiPageTemplate`

* [O11y] Fix route template typing

- Since theObservabilityPageTemplate is using the new Eui/KibanaPageTemplate, its child templates and types need to be updated accordingly

* Fix broken minWidth behavior

- was an EUI issue that required a patch release
+ update snapshots

* [Security Solution] Type fixes, restore empty state

- Fix empty state logic removed in a previous commit
- bogarts KibanaPageTemplate's `isEmptyState` prop instead of using `template="noData"`

- extend template wrappers to past ...rest to underlying Kibana/EuiPageTemplate

+ replace EuiPageTemplate with KibanaPageTemplate for consistency

* Fix failing synthetics selector

* Grab EUI v63.0.6

- for deprecation tags and section tag support

* Fix Kibana Overview plugin layout

- needs to use KibanaPageTemplate.Section to get padding back

- use `bottomBorder` prop over horizontal rules

- restore previous page color via panelled=false

* Convert Home plugin to new KibanaPageTemplate

- use KibanaPageTemplate.Section instead to preserve page width/paddings

- use `bottomBorder` instead of `EuiHorizontalRule`

- NOTE: This causes margins to decrease slightly from xxl to xl (largest padding available for EuiPageSection) - this can be restored by CSS overrides if desired

- update CSS to preserve previous looks, + convert to logical properties

* [O11y] Fix non-centered empty/loading states

* [O11y] Restore subdued background on various empty state prompts

* [O11y] Fix all instances of views that require a scrollable full-height child

+ restore comment for inventory view

* [O11y][ux] Fix broken sidebar

- The entire app was missing a wrapping EuiProvider, and as such breakpoint utils were not working, and the sidebar was missing

+ misc cleanup
  - remove unnecessary fragment
  - remove role="main" attr - now that EuiPageTemplate sets a `main` tag, they'll conflict
  - add isEmptyState to center loading component

* [APM Cypress tests] harden flaky test

* [APM Cypress tests] Fix failing Cypress test, again

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-07 15:35:23 -05:00
Miriam
de9d7aba3c
[APM] Add tips and best practices to e2e tests readme (#140070)
* Add tips and best practices to e2e tests readme

* review suggestions
2022-09-06 14:28:32 +01:00
Miriam
f54349f26b
Enable skipped e2e tests (#139912)
* Enable skipped e2e tests

* review comments

* return request

* return promise
2022-09-06 09:11:27 +01:00
Søren Louv-Jansen
9be0c883ed
[APM] Cypress: Enable data streams and refactor runner (#139322) 2022-08-24 21:51:34 +02:00
Søren Louv-Jansen
50821db39c
[APM] Improve Cypress tests with sessions and better async handling (#139278) 2022-08-23 20:56:55 +02:00
Spencer
9003353729
rename @elastic/* packages to @kbn/* (#138957)
* rename @elastic/* packages to @kbn/*

* update yarn.lock

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* update lint task

* review feedback

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-18 08:54:42 -07:00
Miriam
ad135e9610
[APM] Remove infrastructure feature flag from kibana advance settings (#138892)
* Remove infrastructure feature flag from advance settings

* add setting migration to remove it from existing config

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-18 16:24:02 +01:00
spalger
db6ce7fb33 skip flaky apm suites 2022-08-17 13:42:47 -07:00
Constance
7b11420ee9
Upgrade EUI to v62.0.3 (#138351)
* Upgrade to v62.0.3

* Update EUI i18n tokens

* Update html string snapshots

- Emotion CSS hash changed

* [EuiIcon] Update instances of `keyboardShortcut` icons to `keyboard`

* [EuiErrorBoundary] Update snapshots from Emotion conversion

* [EuiImage] Update snapshots, tests, and CSS to account for Emotion conversion

* [EuiImage][RTL] Fix test failures caused by EuiImage changes

* [EuiCommentList] Deprecate EuiCommentProps.type

* [EuiCommentList] Rename `timelineIcon` prop to `timelineAvatar`

- see https://github.com/elastic/eui/pull/6071

* [EuiCommentList] Fix selectors deprecated by Emotion conversion

* [EuiPopover][EuiCommentEvent][Enzyme] Fix mounted test failures caused by Emotion conversions

- Mounting displays the Emotion wrapper with the data-test-subj on them - we need to specify the output div renders in order for text assertions to be correct

* [EuiPopover] Deprecate `initialFocus={false}` as an option

see https://github.com/elastic/eui/pull/6044

* [EuiPopover] Rename `display=inlineBlock` to `inline-block`

- see https://github.com/elastic/eui/pull/5977

* [EuiPopover] Update snapshots from Emotion conversion

* [EuiPopover] Replace deprecated `.euiPopover__panel-isOpen` class with new `[data-popover-open]` attribute

* [EuiPopover][RTL] Fix test failures caused by not waiting for EuiPopover animation/transition

* Skip failing a11y tests

- test w/ similar error already skipped in another test above
- requires closing the popover for next test to pass
- not sure why delete action is no longer available

* Fix failing Security Cypress tests

* Attempt to squash flaky FTR tests around Add Filter popover

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-08-12 16:40:58 -07:00
Miriam
2b5822e960
[APM] Add e2e test for infrastructure page (#136608)
* Add e2e test for infrastructure page

* update test after Beta changes
2022-08-09 15:36:38 +01:00
Mark Hopkin
9f8a2c603d
[Fleet][Tests] Package install signature verification API tests (#136947)
* add valid signature test package

* add test signatures and readme for signature generation

* mount zip packages as part of tests

* amend README

* Verified package test working

* Rename valid to verified

* Add test for unverified content

* add test for package verified with wrong key

* Check error types in 400 response

* Check saved object keys as part of tests

* Remove wrong_ keys

* use release docker image

* update package path for v2 registry

* force install endpoint package

* fix package policy upgrade on setup test

* formatting

* move back to production registry

* Update all registry configs to use new package directory

* use specific docker image not tag

* fix agent policy tests

* Get latest experimental endpoint version

* skip impossible fleet test

* update synthetics to use same registry image as fleet

* fix telemetry tests

* remove experimental flag from test config

* add force install confirm to synthetics tests

* add origin to expected policy data

* add test subj to force install modal

* Install latest fleet_server package not fixed version

* install latest system pkg

* fix types

* fix deprecated API calls
2022-08-03 10:34:32 -07:00
Cauê Marcondes
3e9923aa06
[APM] Fixing infrastructure e2e test (#137780)
* [APM] Fixing infrastructure e2e test

* updating PR
2022-08-02 14:47:50 -07:00
Cauê Marcondes
788d688f1a
[APM] e2e tests fix (Comparison feature flag) (#137209)
* call api to update settings

* fixing comparison test

* adding return

* addressing pr comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-02 12:10:41 -07:00
Cauê Marcondes
5a277a502a
[APM] skipping flaky test (#137111)
* [APM] skipping flaky test

* [APM] skipping flaky test

* [APM] skipping flaky test
2022-07-26 09:15:51 -04:00
Oliver Gupte
bd5abb1c80
[APM] Fix custom link filter select value (#137025)
* [APM] Fix custom link filters to clear values after selecting field (#126066)

* adds line comment

* adds e2e test to validate the fix
2022-07-25 11:16:28 -04:00
Miriam
ad8ec922a6
Add Beta label to Infrastructure tab (#136710)
* Add Beta label to Infrastructure tab

* improve BetaBadge and reuse TechnicalPreviewBadge

* use append prop for tabs with beta or technical preview badge
2022-07-22 09:25:18 +01:00
Giorgos Bamparopoulos
5c56102bf0
Top erroneous transactions (#134929)
* Add table for top erroneous transactions in error detail page

* Add table for top errors in transaction details page

* Add top errors to a new row on small viewports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-18 08:57:54 -07:00
Cauê Marcondes
031729e81a
[APM] Rename backends to dependencies in URLs and APIs (#136330)
* renaming api endpoints

* renaming route functions

* GET /internal/apm/dependencies/top_dependencies

* GET /internal/apm/dependencies/upstream_services

* server changes

* renaming route params

* refactoring

* refactoring client

* refactogin client

* refactoring routes

* fixing redirection

* refactoring component

* renaming nodetype

* renaming backend link

* backend template

* renaming backends operations

* dependency operation

* DependencyMetricCharts

* DependencyMetricCharts

* DependencyOperationDetailView

* DependencyDetailOverview

* remaining

* updating tests and i18n
2022-07-18 11:28:54 -04:00
Trevor Pierce
e21e5069a7
Bumping EUI to v60.1.2. (#135373)
* Bumping EUI to v60.1.0.

* Bumping to bugfixed v60.1.1.

* Updating snapshots for EUI Emotion changes.

* Updating a theme icon size declaration.

* Updating tests for Emotion and new EUI theme objects.

* Updating Lens drag and drop to account for Emotion wrapper.
* Updating icon size in EUI theme object for test.
* Updating Lens Editor Frame test to assert 1 click instead of 2.

* Updating two Jest tests for Emotion extra wrapper.

* Changing a Cypress selector for Emotion classnames.

* Update removed EuiIcon classes

-isLoaded was deprecated in favor of data-attrs - hook should still work

* Remove static EuiIcon classes from static SVG

- these classNames no longer output meaningful CSS and should not be used

* Fix theme JSON imports not to rely on any iconSizes keys

- (which will soon be deprecated by Emotion conversion)
- use the generic euiSizes instead, which will likely be the last to be deprecated

* Fix one more euiIcon-isLoaded className change

- we should be using the `data-is-loaded` attribute that it was switched to

* Bumping EUI to 60.1.2 patch release.

* Updating Storyshots for EUI 60.1.2.

* Removing two assertions from instances_table.spec to match localhost instance UI.

Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-11 16:33:16 -05:00
Giorgos Bamparopoulos
b434817ef5
[APM] Skip Cypress flaky tests (#136118)
* Skip APM Cypress flaky tests
2022-07-11 19:12:53 +01:00
Cauê Marcondes
b870b621fd
[APM] Service inventory: detailed stats fetched for all services (#134844)
* fixing service inventory detailed api call

* fixing error overview page

* fixing test

* addressing pr comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-24 07:29:47 -07:00
Giorgos Bamparopoulos
76e2d0fe62
[APM] Add OpenTelemetry instructions to APM tutorial (#134451)
* Add config settings for OpenTelemetry to the APM tutorial

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
2022-06-23 09:53:58 -07:00
Søren Louv-Jansen
60e7f1dcd1
Rename viewer_user to viewer (#134294) 2022-06-22 20:39:18 +02:00
Katerina Patticha
fd4b8e339a
[APM] Skip integration page test (#134100) 2022-06-09 13:19:32 -07:00
Katerina Patticha
a3268dece2
[APM] Fix apm e2e tests (#133941)
* Fix integration policy e2e test

* Skip integration e2e

* Use type-only import for synthtrace package

* Fix synthrace script

* Revert "Skip integration e2e"

This reverts commit a5992d5ba9.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2022-06-09 14:39:39 +02:00
Katerina Patticha
9d860432e8
[APM] Display ENVIRONMENT_ALL label instead of value (#133616)
* Fix ENVIRONMENT_ALL label

* Add e2e test

* Fix all option
2022-06-07 12:16:07 +02:00
Younes meliani
71b88eb2ff
add pprof_enabled toggle to the APM integrations UI (#132710)
add pprof_enabled toggle to the APM integrations UI
2022-05-25 20:27:07 +02:00
Søren Louv-Jansen
c1b77b93b6
[APM] Remove mentions of apm_user (#132790) 2022-05-25 12:07:00 +02:00
Quynh Nguyen
c1d0ec5a0e
[APM] Add ML expected model bounds as an option to Comparison controls (#132456)
* [ML] Add bounds options

* [ML] Renable anomalyChartTimeseries boundaries

* [ML] Make it into string

* [ML] Make it into string

* Match colors

* [ML] Add comparisonEnabledRt

* [ML] Fix types, tests

* [ML] Revert json bucket span change

* [ML] Add bounds options

* [ML] Renable anomalyChartTimeseries boundaries

* [ML] Make it into string

* [ML] Make it into string

* Match colors

* [ML] Add comparisonEnabledRt

* [ML] Fix types, tests

* [ML] Revert json bucket span change

* Refactor to use offset with TimeRangeComparisonEnum.ExpectedBounds

* Change comparisonColor to be part of anomalySeries

* Fix i18n

* Add Comparison text to replace 'Previous period'

* Fix expected bounds legend default to first

* Hide values that are N/A in the tooltips

* Fix i18n, color, and null values in tooltips

* Refactor to use preferredEnvironment

* Don't disable expected bounds by default

* Match color of expected bounds with time comparison color

* Fix tests

* Use bucket_span as minBucketSize for anomaly results

* Fix previousPeriodColor undefined for latency chart

* Remove 'Comparison:' in legend

* Change anomalyTimeseriesColor to use currentPeriod to match stuff

* Fix type error

* Fix lower model bounds

* Add comments

* Remove fit

* Remove comparisonEnabledRt

* Change text

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-24 18:01:47 -05:00
Miriam
e126ccc56f
[APM] Add infrastructure metrics tables (#130223)
* [APM] Add infrastructure metrics tables

* hide container and pods tab when no data, added timepicker

* add container ids and pod names to host filter

* fix es types

* fix i18n

* wip

* added empty and failure prompts

* added new route to get host names

* copy changes and components for empty/failure state

* improve gethostnames query

* delete infra host route and move request to server side

* PR comments

* remove prop and the export from getHostNames

* update infra components, improve tables rendering UI

* fix useTabs test

Co-authored-by: Boris Kirov <borisasenovkirov@gmail.com>
2022-05-24 11:59:24 +03:00
Dario Gieselaar
c16bcdc15d
[APM] Trace explorer (#131897)
* [APM] Trace explorer

* Make sure tabs work on trace explorer

* Add links to trace explorer from error detail view & service map

* Add API tests

* Fix failing E2E test

* don't select edges when explorer is disabled

* Fix lint error

* Update x-pack/plugins/observability/server/ui_settings.ts

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>

* Review feedback

* Rename const in API tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2022-05-23 15:27:09 +02:00
Cauê Marcondes
d3b9f3285e
[APM] Span link (#126630)
* adding span links data generation

* fixing span links synthtrace

* adding span links

* span links route

* fixing span links new scenario

* adding span links

* improved tab structure

* span links table

* adding span links data generation

* fixing span links synthtrace

* adding span links

* span links route

* fixing span links new scenario

* adding span links

* span links table

* improved tab structure

* adjusting table

* fixing ts issue

* filtering data within timerange

* fixing ts

* fixing ci

* disabling select option when no link available

* adding api tests

* fixing tests

* e2e tests

* fixing too_many_nested_clauses issue

* refactoring apis

* api tests

* fixing e2e tests

* fixing links

* renaming link

* fixing tests

* addressing PR comments

* fixing test

* fixing ci

* fixing ci

* addressing pr comments

* passing processor event to incoming links API

* updating api tests

* renaming incoming and outgoing

* wrapping type into details property

* renaming incoming/outgoing

* pr comments

* adding processor event to query

* renaming

* new API tests

* import fix

* renaming

* adding e2e tests

* addressing pr changes

* changing link

* Adding filter on children fetch

* renaming services on test

* renaming

Co-authored-by: Boris Kirov <borisasenovkirov@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-16 14:40:51 -04:00
Spencer
542b381fa5
[ftr] automatically determine config run order (#130983)
* [ftr] automatically determine config run order

* split lens config into two groups

* support ftr configs always running against CI

* Split detection_engine_api_integration rule exception list tests

* Add configs from previous commit

* [ftr] remove testMetadata and maintain a unique lifecycle instance per run

* Revert "[ftr] remove testMetadata and maintain a unique lifecycle instance per run"

This reverts commit d2b4fdb824.

* Split alerting_api_integration/security_and_spaces tests

* Add groups to yaml

* Revert "Revert "[ftr] remove testMetadata and maintain a unique lifecycle instance per run""

This reverts commit 56232eea68.

* stop ES more forcefully and fix timeout

* only cleanup lifecycle phases when the cleanup is totally complete

* only use kill when cleaning up an esTestInstance

* fix broken import

* fix runOptions.alwaysUseSource implementation

* fix config access

* fix x-pack/ccs config

* fix ml import file paths

* update kibana build id

* revert array.concat() change

* fix baseConfig usage

* fix pie chart data

* split up maps tests

* pull in all of group5 so that es archives are loaded correctly

* add to ftr configs.yml

* fix pie chart data without breaking legacy version

* fix more pie_chart stuff in new vis lib

* restore normal PR tasks

* bump kibana-buildkite-library

* remove ciGroup validation

* remove the script which is no longer called from checks.sh

* [CI] Auto-commit changed files from 'yarn kbn run build -i @kbn/pm'

* adapt flaky test runner scripts to handle ftrConfig paths

* fix types in alerting_api_integration

* improve flaky config parsing and use non-local var name for passing explicit configs to ftr_configs.sh

* Split xpack dashboard tests

* Add configs

* [flaky] remove key from ftr-config steps

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* restore cypress builds

* remove ciGroups from FTR config files

* fixup some docs

* add temporary script to hunt for FTR config files

* use config.base.js naming for clarity

* use script to power ftr_configs.yml

* remove usage of removed x-pack/scripts/functional_tests

* fix test names in dashboard snapshots

* bump kibana-buildkite-library

* Try retrying only failed configs

* be a little quieter about trying to get testStats from configs with testRunners defined

* Remove test code

* bump kibana-buildkite-library

* update es_snapshot and on_merge jobs too

* track duration and exit code for each config and print it at the end of the script

* store results in order, rather than by key, in case there are duplicates in $config

* bash is hard

* fix env source and use +e rather than disabling e for whole file

* bash sucks

* print config summary in jest jobs too

* define results in jest_parallel.sh

* simplify config summary print, format times a little better

* fix reference to unbound time variable, use better variable name

* skip the newline between each result

* finish with the nitpicking

* sync changes with ftr_configs.sh

* refuse to execute config files which aren't listed in the .buildkite/ftr_configs.yml

* fix config.edge.js base config import paths

* fix some readmes

* resolve paths from ftr_configs manifest

* fix readConfigFile tests

* just allow __fixtures__ configs

* list a few more cypress config files

* install the main branch of kibana-buildkite-library

* split up lens group1

* move ml data_visualizer tests to their own config

* fix import paths

* fix more imports

* install specific commit of buildkite-pipeline-library

* sort configs in ftr_configs.yml

* bump kibana-buildkite-library

* remove temporary script

* fix env var for limiting config types

* Update docs/developer/contributing/development-functional-tests.asciidoc

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>

* produce a JUnit report for saved objects field count

* apply standard concurrency limits from flaky test runner

* support customizing FTR concurrency via the env

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2022-05-04 17:05:58 -05:00
Cauê Marcondes
0c96914837
[APM] Fixing service overview test (#131454)
* skipping flaky test

* Fix environment suggestion test

* removing comment

Co-authored-by: Kate Patticha <aikaterini.patticha@elastic.co>
2022-05-04 07:41:26 -07:00
Katerina Patticha
abd615a15f
[APM] Replace environment dropdown with SuggestionsSelect
* Extend /suggestions api to accept range query

* Add new endpoint /suggestions_with_terms

* Use suggestionSelect for environment filter

* Clean up route

* UI tweaks for the EuiComboBox

* Make suggestion endpoint for service enrvironment explicit

- follow same naming convention for fields and values

* Fix deps

* Replace query_string with wildcard query

* Rename field to fieldName

* Introduce new enpoint has not defined environment

* Show Not defined option in environment filter

* get environment label for anomaly timeseries

* Fix types

* Select environment if there is only one available

* Fix tests

* move getPreferredServiceAnomalyTimeseries

* Remove redirect and get environment list from context

* Remove endpoint for not defined option

* Suggestions route fallbacks to use terms aggregation when service name is set

* Set default ranges (now-24h)

* Get environment list from context

* Fix types

* State should be handled by consuming component

* Use searchAggregatedTransactions

* Make ranges required for /suggestion endpoint

- the client set a default 24h-now if no URL is set

* Clean up files by separating the helper

* Fix debounce handler

- remove unused initial state

* Add option to run APM cypress tests in the flaky test runner

* Clean up environment context

- context will be responsible only for returning environment(s) info
- removing additional info not related to the context

* Rename event handlers

* Consuming component sets ranges for the suggestions select

* Immediately resolve the promise with empty response in case searchValue is empty

* Fix tests

* Get serviceName from useApmParams

* Fix type

* Initialize time ranges inside the components

* Remove redundant optimization

* Fix eslint import errors
2022-05-02 02:41:09 -07:00