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

[data.search.tabify] Aggs can add metadata to tabify (1) #76332

Closed
wants to merge 2 commits into from

Conversation

wylieconlon
Copy link
Contributor

@wylieconlon wylieconlon commented Aug 31, 2020

Especially for "auto" date histograms, Lens needs to know data that was only available at request time, such as the interval that was being requested.

This PR is one of 3 approaches to solving the same problem. I'm presenting these three approaches for discussion and comparison:

  1. AggConfigs approach: Updating aggConfigs with a decorateTabify function which is able to write to the table which is passed into Lens
  2. Special case for date histograms using bucketInterval which is already available
  3. Use the Elasticsearch feature of aggregation metadata to pass parameters from request to response

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@wylieconlon wylieconlon added the Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) label Aug 31, 2020
@wylieconlon wylieconlon changed the title [data.search.tabify] Aggs can pass params from request to response (tabify) [data.search.tabify] Aggs can add metadata to tabify Aug 31, 2020
@wylieconlon wylieconlon changed the title [data.search.tabify] Aggs can add metadata to tabify [data.search.tabify] Aggs can add metadata to tabify (1) Aug 31, 2020
@kibanamachine
Copy link
Contributor

kibanamachine commented Aug 31, 2020

💔 Build Failed

Failed CI Steps


Test Failures

Jest Tests.src/plugins/data/public/search/expressions.createFilter ignores event when cell value is not provided

Link to Jenkins

Standard Out

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


Stack Trace

TypeError: Cannot read property 'serialize' of undefined
    at Object.beforeEach (/dev/shm/workspace/parallel/5/kibana/src/plugins/data/public/search/expressions/create_filter.test.ts:83:32)
    at Object.asyncJestLifecycle (/dev/shm/workspace/kibana/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:53:37)
    at resolve (/dev/shm/workspace/kibana/node_modules/jest-jasmine2/build/queueRunner.js:45:12)
    at new Promise (<anonymous>)
    at mapper (/dev/shm/workspace/kibana/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
    at promise.then (/dev/shm/workspace/kibana/node_modules/jest-jasmine2/build/queueRunner.js:75:41)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Interpreter Functional Tests.test/interpreter_functional/test_suites/run_pipeline/basic·ts.runPipeline basic visualize loader pipeline expression tests full expression runs the expression and compares final output

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: runPipeline
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ info [../functional/fixtures/es_archiver/logstash_functional] Loading "mappings.json"
[00:00:00]             │ info [../functional/fixtures/es_archiver/logstash_functional] Loading "data.json.gz"
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:00]             │ info [../functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]             │ debg [../functional/fixtures/es_archiver/logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:00]             │ info [../functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]             │ debg [../functional/fixtures/es_archiver/logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:00]             │ info [../functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.21"
[00:00:00]             │ debg [../functional/fixtures/es_archiver/logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:10]             │ info progress: 12027
[00:00:11]             │ info [../functional/fixtures/es_archiver/logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:00:11]             │ info [../functional/fixtures/es_archiver/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:11]             │ info [../functional/fixtures/es_archiver/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:11]             │ info [../functional/fixtures/es_archiver/visualize_embedding] Loading "mappings.json"
[00:00:11]             │ info [../functional/fixtures/es_archiver/visualize_embedding] Loading "data.json.gz"
[00:00:11]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_1/MszQ_kCSTUeuCsDQWMdiHw] deleting index
[00:00:11]             │ info [../functional/fixtures/es_archiver/visualize_embedding] Deleted existing index [".kibana_1"]
[00:00:11]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:00:11]             │ info [../functional/fixtures/es_archiver/visualize_embedding] Created index ".kibana"
[00:00:11]             │ debg [../functional/fixtures/es_archiver/visualize_embedding] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:11]             │ info [../functional/fixtures/es_archiver/visualize_embedding] Indexed 5 docs into ".kibana"
[00:00:11]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana/naW289J_RD-Q892bgRUctg] update_mapping [_doc]
[00:00:11]             │ debg Migrating saved objects
[00:00:11]             │ proc [kibana]   log   [23:19:06.478] [info][savedobjects-service] Creating index .kibana_2.
[00:00:11]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:11]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:12]             │ proc [kibana]   log   [23:19:06.559] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:12]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:00:12]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:12]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1]
[00:00:12]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] updating number_of_replicas to [0] for indices [.tasks]
[00:00:12]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] 779 finished with response BulkByScrollResponse[took=66.4ms,timed_out=false,sliceId=null,updated=0,created=5,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:12]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana/naW289J_RD-Q892bgRUctg] deleting index
[00:00:12]             │ proc [kibana]   log   [23:19:06.963] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:12]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_2/FFxcZ9NuRNC1kDOdwarLkQ] update_mapping [_doc]
[00:00:12]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_2/FFxcZ9NuRNC1kDOdwarLkQ] update_mapping [_doc]
[00:00:12]             │ proc [kibana]   log   [23:19:07.075] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:12]             │ proc [kibana]   log   [23:19:07.114] [info][savedobjects-service] Finished in 638ms.
[00:00:12]             │ debg replacing kibana config doc: {"dateFormat:tz":"Australia/North","defaultIndex":"logstash-*"}
[00:00:12]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_2/FFxcZ9NuRNC1kDOdwarLkQ] update_mapping [_doc]
[00:00:14]             │ debg navigating to settings url: http://localhost:6121/app/management
[00:00:14]             │ debg navigate to: http://localhost:6121/app/management
[00:00:14]             │ debg browser[INFO] http://localhost:6121/app/management?_t=1598915948673 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:14]             │
[00:00:14]             │ debg browser[INFO] http://localhost:6121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:14]             │ debg ... sleep(700) start
[00:00:15]             │ debg ... sleep(700) end
[00:00:15]             │ debg returned from get, calling refresh
[00:00:15]             │ debg browser[INFO] http://localhost:6121/app/management?_t=1598915948673 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:15]             │
[00:00:15]             │ debg browser[INFO] http://localhost:6121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:15]             │ debg currentUrl = http://localhost:6121/app/management
[00:00:15]             │          appUrl = http://localhost:6121/app/management
[00:00:15]             │ debg TestSubjects.find(kibanaChrome)
[00:00:15]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:17]             │ debg browser[INFO] http://localhost:6121/35891/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-31T23:19:11Z
[00:00:17]             │        Adding connection to http://localhost:6121/elasticsearch
[00:00:17]             │
[00:00:17]             │      "
[00:00:17]             │ debg browser[DEBUG] http://localhost:6121/35891/bundles/plugin/usageCollection/usageCollection.plugin.js 0:19509 "Reporting user-agent."
[00:00:17]             │ debg browser[DEBUG] http://localhost:6121/35891/bundles/plugin/usageCollection/usageCollection.plugin.js 0:19509 "Reporting application changed to management"
[00:00:17]             │ debg ... sleep(501) start
[00:00:18]             │ debg ... sleep(501) end
[00:00:18]             │ debg in navigateTo url = http://localhost:6121/app/management
[00:00:18]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:18]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:20]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:21]             │ debg click "Run Pipeline" app link
[00:00:21]             │ debg TestSubjects.exists(collapsibleNav)
[00:00:21]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:00:23]             │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:00:24]             │ debg TestSubjects.click(toggleNavButton)
[00:00:24]             │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:00:24]             │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:00:24]             │ debg TestSubjects.find(collapsibleNav)
[00:00:24]             │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:00:24]             │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:00:24]             │ debg browser[DEBUG] http://localhost:6121/35891/bundles/plugin/usageCollection/usageCollection.plugin.js 0:19509 "Reporting application changed to kbn_tp_run_pipeline"
[00:00:27]             │ debg TestSubjects.find(pluginContent)
[00:00:27]             │ debg Find.findByCssSelector('[data-test-subj="pluginContent"]') with timeout=10000
[00:00:27]           └-: basic visualize loader pipeline expression tests
[00:00:27]             └-> "before all" hook
[00:00:27]             └-> "before all" hook
[00:00:27]             └-: full expression
[00:00:27]               └-> "before all" hook
[00:00:27]               └-> runs the expression and compares final output
[00:00:27]                 └-> "before each" hook: global before each
[00:00:27]                 │ debg executing expression kibana | kibana_context | esaggs index='logstash-*' aggConfigs='[
[00:00:27]                 │                {"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},
[00:00:27]                 │                {"id":"2","enabled":true,"type":"terms","schema":"segment","params":
[00:00:27]                 │                  {"field":"response.raw","size":4,"order":"desc","orderBy":"1"}
[00:00:27]                 │                }]'  | 
[00:00:27]                 │              metricVis metric={visdimension 1 format="number"} bucket={visdimension 0}
[00:00:27]                 │            
[00:00:27]                 │ debg running expression kibana | kibana_context | esaggs index='logstash-*' aggConfigs='[
[00:00:27]                 │                {"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},
[00:00:27]                 │                {"id":"2","enabled":true,"type":"terms","schema":"segment","params":
[00:00:27]                 │                  {"field":"response.raw","size":4,"order":"desc","orderBy":"1"}
[00:00:27]                 │                }]'  | 
[00:00:27]                 │              metricVis metric={visdimension 1 format="number"} bucket={visdimension 0}
[00:00:27]                 │            
[00:00:28]                 │ debg compareAgainstBaseline
[00:00:28]                 │ debg comparing
[00:00:28]                 │ info Taking screenshot "/dev/shm/workspace/parallel/2/kibana/test/interpreter_functional/screenshots/failure/runPipeline basic visualize loader pipeline expression tests full expression runs the expression and compares final output.png"
[00:00:28]                 │ info Current URL is: http://localhost:6121/app/kbn_tp_run_pipeline
[00:00:28]                 │ info Saving page source to: /dev/shm/workspace/parallel/2/kibana/test/interpreter_functional/failure_debug/html/runPipeline basic visualize loader pipeline expression tests full expression runs the expression and compares final output.html
[00:00:28]                 └- ✖ fail: runPipeline basic visualize loader pipeline expression tests full expression runs the expression and compares final output
[00:00:28]                 │       Error: expected '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"formatHint":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"id":"col-0-2","meta":{"aggConfigParams":{"decoration":{},"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"formatHint":{"id":"number"},"id":"col-1-1","meta":{"aggConfigParams":{"decoration":{}},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}' to sort of equal '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}'
[00:00:28]                 │       + expected - actual
[00:00:28]                 │ 
[00:00:28]                 │       -{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"formatHint":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"id":"col-0-2","meta":{"aggConfigParams":{"decoration":{},"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"formatHint":{"id":"number"},"id":"col-1-1","meta":{"aggConfigParams":{"decoration":{}},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}
[00:00:28]                 │       +{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}
[00:00:28]                 │       
[00:00:28]                 │       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
[00:00:28]                 │       at Assertion.eql (packages/kbn-expect/expect.js:244:8)
[00:00:28]                 │       at Proxy.compare (test/functional/services/common/snapshots.ts:69:32)
[00:00:28]                 │       at Proxy.compareAgainstBaseline (test/functional/services/common/snapshots.ts:62:21)
[00:00:28]                 │ 
[00:00:28]                 │ 

Stack Trace

{ Error: expected '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"formatHint":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"id":"col-0-2","meta":{"aggConfigParams":{"decoration":{},"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"formatHint":{"id":"number"},"id":"col-1-1","meta":{"aggConfigParams":{"decoration":{}},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}' to sort of equal '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}'
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (packages/kbn-expect/expect.js:244:8)
    at Proxy.compare (test/functional/services/common/snapshots.ts:69:32)
    at Proxy.compareAgainstBaseline (test/functional/services/common/snapshots.ts:62:21)
  actual:
   '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"formatHint":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"id":"col-0-2","meta":{"aggConfigParams":{"decoration":{},"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"formatHint":{"id":"number"},"id":"col-1-1","meta":{"aggConfigParams":{"decoration":{}},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}',
  expected:
   '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}',
  showDiff: true }

Interpreter Functional Tests.test/interpreter_functional/test_suites/run_pipeline/basic·ts.runPipeline basic visualize loader pipeline expression tests full expression runs the expression and compares final output

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: runPipeline
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ info [../functional/fixtures/es_archiver/logstash_functional] Loading "mappings.json"
[00:00:00]             │ info [../functional/fixtures/es_archiver/logstash_functional] Loading "data.json.gz"
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:00]             │ info [../functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]             │ debg [../functional/fixtures/es_archiver/logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:00]             │ info [../functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]             │ debg [../functional/fixtures/es_archiver/logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:00]             │ info [../functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.21"
[00:00:00]             │ debg [../functional/fixtures/es_archiver/logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:10]             │ info progress: 12324
[00:00:10]             │ info [../functional/fixtures/es_archiver/logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:00:10]             │ info [../functional/fixtures/es_archiver/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:10]             │ info [../functional/fixtures/es_archiver/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:11]             │ info [../functional/fixtures/es_archiver/visualize_embedding] Loading "mappings.json"
[00:00:11]             │ info [../functional/fixtures/es_archiver/visualize_embedding] Loading "data.json.gz"
[00:00:11]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_1/rpm9-qRHRHmDLcI3f4DUHg] deleting index
[00:00:11]             │ info [../functional/fixtures/es_archiver/visualize_embedding] Deleted existing index [".kibana_1"]
[00:00:11]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:00:11]             │ info [../functional/fixtures/es_archiver/visualize_embedding] Created index ".kibana"
[00:00:11]             │ debg [../functional/fixtures/es_archiver/visualize_embedding] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:11]             │ info [../functional/fixtures/es_archiver/visualize_embedding] Indexed 5 docs into ".kibana"
[00:00:11]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana/r92vHecVT2-izb1mWS2sng] update_mapping [_doc]
[00:00:11]             │ debg Migrating saved objects
[00:00:11]             │ proc [kibana]   log   [23:06:26.070] [info][savedobjects-service] Creating index .kibana_2.
[00:00:11]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:11]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:11]             │ proc [kibana]   log   [23:06:26.147] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:11]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:00:11]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:11]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1]
[00:00:11]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] updating number_of_replicas to [0] for indices [.tasks]
[00:00:11]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] 754 finished with response BulkByScrollResponse[took=74.2ms,timed_out=false,sliceId=null,updated=0,created=5,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:12]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana/r92vHecVT2-izb1mWS2sng] deleting index
[00:00:12]             │ proc [kibana]   log   [23:06:26.534] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:12]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_2/B5780HDiTHKxJvedm_lKmA] update_mapping [_doc]
[00:00:12]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_2/B5780HDiTHKxJvedm_lKmA] update_mapping [_doc]
[00:00:12]             │ proc [kibana]   log   [23:06:26.642] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:12]             │ proc [kibana]   log   [23:06:26.677] [info][savedobjects-service] Finished in 608ms.
[00:00:12]             │ debg replacing kibana config doc: {"dateFormat:tz":"Australia/North","defaultIndex":"logstash-*"}
[00:00:12]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1598913187431405764] [.kibana_2/B5780HDiTHKxJvedm_lKmA] update_mapping [_doc]
[00:00:13]             │ debg navigating to settings url: http://localhost:6121/app/management
[00:00:13]             │ debg navigate to: http://localhost:6121/app/management
[00:00:13]             │ debg browser[INFO] http://localhost:6121/app/management?_t=1598915188266 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:13]             │
[00:00:13]             │ debg browser[INFO] http://localhost:6121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:13]             │ debg ... sleep(700) start
[00:00:14]             │ debg ... sleep(700) end
[00:00:14]             │ debg returned from get, calling refresh
[00:00:15]             │ debg browser[INFO] http://localhost:6121/app/management?_t=1598915188266 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:15]             │
[00:00:15]             │ debg browser[INFO] http://localhost:6121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:15]             │ debg currentUrl = http://localhost:6121/app/management
[00:00:15]             │          appUrl = http://localhost:6121/app/management
[00:00:15]             │ debg TestSubjects.find(kibanaChrome)
[00:00:15]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:16]             │ debg browser[INFO] http://localhost:6121/35891/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-31T23:06:30Z
[00:00:16]             │        Adding connection to http://localhost:6121/elasticsearch
[00:00:16]             │
[00:00:16]             │      "
[00:00:16]             │ debg browser[DEBUG] http://localhost:6121/35891/bundles/plugin/usageCollection/usageCollection.plugin.js 0:19509 "Reporting user-agent."
[00:00:16]             │ debg browser[DEBUG] http://localhost:6121/35891/bundles/plugin/usageCollection/usageCollection.plugin.js 0:19509 "Reporting application changed to management"
[00:00:17]             │ debg ... sleep(501) start
[00:00:17]             │ debg ... sleep(501) end
[00:00:17]             │ debg in navigateTo url = http://localhost:6121/app/management
[00:00:17]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:17]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:20]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:20]             │ debg click "Run Pipeline" app link
[00:00:20]             │ debg TestSubjects.exists(collapsibleNav)
[00:00:20]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:00:23]             │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:00:23]             │ debg TestSubjects.click(toggleNavButton)
[00:00:23]             │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:00:23]             │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:00:23]             │ debg TestSubjects.find(collapsibleNav)
[00:00:23]             │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:00:24]             │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:00:24]             │ debg browser[DEBUG] http://localhost:6121/35891/bundles/plugin/usageCollection/usageCollection.plugin.js 0:19509 "Reporting application changed to kbn_tp_run_pipeline"
[00:00:26]             │ debg TestSubjects.find(pluginContent)
[00:00:26]             │ debg Find.findByCssSelector('[data-test-subj="pluginContent"]') with timeout=10000
[00:00:26]           └-: basic visualize loader pipeline expression tests
[00:00:26]             └-> "before all" hook
[00:00:26]             └-> "before all" hook
[00:00:26]             └-: full expression
[00:00:26]               └-> "before all" hook
[00:00:26]               └-> runs the expression and compares final output
[00:00:26]                 └-> "before each" hook: global before each
[00:00:26]                 │ debg executing expression kibana | kibana_context | esaggs index='logstash-*' aggConfigs='[
[00:00:26]                 │                {"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},
[00:00:26]                 │                {"id":"2","enabled":true,"type":"terms","schema":"segment","params":
[00:00:26]                 │                  {"field":"response.raw","size":4,"order":"desc","orderBy":"1"}
[00:00:26]                 │                }]'  | 
[00:00:26]                 │              metricVis metric={visdimension 1 format="number"} bucket={visdimension 0}
[00:00:26]                 │            
[00:00:26]                 │ debg running expression kibana | kibana_context | esaggs index='logstash-*' aggConfigs='[
[00:00:26]                 │                {"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},
[00:00:26]                 │                {"id":"2","enabled":true,"type":"terms","schema":"segment","params":
[00:00:26]                 │                  {"field":"response.raw","size":4,"order":"desc","orderBy":"1"}
[00:00:26]                 │                }]'  | 
[00:00:26]                 │              metricVis metric={visdimension 1 format="number"} bucket={visdimension 0}
[00:00:26]                 │            
[00:00:27]                 │ debg compareAgainstBaseline
[00:00:27]                 │ debg comparing
[00:00:27]                 │ info Taking screenshot "/dev/shm/workspace/parallel/2/kibana/test/interpreter_functional/screenshots/failure/runPipeline basic visualize loader pipeline expression tests full expression runs the expression and compares final output.png"
[00:00:28]                 │ info Current URL is: http://localhost:6121/app/kbn_tp_run_pipeline
[00:00:28]                 │ info Saving page source to: /dev/shm/workspace/parallel/2/kibana/test/interpreter_functional/failure_debug/html/runPipeline basic visualize loader pipeline expression tests full expression runs the expression and compares final output.html
[00:00:28]                 └- ✖ fail: runPipeline basic visualize loader pipeline expression tests full expression runs the expression and compares final output
[00:00:28]                 │       Error: expected '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"formatHint":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"id":"col-0-2","meta":{"aggConfigParams":{"decoration":{},"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"formatHint":{"id":"number"},"id":"col-1-1","meta":{"aggConfigParams":{"decoration":{}},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}' to sort of equal '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}'
[00:00:28]                 │       + expected - actual
[00:00:28]                 │ 
[00:00:28]                 │       -{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"formatHint":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"id":"col-0-2","meta":{"aggConfigParams":{"decoration":{},"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"formatHint":{"id":"number"},"id":"col-1-1","meta":{"aggConfigParams":{"decoration":{}},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}
[00:00:28]                 │       +{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}
[00:00:28]                 │       
[00:00:28]                 │       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
[00:00:28]                 │       at Assertion.eql (packages/kbn-expect/expect.js:244:8)
[00:00:28]                 │       at Proxy.compare (test/functional/services/common/snapshots.ts:69:32)
[00:00:28]                 │       at Proxy.compareAgainstBaseline (test/functional/services/common/snapshots.ts:62:21)
[00:00:28]                 │ 
[00:00:28]                 │ 

Stack Trace

{ Error: expected '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"formatHint":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"id":"col-0-2","meta":{"aggConfigParams":{"decoration":{},"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"formatHint":{"id":"number"},"id":"col-1-1","meta":{"aggConfigParams":{"decoration":{}},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}' to sort of equal '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}'
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (packages/kbn-expect/expect.js:244:8)
    at Proxy.compare (test/functional/services/common/snapshots.ts:69:32)
    at Proxy.compareAgainstBaseline (test/functional/services/common/snapshots.ts:62:21)
  actual:
   '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"formatHint":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other","parsedUrl":{"basePath":"","origin":"http://localhost:6121","pathname":"/app/management"}}},"id":"col-0-2","meta":{"aggConfigParams":{"decoration":{},"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"formatHint":{"id":"number"},"id":"col-1-1","meta":{"aggConfigParams":{"decoration":{}},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}',
  expected:
   '{"as":"metric_vis","type":"render","value":{"params":{"listenOnChange":true},"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"colorSchema":"Green to Red","colorsRange":[{"from":0,"to":10000,"type":"range"}],"invertColors":false,"labels":{"show":true},"metricColorMode":"None","percentageMode":false,"style":{"bgColor":false,"bgFill":"#000","fontSize":60,"labelColor":false,"subText":""},"useRanges":false}},"visData":{"columns":[{"id":"col-0-2","meta":{"aggConfigParams":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"indexPatternId":"logstash-*","type":"terms"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"aggConfigParams":{},"indexPatternId":"logstash-*","type":"count"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"kibana_datatable"},"visType":"metric"}}',
  showDiff: true }

and 6 more failures, only showing the first 3.

Build metrics

async chunks size

id value diff baseline
visTypeTable 45.4KB +8.0B 45.4KB

page load bundle size

id value diff baseline
data 1.4MB +3.4KB 1.4MB
lens 866.6KB -660.0B 867.2KB
total +2.8KB

History

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
Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants