Skip to content

[APM] fixing e2e tests and re-enabling it#113664

Closed
cauemarcondes wants to merge 3 commits intoelastic:masterfrom
cauemarcondes:apm-fix-e2e-test
Closed

[APM] fixing e2e tests and re-enabling it#113664
cauemarcondes wants to merge 3 commits intoelastic:masterfrom
cauemarcondes:apm-fix-e2e-test

Conversation

@cauemarcondes
Copy link
Copy Markdown
Contributor

No description provided.

@cauemarcondes cauemarcondes added Team:APM - DEPRECATED Use Team:obs-ux-infra_services. v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Oct 1, 2021
@cauemarcondes cauemarcondes requested a review from a team October 1, 2021 19:49
@cauemarcondes cauemarcondes requested review from a team as code owners October 1, 2021 19:49
@cauemarcondes cauemarcondes requested a review from mshustov October 1, 2021 19:49
@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented Oct 1, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / jest / Jest Tests.src/plugins/telemetry/public/services.TelemetryService setOptIn calls reportOptInStatus if reportOptInStatusChange is true

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 2 times on tracked branches: https://github.com/elastic/kibana/issues/89775


Stack Trace

Error: thrown: "Exceeded timeout of 5000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
    at /var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/src/plugins/telemetry/public/services/telemetry_service.test.ts:93:5
    at _dispatchDescribe (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/index.js:67:26)
    at describe (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/index.js:30:5)
    at /var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/src/plugins/telemetry/public/services/telemetry_service.test.ts:35:3
    at _dispatchDescribe (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/index.js:67:26)
    at describe (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/index.js:30:5)
    at Object.<anonymous> (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/src/plugins/telemetry/public/services/telemetry_service.test.ts:14:1)
    at Runtime._execModule (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runtime/build/index.js:1299:24)
    at Runtime._loadModule (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runtime/build/index.js:898:12)
    at Runtime.requireModule (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runtime/build/index.js:746:10)
    at jestAdapter (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:106:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at runTestInternal (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runner/build/runTest.js:380:16)
    at runTest (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runner/build/runTest.js:472:34)
    at Object.worker (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runner/build/testWorker.js:133:12)

Kibana Pipeline / general / X-Pack Example plugin functional tests.x-pack/test/examples/embedded_lens/embedded_example·ts.embedded Lens examples show and save "before each" hook for "should show chart"

Link to Jenkins

Standard Out

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

[00:00:00]                 │
[00:00:00]                   └-: embedded Lens examples
[00:00:00]                     └-> "before all" hook in "embedded Lens examples"
[00:00:00]                     └-> "before all" hook in "embedded Lens examples"
[00:00:00]                       │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "mappings.json"
[00:00:00]                       │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "data.json.gz"
[00:00:00]                       │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]                       │ info [o.e.c.r.a.AllocationService] [node-01] 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 [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]                       │ debg [x-pack/test/functional/es_archives/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] [node-01] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]                       │ info [o.e.c.r.a.AllocationService] [node-01] 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 [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]                       │ debg [x-pack/test/functional/es_archives/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] [node-01] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]                       │ info [o.e.c.r.a.AllocationService] [node-01] 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 [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.21"
[00:00:00]                       │ debg [x-pack/test/functional/es_archives/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:00]                       │ info [o.e.c.m.MetadataMappingService] [node-01] [logstash-2015.09.21/6vOHmZrKQBS3P_guwmZvcg] update_mapping [_doc]
[00:00:04]                       │ info [o.e.c.m.MetadataMappingService] [node-01] [logstash-2015.09.20/844B3qWdQemNjewmaOCvZg] update_mapping [_doc]
[00:00:10]                       │ info progress: 13435
[00:00:10]                       │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:00:10]                       │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:10]                       │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:10]                       │ info [x-pack/test/functional/es_archives/lens/basic] Loading "mappings.json"
[00:00:10]                       │ info [x-pack/test/functional/es_archives/lens/basic] Loading "data.json"
[00:00:10]                       │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_001/U5S5OdKeQiux6tLU1PXRgA] deleting index
[00:00:10]                       │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_8.0.0_001/_lo9TWDyTrK3NWSwM-qxlg] deleting index
[00:00:10]                       │ info [x-pack/test/functional/es_archives/lens/basic] Deleted existing index ".kibana_8.0.0_001"
[00:00:10]                       │ info [x-pack/test/functional/es_archives/lens/basic] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:00:10]                       │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:00:10]                       │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:00:10]                       │ info [x-pack/test/functional/es_archives/lens/basic] Created index ".kibana_1"
[00:00:10]                       │ debg [x-pack/test/functional/es_archives/lens/basic] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:00:10]                       │ info [x-pack/test/functional/es_archives/lens/basic] Indexed 12 docs into ".kibana_1"
[00:00:10]                       │ debg Migrating saved objects
[00:00:10]                       │ proc [kibana]   log   [21:38:41.089] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 12ms.
[00:00:10]                       │ proc [kibana]   log   [21:38:41.092] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 16ms.
[00:00:10]                       │ proc [kibana]   log   [21:38:41.096] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 4ms.
[00:00:10]                       │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:10]                       │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:00:10]                       │ proc [kibana]   log   [21:38:41.107] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 11ms.
[00:00:11]                       │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/f8Px_dDQRMCSXX7FdTUSMg]]
[00:00:11]                       │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_task_manager_8.0.0_001][0]]"
[00:00:11]                       │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:00:11]                       │ proc [kibana]   log   [21:38:41.180] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 91ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.201] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 94ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.207] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 6ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.223] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 43ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.224] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 147ms
[00:00:11]                       │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:00:11]                       │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:00:11]                       │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_reindex_temp][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_reindex_temp][0]]"
[00:00:11]                       │ proc [kibana]   log   [21:38:41.281] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 74ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.294] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 13ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.308] [info][savedobjects-service] [.kibana] Starting to process 12 documents.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.309] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_TRANSFORM. took: 14ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.337] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_TRANSFORM -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 29ms.
[00:00:11]                       │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/zfFPrOw0TpW-Y-vYpV2kMw] update_mapping [_doc]
[00:00:11]                       │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/zfFPrOw0TpW-Y-vYpV2kMw] update_mapping [_doc]
[00:00:11]                       │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/zfFPrOw0TpW-Y-vYpV2kMw] update_mapping [_doc]
[00:00:11]                       │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/zfFPrOw0TpW-Y-vYpV2kMw] update_mapping [_doc]
[00:00:11]                       │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/zfFPrOw0TpW-Y-vYpV2kMw] update_mapping [_doc]
[00:00:11]                       │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_reindex_temp/zfFPrOw0TpW-Y-vYpV2kMw] update_mapping [_doc]
[00:00:11]                       │ proc [kibana]   log   [21:38:41.525] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 188ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.535] [info][savedobjects-service] [.kibana] Processed 12 documents out of 12.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.535] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 10ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.542] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 7ms.
[00:00:11]                       │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_8.0.0_reindex_temp/zfFPrOw0TpW-Y-vYpV2kMw]]
[00:00:11]                       │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:00:11]                       │ proc [kibana]   log   [21:38:41.593] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 51ms.
[00:00:11]                       │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:00:11]                       │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:00:11]                       │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:00:11]                       │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/SMoUBv9fQY2fbxBd2htMcA] create_mapping
[00:00:11]                       │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:00:11]                       │ proc [kibana]   log   [21:38:41.732] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 139ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.737] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 5ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.742] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 5ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.754] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 12ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.757] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 3ms.
[00:00:11]                       │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/SMoUBv9fQY2fbxBd2htMcA] update_mapping [_doc]
[00:00:11]                       │ proc [kibana]   log   [21:38:41.830] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 73ms.
[00:00:11]                       │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.tasks] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:11]                       │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.tasks]
[00:00:11]                       │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.tasks][0]]])." previous.health="YELLOW" reason="shards started [[.tasks][0]]"
[00:00:11]                       │ info [o.e.t.LoggingTaskListener] [node-01] 2468 finished with response BulkByScrollResponse[took=27.5ms,timed_out=false,sliceId=null,updated=12,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:11]                       │ proc [kibana]   log   [21:38:41.946] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 116ms.
[00:00:11]                       │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_8.0.0_reindex_temp/zfFPrOw0TpW-Y-vYpV2kMw] deleting index
[00:00:11]                       │ proc [kibana]   log   [21:38:41.991] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 45ms.
[00:00:11]                       │ proc [kibana]   log   [21:38:41.992] [info][savedobjects-service] [.kibana] Migration completed after 916ms
[00:00:11]                       │ debg [x-pack/test/functional/es_archives/lens/basic] Migrated Kibana index after loading Kibana data
[00:00:11]                       │ debg [x-pack/test/functional/es_archives/lens/basic] Ensured that default space exists in .kibana
[00:00:11]                       │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyPieChartsLibrary":true}
[00:00:13]                       │ debg applying update to kibana config: {"defaultIndex":"logstash-*"}
[00:00:14]                     └-: 
[00:00:14]                       └-> "before all" hook in ""
[00:00:14]                       └-: show and save
[00:00:14]                         └-> "before all" hook for "should show chart"
[00:00:14]                         └-> should show chart
[00:00:14]                           └-> "before each" hook: global before each for "should show chart"
[00:00:14]                           └-> "before each" hook for "should show chart"
[00:00:14]                             │ debg navigating to embedded_lens_example url: http://localhost:61141/app/embedded_lens_example
[00:00:14]                             │ debg navigate to: http://localhost:61141/app/embedded_lens_example
[00:00:14]                             │ debg browser[INFO] http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124324677 281 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:61141/bootstrap.js 41: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:16]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/fieldFormatsExample/1.0.0/fieldFormatsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:00:16]                             │ debg browser[INFO] http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124324677 281 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:16]                             │
[00:00:16]                             │ debg browser[INFO] http://localhost:61141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:16]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/fieldFormatsExample/1.0.0/fieldFormatsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:00:16]                             │ debg currentUrl = http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124324677
[00:00:16]                             │          appUrl = http://localhost:61141/app/embedded_lens_example
[00:00:16]                             │ debg TestSubjects.find(kibanaChrome)
[00:00:16]                             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:26]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/paertialResultsExample/0.1.0/paertialResultsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:00:26]                             │ERROR browser[SEVERE] http://localhost:61141/bootstrap.js 57:68 Uncaught TypeError: Cannot read properties of null (reading 'dataset')
[00:01:17]                             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:01:17]                             │      Wait timed out after 61171ms
[00:01:18]                             │ debg navigate to: http://localhost:61141/app/embedded_lens_example
[00:01:18]                             │ debg browser[INFO] http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124388508 281 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:01:18]                             │
[00:01:18]                             │ debg browser[INFO] http://localhost:61141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:18]                             │ debg ... sleep(700) start
[00:01:19]                             │ debg ... sleep(700) end
[00:01:19]                             │ debg returned from get, calling refresh
[00:01:19]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/fieldFormatsExample/1.0.0/fieldFormatsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:01:19]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/paertialResultsExample/0.1.0/paertialResultsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:01:19]                             │ERROR browser[SEVERE] http://localhost:61141/bootstrap.js 57:68 Uncaught TypeError: Cannot read properties of null (reading 'dataset')
[00:01:19]                             │ debg browser[INFO] http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124388508 281 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:01:19]                             │
[00:01:19]                             │ debg browser[INFO] http://localhost:61141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:19]                             │ debg currentUrl = http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124388508
[00:01:19]                             │          appUrl = http://localhost:61141/app/embedded_lens_example
[00:01:19]                             │ debg TestSubjects.find(kibanaChrome)
[00:01:19]                             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:29]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/fieldFormatsExample/1.0.0/fieldFormatsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:01:29]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/paertialResultsExample/0.1.0/paertialResultsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:01:29]                             │ERROR browser[SEVERE] http://localhost:61141/bootstrap.js 57:68 Uncaught TypeError: Cannot read properties of null (reading 'dataset')
[00:02:20]                             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:02:20]                             │      Wait timed out after 61133ms
[00:02:21]                             │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:02:21]                             │      Wait timed out after 61133ms
[00:02:21]                             │          at /dev/shm/workspace/parallel/14/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:02:21]                             │          at runMicrotasks (<anonymous>)
[00:02:21]                             │          at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:02:21]                             │ debg navigate to: http://localhost:61141/app/embedded_lens_example
[00:02:21]                             │ debg browser[INFO] http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124451702 281 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:02:21]                             │
[00:02:21]                             │ debg browser[INFO] http://localhost:61141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:21]                             │ debg ... sleep(700) start
[00:02:22]                             │ debg ... sleep(700) end
[00:02:22]                             │ debg returned from get, calling refresh
[00:02:22]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/fieldFormatsExample/1.0.0/fieldFormatsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:02:22]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/paertialResultsExample/0.1.0/paertialResultsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:02:22]                             │ERROR browser[SEVERE] http://localhost:61141/bootstrap.js 57:68 Uncaught TypeError: Cannot read properties of null (reading 'dataset')
[00:02:22]                             │ debg browser[INFO] http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124451702 281 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:02:22]                             │
[00:02:22]                             │ debg browser[INFO] http://localhost:61141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:22]                             │ debg currentUrl = http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124451702
[00:02:22]                             │          appUrl = http://localhost:61141/app/embedded_lens_example
[00:02:22]                             │ debg TestSubjects.find(kibanaChrome)
[00:02:22]                             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:32]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/fieldFormatsExample/1.0.0/fieldFormatsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:02:32]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/paertialResultsExample/0.1.0/paertialResultsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:02:32]                             │ERROR browser[SEVERE] http://localhost:61141/bootstrap.js 57:68 Uncaught TypeError: Cannot read properties of null (reading 'dataset')
[00:03:23]                             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:03:23]                             │      Wait timed out after 61180ms
[00:03:24]                             │ debg navigate to: http://localhost:61141/app/embedded_lens_example
[00:03:24]                             │ debg browser[INFO] http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124514427 281 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:03:24]                             │
[00:03:24]                             │ debg browser[INFO] http://localhost:61141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:24]                             │ debg ... sleep(700) start
[00:03:25]                             │ debg ... sleep(700) end
[00:03:25]                             │ debg returned from get, calling refresh
[00:03:25]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/fieldFormatsExample/1.0.0/fieldFormatsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:03:25]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/paertialResultsExample/0.1.0/paertialResultsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:03:25]                             │ERROR browser[SEVERE] http://localhost:61141/bootstrap.js 57:68 Uncaught TypeError: Cannot read properties of null (reading 'dataset')
[00:03:25]                             │ debg browser[INFO] http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124514427 281 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:03:25]                             │
[00:03:25]                             │ debg browser[INFO] http://localhost:61141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:25]                             │ debg currentUrl = http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124514427
[00:03:25]                             │          appUrl = http://localhost:61141/app/embedded_lens_example
[00:03:25]                             │ debg TestSubjects.find(kibanaChrome)
[00:03:25]                             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:35]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/fieldFormatsExample/1.0.0/fieldFormatsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:03:35]                             │ERROR browser[SEVERE] http://localhost:61141/46673/bundles/plugin/paertialResultsExample/0.1.0/paertialResultsExample.plugin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:03:35]                             │ERROR browser[SEVERE] http://localhost:61141/bootstrap.js 57:68 Uncaught TypeError: Cannot read properties of null (reading 'dataset')
[00:04:26]                             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:26]                             │      Wait timed out after 61145ms
[00:04:26]                             │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:26]                             │      Wait timed out after 61145ms
[00:04:26]                             │          at /dev/shm/workspace/parallel/14/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:26]                             │          at runMicrotasks (<anonymous>)
[00:04:26]                             │          at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:04:27]                             │ info Taking screenshot "/dev/shm/workspace/parallel/14/kibana/x-pack/test/functional/screenshots/failure/embedded Lens examples  show and save _before each_ hook for _should show chart_.png"
[00:04:27]                             │ info Current URL is: http://localhost:61141/login?next=%2Fapp%2Fembedded_lens_example%3F_t%3D1633124514427
[00:04:27]                             │ info Saving page source to: /dev/shm/workspace/parallel/14/kibana/x-pack/test/functional/failure_debug/html/embedded Lens examples  show and save _before each_ hook for _should show chart_.html
[00:04:27]                             └- ✖ fail: embedded Lens examples  show and save "before each" hook for "should show chart"
[00:04:27]                             │      retry.tryForTime timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:27]                             │ Wait timed out after 61145ms
[00:04:27]                             │     at /dev/shm/workspace/parallel/14/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:27]                             │     at runMicrotasks (<anonymous>)
[00:04:27]                             │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:04:27]                             │     at onFailure (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:04:27]                             │     at retryForSuccess (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:04:27]                             │     at RetryService.try (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry.ts:31:12)
[00:04:27]                             │     at /dev/shm/workspace/parallel/14/kibana/test/functional/page_objects/common_page.ts:243:21
[00:04:27]                             │     at runAttempt (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:04:27]                             │     at retryForSuccess (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:04:27]                             │     at RetryService.tryForTime (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry.ts:22:12)
[00:04:27]                             │     at CommonPageObject.navigateToApp (/dev/shm/workspace/parallel/14/kibana/test/functional/page_objects/common_page.ts:242:5)
[00:04:27]                             │     at Context.<anonymous> (/dev/shm/workspace/parallel/14/kibana/x-pack/test/examples/embedded_lens/embedded_example.ts:25:7)
[00:04:27]                             │     at Object.apply (/dev/shm/workspace/parallel/14/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:04:27]                             │   Error: retry.tryForTime timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:27]                             │   Wait timed out after 61145ms
[00:04:27]                             │       at /dev/shm/workspace/parallel/14/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:27]                             │       at runMicrotasks (<anonymous>)
[00:04:27]                             │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:04:27]                             │       at onFailure (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:04:27]                             │       at retryForSuccess (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:04:27]                             │       at RetryService.try (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry.ts:31:12)
[00:04:27]                             │       at /dev/shm/workspace/parallel/14/kibana/test/functional/page_objects/common_page.ts:243:21
[00:04:27]                             │       at runAttempt (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:04:27]                             │       at retryForSuccess (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:04:27]                             │       at RetryService.tryForTime (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry.ts:22:12)
[00:04:27]                             │       at CommonPageObject.navigateToApp (/dev/shm/workspace/parallel/14/kibana/test/functional/page_objects/common_page.ts:242:5)
[00:04:27]                             │       at Context.<anonymous> (test/examples/embedded_lens/embedded_example.ts:25:7)
[00:04:27]                             │       at Object.apply (/dev/shm/workspace/parallel/14/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:04:27]                             │       at onFailure (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:04:27]                             │       at retryForSuccess (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:04:27]                             │       at RetryService.tryForTime (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry.ts:22:12)
[00:04:27]                             │       at CommonPageObject.navigateToApp (/dev/shm/workspace/parallel/14/kibana/test/functional/page_objects/common_page.ts:242:5)
[00:04:27]                             │       at Context.<anonymous> (test/examples/embedded_lens/embedded_example.ts:25:7)
[00:04:27]                             │       at Object.apply (/dev/shm/workspace/parallel/14/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:04:27]                             │ 
[00:04:27]                             │ 

Stack Trace

Error: retry.tryForTime timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
Wait timed out after 61145ms
    at /dev/shm/workspace/parallel/14/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at onFailure (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry.ts:31:12)
    at /dev/shm/workspace/parallel/14/kibana/test/functional/page_objects/common_page.ts:243:21
    at runAttempt (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry.ts:22:12)
    at CommonPageObject.navigateToApp (/dev/shm/workspace/parallel/14/kibana/test/functional/page_objects/common_page.ts:242:5)
    at Context.<anonymous> (test/examples/embedded_lens/embedded_example.ts:25:7)
    at Object.apply (/dev/shm/workspace/parallel/14/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
    at onFailure (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/14/kibana/test/common/services/retry/retry.ts:22:12)
    at CommonPageObject.navigateToApp (/dev/shm/workspace/parallel/14/kibana/test/functional/page_objects/common_page.ts:242:5)
    at Context.<anonymous> (test/examples/embedded_lens/embedded_example.ts:25:7)
    at Object.apply (/dev/shm/workspace/parallel/14/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

✅ unchanged

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

Copy link
Copy Markdown
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Operations related changes LGTM

Comment on lines +75 to +77
if (this.isAlreadyAborted()) {
return this.responseToolkit.close;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mshustov If I understand correctly, this is fixing a significant bug, isn't it? Should we also add an integration test to cover the fix?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change doesn't fix the problem, unfortunately. A fix should be done on the Hapi level. See hapijs/hapi#4294 for a detailed description.

@cauemarcondes cauemarcondes deleted the apm-fix-e2e-test branch October 5, 2021 13:43
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 - DEPRECATED Use Team:obs-ux-infra_services. v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants