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

Flaky test: deleting elasticsearch documents at end of test #681

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

lancewf
Copy link
Contributor

@lancewf lancewf commented Jun 25, 2019

🔩 Description

Retrying failed attempts at deleting all elasticsearch documents.

⛓️ Related Resources

#613

✅ Checklist

  • Necessary tests added/updated?
  • Necessary docs added/updated?
  • Code actually executed?
  • Vetting performed (unit tests, lint, etc.)?

Signed-off-by: Lance Finfrock <[email protected]>
@lancewf lancewf added the WIP label Jun 25, 2019
@phiggins
Copy link
Contributor

In the past when I've had integration tests that ran against a live elasticsearch instance, instead of deleting the documents I'd delete and recreate the indexes. I looked into this a bit before to try to fix these flaky test errors but I couldn't figure out where all the index creation happened.

@lancewf
Copy link
Contributor Author

lancewf commented Jun 25, 2019

Thank @phiggins I will try that out.

@lancewf lancewf added the compliance reporting This issue or pull request applies to the compliance reporting part of Automate label Jun 27, 2019
@lancewf
Copy link
Contributor Author

lancewf commented Jul 1, 2019

I feel deleting and recreating the indexes after every test is a little too much. I want to go with retrying deleting the documents for now.

@lancewf lancewf changed the title WIP: Flaky test: deleting elasticsearch documents at end of test Flaky test: deleting elasticsearch documents at end of test Jul 1, 2019
@lancewf lancewf requested a review from a team July 1, 2019 17:33
@lancewf lancewf removed the WIP label Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compliance reporting This issue or pull request applies to the compliance reporting part of Automate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants