Skip to content

[7.x] @testing-library remove "pure" hack (#78742)#79103

Merged
Dosant merged 1 commit intoelastic:7.xfrom
Dosant:backport/7.x/pr-78742
Oct 1, 2020
Merged

[7.x] @testing-library remove "pure" hack (#78742)#79103
Dosant merged 1 commit intoelastic:7.xfrom
Dosant:backport/7.x/pr-78742

Conversation

@Dosant
Copy link
Copy Markdown
Contributor

@Dosant Dosant commented Oct 1, 2020

Backports the following commits to 7.x:

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@Dosant Dosant added the backport This PR is a backport of another PR label Oct 1, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky


Test Failures

Chrome UI Functional Tests.test/functional/apps/context/_context_navigation·js.context app discover - context - back navigation "before all" hook for "should go back after loading"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:15]         └-: context app
[00:00:15]           └-> "before all" hook
[00:00:15]           └-> "before all" hook
[00:00:15]             │ info [logstash_functional] Loading "mappings.json"
[00:00:15]             │ info [logstash_functional] Loading "data.json.gz"
[00:00:15]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:15]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:00:15]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:15]             │ debg [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:15]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:15]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:00:15]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:15]             │ debg [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:15]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:16]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:00:16]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:16]             │ debg [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:25]             │ info progress: 3009
[00:00:35]             │ info progress: 7821
[00:00:42]             │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:00:42]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:42]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:42]             │ info [visualize] Loading "mappings.json"
[00:00:42]             │ info [visualize] Loading "data.json"
[00:00:42]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.kibana_1/Yzp94R5bSaGQk-a0z4cqow] deleting index
[00:00:42]             │ info [visualize] Deleted existing index [".kibana_1"]
[00:00:42]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:00:42]             │ info [visualize] Created index ".kibana"
[00:00:42]             │ debg [visualize] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:42]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.kibana/twq5LbPoStaQkP5K-o3-MA] update_mapping [_doc]
[00:00:42]             │ info [visualize] Indexed 12 docs into ".kibana"
[00:00:42]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.kibana/twq5LbPoStaQkP5K-o3-MA] update_mapping [_doc]
[00:00:42]             │ debg Migrating saved objects
[00:00:43]             │ proc [kibana]   log   [12:09:07.770] [info][savedobjects-service] Creating index .kibana_2.
[00:00:43]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:43]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:43]             │ proc [kibana]   log   [12:09:07.849] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:43]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:00:43]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:43]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1]
[00:00:43]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] updating number_of_replicas to [0] for indices [.tasks]
[00:00:43]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] 863 finished with response BulkByScrollResponse[took=84.8ms,timed_out=false,sliceId=null,updated=0,created=12,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:43]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.kibana/twq5LbPoStaQkP5K-o3-MA] deleting index
[00:00:43]             │ proc [kibana]   log   [12:09:08.280] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:43]             │ proc [kibana]   log   [12:09:08.311] [error][savedobjects-service] Error: Unable to migrate the corrupt Saved Object document index-pattern:test_index*. To prevent Kibana from performing a migration on every restart, please delete or fix this document by ensuring that the namespace and type in the document's id matches the values in the namespace and type fields.
[00:00:43]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.kibana_2/OFFHgn_NTiifD5CAMr9kiQ] update_mapping [_doc]
[00:00:43]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.kibana_2/OFFHgn_NTiifD5CAMr9kiQ] update_mapping [_doc]
[00:00:43]             │ proc [kibana]   log   [12:09:08.452] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:43]             │ proc [kibana]   log   [12:09:08.502] [info][savedobjects-service] Finished in 735ms.
[00:00:43]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:43]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1601553023688098763] [.kibana_2/OFFHgn_NTiifD5CAMr9kiQ] update_mapping [_doc]
[00:00:45]             │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:00:46]             │ debg navigating to discover url: http://localhost:6161/app/discover#/
[00:00:46]             │ debg navigate to: http://localhost:6161/app/discover#/
[00:00:46]             │ debg browser[INFO] http://localhost:6161/app/discover?_t=1601554150881#/ 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:46]             │
[00:00:46]             │ debg browser[INFO] http://localhost:6161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:46]             │ debg ... sleep(700) start
[00:00:47]             │ debg ... sleep(700) end
[00:00:47]             │ debg returned from get, calling refresh
[00:00:47]             │ debg browser[INFO] http://localhost:6161/app/discover?_t=1601554150881#/ 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:47]             │
[00:00:47]             │ debg browser[INFO] http://localhost:6161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:48]             │ debg currentUrl = http://localhost:6161/app/discover#/
[00:00:48]             │          appUrl = http://localhost:6161/app/discover#/
[00:00:48]             │ debg TestSubjects.find(kibanaChrome)
[00:00:48]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:48]             │ debg ... sleep(501) start
[00:00:48]             │ debg browser[INFO] http://localhost:6161/35300/bundles/core/core.entry.js 40:217199 "Detected an unhandled Promise rejection.
[00:00:48]             │      Error: Saved field \"@timestamp\" is invalid for use with the \"Date Histogram\" aggregation. Please select a new field."
[00:00:48]             │ERROR browser[SEVERE] http://localhost:6161/35300/bundles/plugin/data/data.plugin.js 5:526218 Uncaught Error: Saved field "@timestamp" is invalid for use with t…istogram" aggregation. Please select a new field.
[00:00:48]             │ debg ... sleep(501) end
[00:00:48]             │ debg in navigateTo url = http://localhost:6161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:00:48]             │ debg --- retry.try error: URL changed, waiting for it to settle
[00:00:49]             │ debg ... sleep(501) start
[00:00:49]             │ debg ... sleep(501) end
[00:00:49]             │ debg in navigateTo url = http://localhost:6161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:00:49]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:49]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:52]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:52]           └-: discover - context - back navigation
[00:00:52]             └-> "before all" hook
[00:00:52]             └-> "before all" hook
[00:00:52]               │ debg applying update to kibana config: {"timepicker:timeDefaults":"{ \"from\": \"2015-09-18T06:31:44.000Z\", \"to\": \"2015-09-23T18:31:44.000Z\"}"}
[00:00:53]               │ debg navigating to discover url: http://localhost:6161/app/discover#/
[00:00:53]               │ debg navigate to: http://localhost:6161/app/discover#/
[00:00:53]               │ debg browser[INFO] http://localhost:6161/app/discover?_t=1601554157972#/ 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:53]               │
[00:00:53]               │ debg browser[INFO] http://localhost:6161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:53]               │ debg ... sleep(700) start
[00:00:54]               │ debg ... sleep(700) end
[00:00:54]               │ debg returned from get, calling refresh
[00:00:54]               │ debg browser[INFO] http://localhost:6161/app/discover?_t=1601554157972#/ 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:54]               │
[00:00:54]               │ debg browser[INFO] http://localhost:6161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:55]               │ debg currentUrl = http://localhost:6161/app/discover#/
[00:00:55]               │          appUrl = http://localhost:6161/app/discover#/
[00:00:55]               │ debg TestSubjects.find(kibanaChrome)
[00:00:55]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:55]               │ debg ... sleep(501) start
[00:00:55]               │ debg browser[INFO] http://localhost:6161/35300/bundles/core/core.entry.js 40:217199 "Detected an unhandled Promise rejection.
[00:00:55]               │      Error: Saved field \"@timestamp\" is invalid for use with the \"Date Histogram\" aggregation. Please select a new field."
[00:00:55]               │ERROR browser[SEVERE] http://localhost:6161/35300/bundles/plugin/data/data.plugin.js 5:526218 Uncaught Error: Saved field "@timestamp" is invalid for use with t…istogram" aggregation. Please select a new field.
[00:00:55]               │ debg ... sleep(501) end
[00:00:55]               │ debg in navigateTo url = http://localhost:6161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-18T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:00:55]               │ debg --- retry.try error: URL changed, waiting for it to settle
[00:00:56]               │ debg ... sleep(501) start
[00:00:56]               │ debg ... sleep(501) end
[00:00:56]               │ debg in navigateTo url = http://localhost:6161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-18T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:00:56]               │ debg TestSubjects.exists(statusPageContainer)
[00:00:56]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:59]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:59]               │ debg TestSubjects.click(field-agent)
[00:00:59]               │ debg Find.clickByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:00:59]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:01:09]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:01:09]               │      Wait timed out after 10008ms
[00:01:10]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:01:20]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:01:20]               │      Wait timed out after 10049ms
[00:01:20]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:01:30]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:01:30]               │      Wait timed out after 10057ms
[00:01:31]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:01:41]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:01:41]               │      Wait timed out after 10028ms
[00:01:41]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:01:51]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:01:51]               │      Wait timed out after 10042ms
[00:01:52]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:02:02]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:02:02]               │      Wait timed out after 10026ms
[00:02:02]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:02:12]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:02:12]               │      Wait timed out after 10008ms
[00:02:13]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:02:23]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:02:23]               │      Wait timed out after 10014ms
[00:02:23]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:02:33]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:02:33]               │      Wait timed out after 10040ms
[00:02:34]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:02:44]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:02:44]               │      Wait timed out after 10042ms
[00:02:45]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:02:55]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:02:55]               │      Wait timed out after 10044ms
[00:02:55]               │ debg Find.findByCssSelector('[data-test-subj="field-agent"]') with timeout=10000
[00:03:05]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:03:05]               │      Wait timed out after 10013ms
[00:03:06]               │ info Taking screenshot "/dev/shm/workspace/parallel/6/kibana/test/functional/screenshots/failure/context app discover - context - back navigation _before all_ hook.png"
[00:03:06]               │ info Current URL is: http://localhost:6161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-18T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:03:06]               │ info Saving page source to: /dev/shm/workspace/parallel/6/kibana/test/functional/failure_debug/html/context app discover - context - back navigation _before all_ hook.html
[00:03:06]               └- ✖ fail: context app discover - context - back navigation "before all" hook for "should go back after loading"
[00:03:06]               │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
[00:03:06]               │ Wait timed out after 10013ms
[00:03:06]               │     at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:03:06]               │     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:03:06]               │       at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
[00:03:06]               │       at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)
[00:03:06]               │ 
[00:03:06]               │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="field-agent"])
Wait timed out after 10013ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)

Metrics [docs]

✅ unchanged

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

@Dosant Dosant merged commit e98ce15 into elastic:7.x Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants