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

Stabilize and bring back flaky tests #13034

Conversation

stacey-gammon
Copy link
Contributor

@stacey-gammon stacey-gammon commented Jul 21, 2017

Work on stabilizing the tests, including bringing back some that were previously skipped due to flakiness:

  • Use our find service functions where applicable instead of going direct to remote so we can concentrate retries in fewer places.
    • Note: I didn't replace this everywhere because that would be a massive undertaking but tried to get it in a few of the areas I was already touching
  • Include a retry and stale element verification inside all the basic find element functions. Otherwise they may return an element without throwing an error, but subsequent calls on the element may throw the ubiquitous stale element error. This should alleviate the need for many of the outer retries.

@stacey-gammon stacey-gammon force-pushed the tests/bring-back-flaky-dashboard-tests branch from ea62d34 to 4bc3a89 Compare July 25, 2017 20:17
@stacey-gammon stacey-gammon changed the title [WIP] Bring back flaky dashboard tests Bring back flaky dashboard tests Jul 26, 2017
@stacey-gammon stacey-gammon force-pushed the tests/bring-back-flaky-dashboard-tests branch from fc4b515 to 8f039f3 Compare July 26, 2017 11:43
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Jul 26, 2017
Caused last 4 builds to fail on master.

Will attempt to bring back in
elastic#13034
stacey-gammon added a commit that referenced this pull request Jul 26, 2017
Caused last 4 builds to fail on master.

Will attempt to bring back in
#13034
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Jul 26, 2017
Caused last 4 builds to fail on master.

Will attempt to bring back in
elastic#13034
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Jul 26, 2017
Caused last 4 builds to fail on master.

Will attempt to bring back in
elastic#13034
@stacey-gammon stacey-gammon force-pushed the tests/bring-back-flaky-dashboard-tests branch from 4974747 to 5dc38b0 Compare July 26, 2017 13:03
stacey-gammon added a commit that referenced this pull request Jul 26, 2017
Caused last 4 builds to fail on master.

Will attempt to bring back in
#13034
stacey-gammon added a commit that referenced this pull request Jul 26, 2017
Caused last 4 builds to fail on master.

Will attempt to bring back in
#13034
@stacey-gammon stacey-gammon changed the title Bring back flaky dashboard tests Stabilize and bring back flaky tests Jul 26, 2017
@stacey-gammon stacey-gammon force-pushed the tests/bring-back-flaky-dashboard-tests branch 3 times, most recently from d8058e3 to 1755be2 Compare July 26, 2017 20:48
@stacey-gammon stacey-gammon force-pushed the tests/bring-back-flaky-dashboard-tests branch from 1755be2 to 1d227fe Compare July 26, 2017 20:54
@stacey-gammon
Copy link
Contributor Author

Passed once

Jenkins, test this

@stacey-gammon
Copy link
Contributor Author

Passed twice 🙏

Jenkins, test this

@stacey-gammon
Copy link
Contributor Author

Passed three times 👏

Jenkins, test this

The retry was moved internally, around a check for stale elements as
well, so this should no longer be neccessary.
@stacey-gammon
Copy link
Contributor Author

Passed four times 🎉

Jenkins, test this

@thomasneirynck thomasneirynck self-requested a review July 27, 2017 15:37
@stacey-gammon
Copy link
Contributor Author

Passed five times ❤️ ❤️

jenkins, test this

@stacey-gammon
Copy link
Contributor Author

cc @elastic/kibana-platform - if anyone wants to take a look, go for it, otherwise I plan on relying on just @thomasneirynck's review. :)

@stacey-gammon
Copy link
Contributor Author

Passed 6 times, wooooooooooot!! Do I keep it going????

Jenkins, test this

@stacey-gammon
Copy link
Contributor Author

Passed 7 times in a row, I feel like that is sufficient.

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

This is such a nice cleanup. Also, great win on stabilizing test suite.

@stacey-gammon stacey-gammon merged commit 589df61 into elastic:master Jul 27, 2017
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Jul 27, 2017
* Stabalize tests and bring back flaky test

* Try to fix flaky map radius visualize test

* fix flaky tile map zoom test

* Try to fix flaky zoom test by avoiding zooming in and out with spy panel open

* Remove duplicate wrapped retry around find methods

The retry was moved internally, around a check for stale elements as
well, so this should no longer be neccessary.
@spalger
Copy link
Contributor

spalger commented Jul 28, 2017

💃 this is awesome!! 💃

stacey-gammon added a commit that referenced this pull request Jul 28, 2017
* Stabalize tests and bring back flaky test

* Try to fix flaky map radius visualize test

* fix flaky tile map zoom test

* Try to fix flaky zoom test by avoiding zooming in and out with spy panel open

* Remove duplicate wrapped retry around find methods

The retry was moved internally, around a check for stale elements as
well, so this should no longer be neccessary.
stacey-gammon added a commit to stacey-gammon/kibana that referenced this pull request Jul 28, 2017
* Stabalize tests and bring back flaky test

* Try to fix flaky map radius visualize test

* fix flaky tile map zoom test

* Try to fix flaky zoom test by avoiding zooming in and out with spy panel open

* Remove duplicate wrapped retry around find methods

The retry was moved internally, around a check for stale elements as
well, so this should no longer be neccessary.
stacey-gammon added a commit that referenced this pull request Jul 28, 2017
* Stabalize tests and bring back flaky test

* Try to fix flaky map radius visualize test

* fix flaky tile map zoom test

* Try to fix flaky zoom test by avoiding zooming in and out with spy panel open

* Remove duplicate wrapped retry around find methods

The retry was moved internally, around a check for stale elements as
well, so this should no longer be neccessary.
@stacey-gammon stacey-gammon deleted the tests/bring-back-flaky-dashboard-tests branch October 24, 2017 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants