-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Run Kibana tests on Cloud meta issue #17525
Comments
It would be great if we could have ECE available on CI with the nightly snapshots of ES. This was we could always use it to spin up clusters. I assume it would be faster/cleaner than running from source, which is what we do now. |
Snapshots are being deployed nightly now on staging Elastic Cloud. But we don't have the API yet to automate creating an Elasticsearch node/cluster. But they're working on it. Using an already started Cloud Elasticsearch node would certainly save time starting up Elasticsearch as part of our CI jobs. But we couldn't let multiple CI jobs hit the same cluster at the same time because our tests delete the .kibana index all the time.
|
The best approach is to use the API to spin up an ES node and tear it down after the test is run (success or failure). We'll need to capture logs/state when a test fails to debug why the test failed. For now, its even ok to leave the cluster running if the tests failed. |
So far issues observed when trying to run kibana tests on a cloud instance: 1- Selectors are not being found. It is unclear yet if it is timing and/or just bad selectors. I did notice some of the selectors are using nth-child, which is fragile, we should look into adding data-test-subj instead for these tests. (Note: The kibana tests are dependent on everything contained in the file, so tests may not run individually from a file if they depend on the previous test for data) |
I don't believe issue #13232 listed in the description is related to cloud testing, so I am going to remove it from this meta issue. |
To address the issue of selectors not being found, I have opened #19679, these deal with failures not with the use of .ng-scope which should be removed. We need to move towards data-test-subj. |
Addressing #19679 has eliminated all but 12 or so failures for me on cloud testing. So I think that is a good start for 6.2.4 baseline. |
Here are my results and failure analysis: 6.2.4 Baseline Results Summary Failure Analysis
|
The visualize app failures are mac platform specific, so we only have 9 more to go |
The Kibana parts of this are now complete.
|
Describe the feature: We need to be able to run Kibana tests against Elastic Cloud deployments.
'--server.maxPayloadBytes=1648576', //default is 1048576
in tasks/config/run.js but I don't think we can tweak that kibana setting on Elastic Cloud so we should skip testtest\functional\apps\management\_test_huge_fields.js
Add option to exclude tests from cloud run #19228https://github.com/elastic/kibana/blob/master/src/functional_test_runner/lib/config/schema.js#L66
There is an existing Kibana issue where the play button doesn't appear in the Dev Tools > Console. We could work-around it by either re-arranging the order of tests in config.js soconsole
isn't first, or by adding a page refresh Dev Tools Console sometimes doesn't show the Play arrow button #13232The text was updated successfully, but these errors were encountered: