Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

e2e: fix ginkgo panic recoveries #3119

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

eduser25
Copy link
Contributor

@eduser25 eduser25 commented Apr 9, 2021

Cleanup will be skipped and test will exit bypassing cleanup
if a different context goroutine panics or asserts without
deferring the ginkgo recover function.

This causes logs to not be collected in some situations (ie,
when a test has some goroutines waiting for NS to come up
but they don't).

Signed-off-by: edu [email protected]

  • Tests [x]

  • Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
    No

@eduser25 eduser25 requested a review from a team as a code owner April 9, 2021 18:36
Cleanup will be skipped and test will exit bypassing cleanup
if a different context goroutine panics or asserts without
deferring the ginkgo recover function.

This causes logs to not be collected in some situations (ie,
when a test has some goroutines waiting for NS to come up
but they don't).

Signed-off-by: edu <[email protected]>
@eduser25 eduser25 merged commit f23f333 into openservicemesh:main Apr 9, 2021
@eduser25 eduser25 deleted the test-fix-branch branch April 9, 2021 19:24
jaellio added a commit to jaellio/osm that referenced this pull request Jun 20, 2022
Cleanup will be skipped and test will exit bypassing cleanup
if a different context goroutine panics or asserts without
deferring the ginkgo recover function.

Related to openservicemesh#3119

Signed-off-by: jaellio <[email protected]>
trstringer pushed a commit that referenced this pull request Jun 21, 2022
* tests: add ginko panic recovery to retry policy e2e

Cleanup will be skipped and test will exit bypassing cleanup
if a different context goroutine panics or asserts without
deferring the ginkgo recover function.

Related to #3119

Signed-off-by: jaellio <[email protected]>

* add more ginkgoRecovers

Signed-off-by: jaellio <[email protected]>

* remove ginkgoRecover from wait.Poll

Signed-off-by: jaellio <[email protected]>

* Upgrade yaml to v3.0.1

Signed-off-by: jaellio <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants