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

Test: canvas functional smoke test #25262

Merged
merged 4 commits into from
Nov 21, 2018

Conversation

w33ble
Copy link
Contributor

@w33ble w33ble commented Nov 6, 2018

Blocked by #23046 (pending #25828) merged

Adds functional smoke tests for Canvas.

  • Loads and checks the list of workpads
  • Loads the first workpad and checks that elements render

This is the simple workpad it's testing

screenshot 2018-11-19 12 37 07

@w33ble w33ble added v7.0.0 v6.5.0 Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v6.6.0 labels Nov 6, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@elastic elastic deleted a comment from elasticmachine Nov 7, 2018
@elastic elastic deleted a comment from elasticmachine Nov 7, 2018
@elastic elastic deleted a comment from elasticmachine Nov 7, 2018
@elastic elastic deleted a comment from elasticmachine Nov 7, 2018
@elastic elastic deleted a comment from elasticmachine Nov 7, 2018
@elastic elastic deleted a comment from elasticmachine Nov 7, 2018
@spalger spalger added v6.5.1 and removed v6.5.0 labels Nov 9, 2018
@w33ble w33ble self-assigned this Nov 12, 2018
@rashidkpc rashidkpc added the loe:medium Medium Level of Effort label Nov 12, 2018
@spalger spalger added v6.5.1 and removed v6.5.1 labels Nov 14, 2018
@LeeDr LeeDr self-requested a review November 14, 2018 19:13
@LeeDr
Copy link
Contributor

LeeDr commented Nov 14, 2018

@w33ble does the workpad have different data sources and can we add a test that we see the data of each type of data source.

@w33ble
Copy link
Contributor Author

w33ble commented Nov 14, 2018

does the workpad have different data sources

Yup, it tests esdocs and essql, using the logstash data. It doesn't test the output, but it certainly could. That's more than just a smoke test though, and testing expression output would be much faster (and easier) in unit tests.

@LeeDr
Copy link
Contributor

LeeDr commented Nov 14, 2018

I really think a smoke test for Canvas should verify that we get data from all the data sources. I think it could be pretty easy on the data table. Or maybe even just a single metric number from each type?

@w33ble
Copy link
Contributor Author

w33ble commented Nov 14, 2018

I really think a smoke test for Canvas should verify that we get data from all the data sources.

I agree, but it's much faster, and much easier, to do this as an integration test in the unit test pipeline. We don't need Kibana, or even a UI, to test that stuff.

@LeeDr
Copy link
Contributor

LeeDr commented Nov 15, 2018

Here's an example of an issue this test could catch by having one of each type of data source and checking that the data appears;
#25742

@w33ble w33ble force-pushed the test/canvas-functional-smoke-test branch 3 times, most recently from 4ba96f1 to 2d642a1 Compare November 16, 2018 23:09
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@w33ble w33ble force-pushed the test/canvas-functional-smoke-test branch from 6fda5b9 to 2954563 Compare November 20, 2018 16:51
should help with some of the flakey behavior with the selectors
@elastic elastic deleted a comment from elasticmachine Nov 20, 2018
@elastic elastic deleted a comment from elasticmachine Nov 20, 2018
@elastic elastic deleted a comment from elasticmachine Nov 20, 2018
@elastic elastic deleted a comment from elasticmachine Nov 20, 2018
@elastic elastic deleted a comment from elasticmachine Nov 20, 2018
@elastic elastic deleted a comment from elasticmachine Nov 20, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@w33ble w33ble requested a review from spalger November 20, 2018 20:27
Copy link
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.

LGTM!

@spalger spalger changed the title [WIP] Test: canvas functional smoke test Test: canvas functional smoke test Nov 21, 2018
@w33ble w33ble merged commit 4d7c141 into elastic:master Nov 21, 2018
w33ble added a commit that referenced this pull request Nov 21, 2018
~~Blocked by #23046 (pending #25828 merged

Adds functional smoke tests for Canvas. 

- Loads and checks the list of workpads
- Loads the first workpad and checks that elements render

This is the simple workpad it's testing

![screenshot 2018-11-19 12 37 07](https://user-images.githubusercontent.com/404731/48730518-da7ee980-ebf7-11e8-9abb-cf294079bb5f.png)
@w33ble
Copy link
Contributor Author

w33ble commented Nov 21, 2018

6.x 3b7cca2 lies, reverted

w33ble added a commit to w33ble/kibana that referenced this pull request Nov 21, 2018
~~Blocked by elastic#23046 (pending elastic#25828 merged

Adds functional smoke tests for Canvas. 

- Loads and checks the list of workpads
- Loads the first workpad and checks that elements render

This is the simple workpad it's testing

![screenshot 2018-11-19 12 37 07](https://user-images.githubusercontent.com/404731/48730518-da7ee980-ebf7-11e8-9abb-cf294079bb5f.png)
spalger pushed a commit that referenced this pull request Nov 21, 2018
w33ble added a commit to w33ble/kibana that referenced this pull request Nov 21, 2018
~~Blocked by elastic#23046 (pending elastic#25828 merged

Adds functional smoke tests for Canvas. 

- Loads and checks the list of workpads
- Loads the first workpad and checks that elements render

This is the simple workpad it's testing

![screenshot 2018-11-19 12 37 07](https://user-images.githubusercontent.com/404731/48730518-da7ee980-ebf7-11e8-9abb-cf294079bb5f.png)
w33ble added a commit that referenced this pull request Nov 21, 2018
## Summary

CI was broken when enabling functional smoke tests via #25262. The problem is that the Kibana build is broken in master...

I think #25711 broke it, which was merged in between #25262 passing and it being merged (and then CI breaking). So this PR reverts that PR and enabled canvas smoke tests again to see if CI will pass.

- Revert #25711
- Revert 7ae0d28
w33ble added a commit that referenced this pull request Nov 21, 2018
~~Blocked by #23046 (pending #25828 merged

Adds functional smoke tests for Canvas. 

- Loads and checks the list of workpads
- Loads the first workpad and checks that elements render

This is the simple workpad it's testing

![screenshot 2018-11-19 12 37 07](https://user-images.githubusercontent.com/404731/48730518-da7ee980-ebf7-11e8-9abb-cf294079bb5f.png)
w33ble added a commit that referenced this pull request Nov 22, 2018
* chore: revert #25921 / d76c0ae

* Test: canvas functional smoke test (#25262)

~~Blocked by #23046 (pending #25828 merged

Adds functional smoke tests for Canvas. 

- Loads and checks the list of workpads
- Loads the first workpad and checks that elements render

This is the simple workpad it's testing

![screenshot 2018-11-19 12 37 07](https://user-images.githubusercontent.com/404731/48730518-da7ee980-ebf7-11e8-9abb-cf294079bb5f.png)

* test: add ci group tags

backport of #26046

* chore: shot in the dark beforeAll fix

* chore: add some debug logging

in the beforeAll hook, to see where it's getting stuck

* [canvas/archive] remove _1 from .kibana archives to avoid lockup
w33ble added a commit that referenced this pull request Nov 22, 2018
* Test: canvas functional smoke test (#25262)

~~Blocked by #23046 (pending #25828 merged

Adds functional smoke tests for Canvas. 

- Loads and checks the list of workpads
- Loads the first workpad and checks that elements render

This is the simple workpad it's testing

![screenshot 2018-11-19 12 37 07](https://user-images.githubusercontent.com/404731/48730518-da7ee980-ebf7-11e8-9abb-cf294079bb5f.png)

* [canvas/archive] remove _1 from .kibana archives to avoid lockup

(cherry picked from commit d51e554)
@LeeDr
Copy link
Contributor

LeeDr commented Nov 26, 2018

@w33ble thanks!

One question, does it use the es docs data source?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v6.5.2 v6.6.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants