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

ROX-19899: Implement SuiteSetup recovery to encapsulate critical cleanup #1342

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

Stringy
Copy link
Collaborator

@Stringy Stringy commented Sep 21, 2023

Description

Testify does not currently support guaranteed execution of TearDownSuite (see issue stretchr/testify#1123) This PR provides a function that wraps common and critical teardown code that has historically affected our tests considerably.

In particular:

  • stopping collector
  • cleaning up test containers
  • stopping the stats container

This will mean that even if a test setup fails, subsequent tests should have the same "clean slate," and won't fail.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

Tested locally, using normal test execution and with a forced panic

@Stringy Stringy requested a review from a team as a code owner September 21, 2023 14:04
@Stringy Stringy force-pushed the giles/ROX-14542-no-more-boltdb branch from 021eacb to 41c64c1 Compare September 21, 2023 14:20
@Stringy Stringy force-pushed the giles/ROX-14542-guarantee-test-cleanup branch from 4cb00d0 to c21d7e6 Compare September 21, 2023 14:20
Copy link
Collaborator

@Molter73 Molter73 left a comment

Choose a reason for hiding this comment

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

LGTM!

@github-actions
Copy link

Kernel Method Without Collector Time (secs) With Collector Time (secs) Baseline median (secs) Collector median (secs) PValue

@Stringy Stringy changed the title Implement SuiteSetup recovery to encapsulate critical cleanup ROX-19899: Implement SuiteSetup recovery to encapsulate critical cleanup Oct 2, 2023
Base automatically changed from giles/ROX-14542-no-more-boltdb to master October 2, 2023 15:57
@Stringy Stringy force-pushed the giles/ROX-14542-guarantee-test-cleanup branch from 2b0fce7 to 5fb19b0 Compare October 2, 2023 16:07
@Stringy Stringy merged commit 135970f into master Oct 3, 2023
75 of 82 checks passed
@Stringy Stringy deleted the giles/ROX-14542-guarantee-test-cleanup branch October 3, 2023 12:31
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.

2 participants