Integration test intermittent failures #1067
Labels
CI/CD
related to CI/CD (not necessarily tests)
developer experience
Developer setup and experience
help wanted
Contributions welcome!
tests
related to tests (not necessarily CI/CD)
Example:
These come up from time to time, and typically re-running the tests works fine.
The issue seems to be that the tests delete a value from Vault, then check to ensure it was deleted. Sometimes, the value was "unexpectedly found" when checked.
My guess is that this is a sort of race condition; Vault is accepting the delete request but actually has not deleted it yet, and the next request comes so quickly that it actually returns the value before deletion happens.
If so, we could solve it in tests by either delaying before checking, or retrying the check on failure (that is, retrying the request if it succeeds and returns the value we expect should not be there).
I prefer the retry mechanism rather than a sleep.
If we still see failures with a retry, then we might have a different problem, where intermittently the delete request itself never gets to Vault or is never acted on. Seems unlikely, but we won't know until we do some retries.
I don't think I've ever seen this running the tests locally, but it's possible that it could happen that way too.
The text was updated successfully, but these errors were encountered: