Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APM] Remove rate aggregation #112342

Closed
wants to merge 10,000 commits into from

Conversation

cauemarcondes
Copy link
Contributor

Related to #112240

Remove rate aggs and calculate throughput manually.

kibanamachine and others added 30 commits August 25, 2021 12:52
…atures to index names (elastic#109567) (elastic#110067)

**Ticket:** elastic#102089

🚨 **This PR is critical for Observability 7.15** 🚨

## Summary

This PR introduces changes that fix the usage of alerts-as-data index naming in RBAC. It builds on top of elastic#109346 and replaces elastic#108872.

TODO:

- [x] Address elastic#109346 (review)
- [x] Make changes to `AlertsClient.getAuthorizedAlertsIndices()` so it starts using `RuleDataService` to get index names by feature ids.
- [x] Delete the hardcoded `mapConsumerToIndexName` where we had incorrect index names.
- [x] Close elastic#108872

### Checklist

Delete any items that are not applicable to this PR.

- [ ] [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

Co-authored-by: Georgii Gorbachev <[email protected]>
…lastic#109776) (elastic#110074)

* move activity log paging method close to call api method

refs 417d093

* add middleware additional activity log tests

* add a more specific server side test for activity log actions and responses

refs elastic/pull/101032

* remove obsolete server side audit log index mock method

refs elastic/pull/101032

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Ashokaditya <[email protected]>
…ic#110052) (elastic#110085)

* [ML] add mappings for the new rule type

* [ML] add telemetry for enabled health checks

* [ML] update xpack_plugins.json

Co-authored-by: Dima Arnautov <[email protected]>
…lastic#110066) (elastic#110100)

* fix: use package policy ID when checking hasUpgrade

* fix: latest package version broken link

* refactor: use set for collecting unique namespace values

Co-authored-by: Mark Hopkin <[email protected]>
… Host option is missing from alert details take actions menu (elastic#109991) (elastic#110105)

Co-authored-by: Candace Park <[email protected]>
… transpiler (elastic#109745) (elastic#110103)

* chore(NA): moving @kbn/securitysolution-io-ts-alerting-types to babel transpiler

* chore(NA): correct deps on runtime

Co-authored-by: Tiago Costa <[email protected]>
…c#109276) (elastic#110125)

**Ticket:** elastic#109293

🚨 **This PR is critical for Observability 7.15** 🚨

## Summary

This PR fixes the indexing implementation in `rule_registry`. It implements the suggestions for backwards compatibility described in the ticket:

- changes the naming scheme and introduces the concept of "backing indices", so that names of the concrete ("backing") indices != names of their aliases
- adds versioning based on the current Kibana version

TODO:

- [x] Change index naming (implement the concept of backing indices)
- [x] Include Kibana version into the index template metadata
- [x] Include Kibana version into the document fields
- [x] Remove `version` from `IndexOptions` (parameters provided by solutions/plugins when initializing alerts-as-data indices)
- [x] Fix CI

### Checklist

- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [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

Co-authored-by: Georgii Gorbachev <[email protected]>
…09887) (elastic#110149)

* Fix upgrades for packages with restructured inputs

Addresses errors surfaced when testing upgrades from AWS 0.6.1 to 0.10.4.
Namely, when inputs are removed from a package between versions,we were
initially throwing errors for each input in the new package that didn't
exist on the outdated package version. Now, we instead simply skip over
cases like this in which an input no longer exists on the new package version.

* Add basic test cases for restructured packages

Co-authored-by: Kyle Pollich <[email protected]>
…dices (elastic#109976) (elastic#110163)

* use include frozen setting in csv export

* add api integration test

* add fixes

* Update x-pack/test/reporting_api_integration/reporting_and_security/search_frozen_indices.ts

* test polish

* update per feedback
…astic#110216)

# Conflicts:
#	src/plugins/discover/public/application/apps/main/components/sidebar/discover_sidebar_responsive.test.tsx
…tegration test (elastic#109715) (elastic#110108)

* [RAC] [APM] removes hardcoded alerts as data index from apm integration test (elastic#109715)

* removes hardcoded index from apm integration tests

* adds integration tests for rule registry's get index route

* more cleanup

* fail try-catch if response is not empty, adds comments as to why index refresh catch block is empty

* fix name of index

Co-authored-by: Devin W. Hurley <[email protected]>
…110188) (elastic#110240)

* [APM] Decrease link size on Traces list

* [APM] Change impact column size to fixed

Co-authored-by: Casper Hübertz <[email protected]>
kibanamachine and others added 22 commits September 13, 2021 13:51
…1732) (elastic#111968)

* use existing filterManager

* remove unused default value

* unit test

* fix type

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Angela Chuang <[email protected]>
…ll screen (elastic#111038) (elastic#111980)

* account for banners when data grid is full screen

* account for banner when canvas is full screen

* change height per feedback

* add withKibana

* rm withKibana; move vars out of Fullscreen

* Use hasHeaderBanner$

* add banner height var comments

* fix ts error

Co-authored-by: Catherine Liu <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Michael Marcialis <[email protected]>
Co-authored-by: Catherine Liu <[email protected]>
…te (elastic#111856) (elastic#112004)

* do not call addErrorHash if it is timeline template

* unit test

* fix types

* trim kqlQueryExpression

* revert change

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Angela Chuang <[email protected]>
…elastic#111323) (elastic#112015)

* [Discover] Fix a functional test

* Fix failing type

* Select index pattern first

* Select index pattern first

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
…line (elastic#111908) (elastic#112023)

* bring back drag drop in active timeline detail view

* only allow drag and drop in query tab

* fix snapshot

* fix bug on alert summary to remove dragdrop

Co-authored-by: Xavier Mouligneau <[email protected]>
…elastic#111042) (elastic#112038)

Co-authored-by: Xavier Mouligneau <[email protected]>

Co-authored-by: Davis Plumlee <[email protected]>
Co-authored-by: Xavier Mouligneau <[email protected]>
…UUID (elastic#108922) (elastic#112049)

* Remove ALERT_RULE_ID in favor of ALERT_RULE_UUID

* Update snapshot

* KEVINNN

* fix test

* Add back home.disableWelcomeScreen=true

* Only disable welcome screen in security solution cypress tests

Co-authored-by: Kibana Machine <[email protected]>
# Conflicts:
#	x-pack/plugins/timelines/public/hooks/use_add_to_case.ts
…ime field (elastic#111455) (elastic#112050)

* [Security Solution] Add host.os.name.caseless mapping and runtime field (elastic#111455)

* Add host.os.name.caseless field and runtime field

* Tests

* Only add backwards compatibility mappings to old indices by version

* Always update aliases_version field even if there are no compat mappings

* Add test for newest index version

* More comments

Co-authored-by: Kibana Machine <[email protected]>

* Skip failing test

Co-authored-by: Kibana Machine <[email protected]>
…ilter (elastic#110459) (elastic#112089)

* version 1 of fix: we set the time range on the search source at CSV generation time

* updated jest tests and updated API for getSharingData

* make time range optional for getSharingData

* pivot to updating "getTime" functionality by introducing a new flag

* update jest snapshots

* update comment

* refactored coerceToAbsoluteTime -> coerceRelativeTimeToAbsoluteTime and updated behaviour to be more specific

* fix jest test

* do not change createFilter API, rather create new createRelativeFilter API, also only use this in one place in discover

* update jest tests

* update mock

* update jest test mock

Co-authored-by: Kibana Machine <[email protected]>
# Conflicts:
#	src/plugins/data/common/query/timefilter/get_time.test.ts
* [Fleet] Cosmetic fixes
Made Add integration button filled

* [Fleet] Cosmetic fixes
Filled button fixes

* [Fleet] Cosmetic fixes
3. Assign policy button

* [Fleet] Cosmetic fixes
4. Duplicate policy

* [Fleet] Cosmetic fixes
5. full stop

* [Fleet] Cosmetic fixes
6. enrollment token name

* [Fleet] Cosmetic fixes
2. auth settings

* [Fleet] Cosmetic fixes
review fixes

* [Fleet] Cosmetic fixes
Responsive fix fleet broken icons

* [Fleet] Cosmetic fixes
8. data streams table layout auto

* [Fleet] Cosmetic fixes
responsive 2. fixed icon overlap

* [Fleet] Cosmetic fixes
reduced empty space in header

* [Fleet] Cosmetic fixes
fix add integration form

* improve css selector

* moved css to styled component

Co-authored-by: juliaElastic <[email protected]>
…elastic#112132)

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: shahzad31 <[email protected]>

Co-authored-by: Dominique Clarke <[email protected]>
Co-authored-by: shahzad31 <[email protected]>
…c#111925) (elastic#112159)

# Conflicts:
#	test/functional/apps/discover/_runtime_fields_editor.ts
…c#112213)

* add version and appId to reports

* tests

* code review

* cr 2

* manual parsing + todo

Co-authored-by: Liza Katz <[email protected]>
@cauemarcondes cauemarcondes added Team:APM All issues that need APM UI Team support release_note:skip Skip the PR/issue when compiling release notes v7.15.0 labels Sep 15, 2021
@cauemarcondes cauemarcondes requested review from a team as code owners September 15, 2021 19:27
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@kibanamachine
Copy link
Contributor

kibanamachine commented Sep 15, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / APM API Integration tests (basic).x-pack/test/apm_api_integration/tests/observability_overview/observability_overview·ts.APM API tests basic apm_8.0.0 Observability overview when data is loaded returns the service count and transaction coordinates

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:00:00]         └-: APM API tests
[00:00:00]           └-> "before all" hook in "APM API tests"
[00:00:00]           └-: basic
[00:00:00]             └-> "before all" hook in "basic"
[00:00:03]             └-: apm_8.0.0
[00:00:03]               └-> "before all" hook in "apm_8.0.0"
[00:00:03]               └-> "before all" hook: runBefore in "apm_8.0.0"
[00:00:03]                 │ info (0ms) Loading apm_8.0.0
[00:00:03]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Loading "mappings.json"
[00:00:03]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Loading "data.json.gz"
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:00:03]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:00:03]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:00:03]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-anomalies-shared][0], [.ml-annotations-6][0]]]).
[00:00:03]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index ".ml-anomalies-shared"
[00:00:03]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] ".ml-anomalies-shared" settings {"index":{"auto_expand_replicas":"0-1","hidden":"true","number_of_replicas":"1","number_of_shards":"1","translog":{"durability":"async"}}}
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-config] creating index, cause [api], templates [], shards [1]/[1]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-config]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-config][0]]]).
[00:00:04]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index ".ml-config"
[00:00:04]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] ".ml-config" settings {"index":{"auto_expand_replicas":"0-1","blocks":{"read_only_allow_delete":"false"},"max_result_window":"10000","number_of_replicas":"1","number_of_shards":"1"}}
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [apm-7.14.0-error-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [apm-7.14.0-error-000001]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-7.14.0-error-000001][0]]]).
[00:00:04]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index "apm-7.14.0-error-000001"
[00:00:04]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] "apm-7.14.0-error-000001" settings {"index":{"auto_expand_replicas":"0-1","blocks":{"read_only_allow_delete":"false"},"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-7.14.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [apm-7.14.0-metric-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [apm-7.14.0-metric-000001]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-7.14.0-metric-000001][0]]]).
[00:00:04]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index "apm-7.14.0-metric-000001"
[00:00:04]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] "apm-7.14.0-metric-000001" settings {"index":{"auto_expand_replicas":"0-1","blocks":{"read_only_allow_delete":"false"},"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-7.14.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [apm-7.14.0-span-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [apm-7.14.0-span-000001]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-7.14.0-span-000001][0]]]).
[00:00:04]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index "apm-7.14.0-span-000001"
[00:00:04]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] "apm-7.14.0-span-000001" settings {"index":{"auto_expand_replicas":"0-1","blocks":{"read_only_allow_delete":"false"},"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-7.14.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [apm-7.14.0-transaction-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [apm-7.14.0-transaction-000001]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-7.14.0-transaction-000001][0]]]).
[00:00:04]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index "apm-7.14.0-transaction-000001"
[00:00:04]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] "apm-7.14.0-transaction-000001" settings {"index":{"auto_expand_replicas":"0-1","blocks":{"read_only_allow_delete":"false"},"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-7.14.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:13]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 36 docs into ".ml-anomalies-shared"
[00:00:13]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 3 docs into ".ml-config"
[00:00:13]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 440 docs into "apm-7.14.0-error-000001"
[00:00:13]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 22350 docs into "apm-7.14.0-metric-000001"
[00:00:13]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 7335 docs into "apm-7.14.0-span-000001"
[00:00:13]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 2432 docs into "apm-7.14.0-transaction-000001"
[00:00:13]                 │ info (9641ms) Loaded all archives
[00:00:13]               └-: Observability overview when data is loaded
[00:00:13]                 └-> "before all" hook for "returns the service count and transaction coordinates"
[00:00:13]                 └-> returns the service count and transaction coordinates
[00:00:13]                   └-> "before each" hook: global before each for "returns the service count and transaction coordinates"
[00:00:13]                   └- ✖ fail: APM API tests basic apm_8.0.0 Observability overview when data is loaded returns the service count and transaction coordinates
[00:00:13]                   │      Error: expect(received).toMatchInlineSnapshot(snapshot)
[00:00:13]                   │ 
[00:00:13]                   │ Snapshot name: `APM API tests basic apm_8.0.0 Observability overview when data is loaded returns the service count and transaction coordinates 4`
[00:00:13]                   │ 
[00:00:13]                   │ - Snapshot  - 5
[00:00:13]                   │ + Received  + 5
[00:00:13]                   │ 
[00:00:13]                   │   Array [
[00:00:13]                   │     Object {
[00:00:13]                   │       "x": "2021-08-03T06:50:00.000Z",
[00:00:13]                   │ -     "y": 36,
[00:00:13]                   │ +     "y": 1.4,
[00:00:13]                   │     },
[00:00:13]                   │     Object {
[00:00:13]                   │       "x": "2021-08-03T06:51:00.000Z",
[00:00:13]                   │ -     "y": 55,
[00:00:13]                   │ +     "y": 2.4,
[00:00:13]                   │     },
[00:00:13]                   │     Object {
[00:00:13]                   │       "x": "2021-08-03T06:52:00.000Z",
[00:00:13]                   │ -     "y": 40,
[00:00:13]                   │ +     "y": 1.5,
[00:00:13]                   │     },
[00:00:13]                   │     Object {
[00:00:13]                   │       "x": "2021-08-03T06:53:00.000Z",
[00:00:13]                   │ -     "y": 53,
[00:00:13]                   │ +     "y": 2.2,
[00:00:13]                   │     },
[00:00:13]                   │     Object {
[00:00:13]                   │       "x": "2021-08-03T06:54:00.000Z",
[00:00:13]                   │ -     "y": 39,
[00:00:13]                   │ +     "y": 1.63333333333333,
[00:00:13]                   │     },
[00:00:13]                   │   ]
[00:00:13]                   │       at toMatchInline (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/snapshots/decorate_snapshot_ui.js:195:11)
[00:00:13]                   │       at Context.<anonymous> (test/apm_api_integration/tests/observability_overview/observability_overview.ts:67:11)
[00:00:13]                   │       at runMicrotasks (<anonymous>)
[00:00:13]                   │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:00:13]                   │       at Object.apply (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:00:13]                   │ 
[00:00:13]                   │ 

Stack Trace

Error: expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `APM API tests basic apm_8.0.0 Observability overview when data is loaded returns the service count and transaction coordinates 4`

- Snapshot  - 5
+ Received  + 5

  Array [
    Object {
      "x": "2021-08-03T06:50:00.000Z",
-     "y": 36,
+     "y": 1.4,
    },
    Object {
      "x": "2021-08-03T06:51:00.000Z",
-     "y": 55,
+     "y": 2.4,
    },
    Object {
      "x": "2021-08-03T06:52:00.000Z",
-     "y": 40,
+     "y": 1.5,
    },
    Object {
      "x": "2021-08-03T06:53:00.000Z",
-     "y": 53,
+     "y": 2.2,
    },
    Object {
      "x": "2021-08-03T06:54:00.000Z",
-     "y": 39,
+     "y": 1.63333333333333,
    },
  ]
    at toMatchInline (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/snapshots/decorate_snapshot_ui.js:195:11)
    at Context.<anonymous> (test/apm_api_integration/tests/observability_overview/observability_overview.ts:67:11)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Object.apply (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Kibana Pipeline / general / APM API Integration tests (basic).x-pack/test/apm_api_integration/tests/observability_overview/observability_overview·ts.APM API tests basic apm_8.0.0 Observability overview when data is loaded returns the service count and transaction coordinates

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: APM API tests
[00:00:00]           └-> "before all" hook in "APM API tests"
[00:00:00]           └-: basic
[00:00:00]             └-> "before all" hook in "basic"
[00:00:04]             └-: apm_8.0.0
[00:00:04]               └-> "before all" hook in "apm_8.0.0"
[00:00:04]               └-> "before all" hook: runBefore in "apm_8.0.0"
[00:00:04]                 │ info (0ms) Loading apm_8.0.0
[00:00:04]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Loading "mappings.json"
[00:00:04]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Loading "data.json.gz"
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-anomalies-shared][0], [.ml-annotations-6][0]]]).
[00:00:04]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index ".ml-anomalies-shared"
[00:00:04]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] ".ml-anomalies-shared" settings {"index":{"auto_expand_replicas":"0-1","hidden":"true","number_of_replicas":"1","number_of_shards":"1","translog":{"durability":"async"}}}
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-config] creating index, cause [api], templates [], shards [1]/[1]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-config]
[00:00:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-config][0]]]).
[00:00:05]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index ".ml-config"
[00:00:05]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] ".ml-config" settings {"index":{"auto_expand_replicas":"0-1","blocks":{"read_only_allow_delete":"false"},"max_result_window":"10000","number_of_replicas":"1","number_of_shards":"1"}}
[00:00:05]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [apm-7.14.0-error-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [apm-7.14.0-error-000001]
[00:00:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-7.14.0-error-000001][0]]]).
[00:00:05]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index "apm-7.14.0-error-000001"
[00:00:05]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] "apm-7.14.0-error-000001" settings {"index":{"auto_expand_replicas":"0-1","blocks":{"read_only_allow_delete":"false"},"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-7.14.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:05]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [apm-7.14.0-metric-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [apm-7.14.0-metric-000001]
[00:00:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-7.14.0-metric-000001][0]]]).
[00:00:05]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index "apm-7.14.0-metric-000001"
[00:00:05]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] "apm-7.14.0-metric-000001" settings {"index":{"auto_expand_replicas":"0-1","blocks":{"read_only_allow_delete":"false"},"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-7.14.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:05]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [apm-7.14.0-span-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [apm-7.14.0-span-000001]
[00:00:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-7.14.0-span-000001][0]]]).
[00:00:05]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index "apm-7.14.0-span-000001"
[00:00:05]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] "apm-7.14.0-span-000001" settings {"index":{"auto_expand_replicas":"0-1","blocks":{"read_only_allow_delete":"false"},"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-7.14.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:05]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [apm-7.14.0-transaction-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [apm-7.14.0-transaction-000001]
[00:00:05]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-7.14.0-transaction-000001][0]]]).
[00:00:05]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Created index "apm-7.14.0-transaction-000001"
[00:00:05]                 │ debg [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] "apm-7.14.0-transaction-000001" settings {"index":{"auto_expand_replicas":"0-1","blocks":{"read_only_allow_delete":"false"},"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-7.14.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:00:14]                 │ info progress: 27013
[00:00:16]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 36 docs into ".ml-anomalies-shared"
[00:00:16]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 3 docs into ".ml-config"
[00:00:16]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 440 docs into "apm-7.14.0-error-000001"
[00:00:16]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 22350 docs into "apm-7.14.0-metric-000001"
[00:00:16]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 7335 docs into "apm-7.14.0-span-000001"
[00:00:16]                 │ info [x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0] Indexed 2432 docs into "apm-7.14.0-transaction-000001"
[00:00:17]                 │ info (12325ms) Loaded all archives
[00:00:17]               └-: Observability overview when data is loaded
[00:00:17]                 └-> "before all" hook for "returns the service count and transaction coordinates"
[00:00:17]                 └-> returns the service count and transaction coordinates
[00:00:17]                   └-> "before each" hook: global before each for "returns the service count and transaction coordinates"
[00:00:17]                   └- ✖ fail: APM API tests basic apm_8.0.0 Observability overview when data is loaded returns the service count and transaction coordinates
[00:00:17]                   │      Error: expect(received).toMatchInlineSnapshot(snapshot)
[00:00:17]                   │ 
[00:00:17]                   │ Snapshot name: `APM API tests basic apm_8.0.0 Observability overview when data is loaded returns the service count and transaction coordinates 4`
[00:00:17]                   │ 
[00:00:17]                   │ - Snapshot  - 5
[00:00:17]                   │ + Received  + 5
[00:00:17]                   │ 
[00:00:17]                   │   Array [
[00:00:17]                   │     Object {
[00:00:17]                   │       "x": "2021-08-03T06:50:00.000Z",
[00:00:17]                   │ -     "y": 36,
[00:00:17]                   │ +     "y": 1.4,
[00:00:17]                   │     },
[00:00:17]                   │     Object {
[00:00:17]                   │       "x": "2021-08-03T06:51:00.000Z",
[00:00:17]                   │ -     "y": 55,
[00:00:17]                   │ +     "y": 2.4,
[00:00:17]                   │     },
[00:00:17]                   │     Object {
[00:00:17]                   │       "x": "2021-08-03T06:52:00.000Z",
[00:00:17]                   │ -     "y": 40,
[00:00:17]                   │ +     "y": 1.5,
[00:00:17]                   │     },
[00:00:17]                   │     Object {
[00:00:17]                   │       "x": "2021-08-03T06:53:00.000Z",
[00:00:17]                   │ -     "y": 53,
[00:00:17]                   │ +     "y": 2.2,
[00:00:17]                   │     },
[00:00:17]                   │     Object {
[00:00:17]                   │       "x": "2021-08-03T06:54:00.000Z",
[00:00:17]                   │ -     "y": 39,
[00:00:17]                   │ +     "y": 1.63333333333333,
[00:00:17]                   │     },
[00:00:17]                   │   ]
[00:00:17]                   │       at toMatchInline (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/snapshots/decorate_snapshot_ui.js:195:11)
[00:00:17]                   │       at Context.<anonymous> (test/apm_api_integration/tests/observability_overview/observability_overview.ts:67:11)
[00:00:17]                   │       at runMicrotasks (<anonymous>)
[00:00:17]                   │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:00:17]                   │       at Object.apply (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:00:17]                   │ 
[00:00:17]                   │ 

Stack Trace

Error: expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `APM API tests basic apm_8.0.0 Observability overview when data is loaded returns the service count and transaction coordinates 4`

- Snapshot  - 5
+ Received  + 5

  Array [
    Object {
      "x": "2021-08-03T06:50:00.000Z",
-     "y": 36,
+     "y": 1.4,
    },
    Object {
      "x": "2021-08-03T06:51:00.000Z",
-     "y": 55,
+     "y": 2.4,
    },
    Object {
      "x": "2021-08-03T06:52:00.000Z",
-     "y": 40,
+     "y": 1.5,
    },
    Object {
      "x": "2021-08-03T06:53:00.000Z",
-     "y": 53,
+     "y": 2.2,
    },
    Object {
      "x": "2021-08-03T06:54:00.000Z",
-     "y": 39,
+     "y": 1.63333333333333,
    },
  ]
    at toMatchInline (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/snapshots/decorate_snapshot_ui.js:195:11)
    at Context.<anonymous> (test/apm_api_integration/tests/observability_overview/observability_overview.ts:67:11)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Object.apply (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

‼️ ERROR: no builds found for mergeBase sha [012b6fe]

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.