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

chore(NA): moving @kbn/test-subj-selector into bazel #103562

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

mistic
Copy link
Member

@mistic mistic commented Jun 28, 2021

One step forward on #69706

That PR moves the @kbn/test-subj-selector into Bazel by pushing a BUILD file for that package.
After merging this the package will be consumed from within bazel-bin folder.

@mistic mistic added chore Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.14.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Jun 28, 2021
@mistic mistic requested a review from jbudz June 28, 2021 20:45
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@mistic
Copy link
Member Author

mistic commented Jun 28, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Firefox UI Functional Tests.test/functional/apps/discover/_field_data·ts.discover app discover tab field data the search term should be highlighted in the field data

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:08:36]         └-: discover app
[00:08:36]           └-> "before all" hook in "discover app"
[00:08:36]           └-> "before all" hook in "discover app"
[00:08:36]           └-: discover tab
[00:08:36]             └-> "before all" hook in "discover tab"
[00:08:36]             └-> "before all" hook in "discover tab"
[00:08:36]               │ debg Cleaning all saved objects { space: undefined }
[00:08:36]               │ info deleting batch of 1 objects
[00:08:37]               │ succ deleted 1 objects
[00:08:37]               │ debg resolved import for test/functional/fixtures/kbn_archiver/discover.json to /dev/shm/workspace/parallel/4/kibana/test/functional/fixtures/kbn_archiver/discover.json
[00:08:37]               │ info importing 2 saved objects { space: undefined }
[00:08:37]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/M7ehYPX8SN67j3hSApRGuw] update_mapping [_doc]
[00:08:38]               │ succ import success
[00:08:38]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Loading "mappings.json"
[00:08:38]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Loading "data.json.gz"
[00:08:38]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:08:38]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.22"
[00:08:38]               │ debg [test/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:08:38]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:08:38]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.20"
[00:08:38]               │ debg [test/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:08:38]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:08:38]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Created index "logstash-2015.09.21"
[00:08:38]               │ debg [test/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:08:48]               │ info progress: 12337
[00:08:49]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:08:49]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:08:49]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:08:49]               │ debg replacing kibana config doc: {"defaultIndex":"logstash-*","discover:searchFieldsFromSource":true}
[00:08:50]               │ debg applying update to kibana config: {"timepicker:timeDefaults":"{ \"from\": \"2015-09-18T06:31:44.000Z\", \"to\": \"2015-09-23T18:31:44.000Z\"}"}
[00:08:51]               │ debg navigating to discover url: http://localhost:6141/app/discover#/
[00:08:51]               │ debg navigate to: http://localhost:6141/app/discover#/
[00:08:51]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:51]               │ debg ... sleep(700) start
[00:08:52]               │ debg ... sleep(700) end
[00:08:52]               │ debg returned from get, calling refresh
[00:08:53]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:53]               │ debg currentUrl = http://localhost:6141/app/discover#/
[00:08:53]               │          appUrl = http://localhost:6141/app/discover#/
[00:08:53]               │ debg TestSubjects.find(kibanaChrome)
[00:08:53]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:08:57]               │ debg ... sleep(501) start
[00:08:57]               │ debg ... sleep(501) end
[00:08:57]               │ debg in navigateTo url = http://localhost:6141/app/discover#/
[00:08:57]             └-: field data
[00:08:57]               └-> "before all" hook for "search php should show the correct hit count"
[00:08:57]               └-> search php should show the correct hit count
[00:08:57]                 └-> "before each" hook: global before each for "search php should show the correct hit count"
[00:08:57]                 │ debg QueryBar.setQuery(php)
[00:08:57]                 │ debg TestSubjects.click(queryInput)
[00:08:57]                 │ debg Find.clickByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:08:57]                 │ debg Find.findByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:08:58]                 │ debg TestSubjects.getAttribute(queryInput, value, tryTimeout=120000, findTimeout=10000)
[00:08:58]                 │ debg TestSubjects.find(queryInput)
[00:08:58]                 │ debg Find.findByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:08:58]                 │ debg QueryBar.submitQuery
[00:08:58]                 │ debg TestSubjects.click(queryInput)
[00:08:58]                 │ debg Find.clickByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:08:58]                 │ debg Find.findByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:08:59]                 │ debg isGlobalLoadingIndicatorVisible
[00:08:59]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:08:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:08:59]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:08:59]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:00]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/M7ehYPX8SN67j3hSApRGuw] update_mapping [_doc]
[00:09:03]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:03]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:04]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:05]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:05]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:05]                 │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:05]                 │ debg TestSubjects.find(discoverQueryHits)
[00:09:05]                 │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:05]                 └- ✓ pass  (7.5s) "discover app discover tab field data search php should show the correct hit count"
[00:09:05]               └-> the search term should be highlighted in the field data
[00:09:05]                 └-> "before each" hook: global before each for "the search term should be highlighted in the field data"
[00:09:05]                 │ debg QueryBar.setQuery(php)
[00:09:05]                 │ debg TestSubjects.click(queryInput)
[00:09:05]                 │ debg Find.clickByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:09:05]                 │ debg Find.findByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:09:05]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/M7ehYPX8SN67j3hSApRGuw] update_mapping [_doc]
[00:09:05]                 │ debg TestSubjects.getAttribute(queryInput, value, tryTimeout=120000, findTimeout=10000)
[00:09:05]                 │ debg TestSubjects.find(queryInput)
[00:09:05]                 │ debg Find.findByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:09:05]                 │ debg QueryBar.submitQuery
[00:09:05]                 │ debg TestSubjects.click(queryInput)
[00:09:05]                 │ debg Find.clickByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:09:05]                 │ debg Find.findByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:09:05]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:05]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:06]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:06]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:08]                 │ debg TestSubjects.moveMouseTo(field-extension)
[00:09:08]                 │ debg TestSubjects.find(field-extension)
[00:09:08]                 │ debg Find.findByCssSelector('[data-test-subj="field-extension"]') with timeout=10000
[00:09:08]                 │ debg TestSubjects.click(fieldToggle-extension)
[00:09:08]                 │ debg Find.clickByCssSelector('[data-test-subj="fieldToggle-extension"]') with timeout=10000
[00:09:08]                 │ debg Find.findByCssSelector('[data-test-subj="fieldToggle-extension"]') with timeout=10000
[00:09:08]                 │ debg TestSubjects.find(docTable)
[00:09:08]                 │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:09:09]                 │ debg Firefox stdout: 1624915392083	Marionette	WARN	TimedPromise timed out after 500 ms: stacktrace:
[00:09:09]                 │      TimedPromise/<@chrome://marionette/content/sync.js:228:19
[00:09:09]                 │      TimedPromise@chrome://marionette/content/sync.js:213:10
[00:09:09]                 │      interaction.flushEventLoop@chrome://marionette/content/interaction.js:418:10
[00:09:09]                 │      webdriverClickElement@chrome://marionette/content/interaction.js:179:31
[00:09:09]                 │
[00:09:09]                 │ info Taking screenshot "/dev/shm/workspace/parallel/4/kibana/test/functional/screenshots/failure/discover app discover tab field data the search term should be highlighted in the field data.png"
[00:09:10]                 │ info Current URL is: http://localhost:6141/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:!(extension),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:php),sort:!(!(%27@timestamp%27,desc)))
[00:09:10]                 │ info Saving page source to: /dev/shm/workspace/parallel/4/kibana/test/functional/failure_debug/html/discover app discover tab field data the search term should be highlighted in the field data.html
[00:09:10]                 └- ✖ fail: discover app discover tab field data the search term should be highlighted in the field data
[00:09:10]                 │      StaleElementReferenceError: The element reference of <mark> is stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed
[00:09:10]                 │       at Object.throwDecodedError (node_modules/selenium-webdriver/lib/error.js:550:15)
[00:09:10]                 │       at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:565:13)
[00:09:10]                 │       at Executor.execute (node_modules/selenium-webdriver/lib/http.js:491:26)
[00:09:10]                 │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:09:10]                 │       at Task.exec (test/functional/services/remote/prevent_parallel_calls.ts:28:20)
[00:09:10]                 │ 
[00:09:10]                 │ 

Stack Trace

StaleElementReferenceError: The element reference of <mark> is stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed
    at Object.throwDecodedError (node_modules/selenium-webdriver/lib/error.js:550:15)
    at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:565:13)
    at Executor.execute (node_modules/selenium-webdriver/lib/http.js:491:26)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Task.exec (test/functional/services/remote/prevent_parallel_calls.ts:28:20) {
  remoteStacktrace: 'WebDriverError@chrome://marionette/content/error.js:181:5\n' +
    'StaleElementReferenceError@chrome://marionette/content/error.js:442:5\n' +
    'get@chrome://marionette/content/element.js:239:13\n' +
    'evaluate.fromJSON@chrome://marionette/content/evaluate.js:242:26\n' +
    'dispatch/</req<@chrome://marionette/content/listener.js:101:29\n' +
    'dispatch/<@chrome://marionette/content/listener.js:100:15\n'
}

Metrics [docs]

✅ unchanged

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

@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jun 29, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Jun 29, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
@mistic mistic mentioned this pull request Jul 1, 2021
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed chore release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants