Skip to content

test: fix race condition with delete tests#139

Merged
tmac1973 merged 3 commits intomainfrom
tmacdonald/GROW-2297/fix-integration-tests
Dec 29, 2023
Merged

test: fix race condition with delete tests#139
tmac1973 merged 3 commits intomainfrom
tmacdonald/GROW-2297/fix-integration-tests

Conversation

@tmac1973
Copy link
Contributor

@tmac1973 tmac1973 commented Dec 29, 2023

Summary:

Seeing random failures due to race condition in which "get_by_guid" test would still return deleted object after delete call, causing subsequent "get details" call to fail with 404.

Details:

Add pytest-order and ensure that delete test always runs last for any given endpoint
Disable slack alerting until tests are working for sure.

Issue:

https://lacework.atlassian.net/browse/GROW-2297

@tmac1973 tmac1973 requested a review from a team as a code owner December 29, 2023 15:27
Tests are randomly failing across all of the modules. Disabled alerting for now.

Also sorted some tests by refactoring the order in which they run.

Signed-off-by: Timothy MacDonald <[email protected]>
@tmac1973 tmac1973 force-pushed the tmacdonald/GROW-2297/fix-integration-tests branch from bcdd0c9 to 5f74348 Compare December 29, 2023 20:29
Signed-off-by: Timothy MacDonald <[email protected]>
@tmac1973 tmac1973 force-pushed the tmacdonald/GROW-2297/fix-integration-tests branch from 6224fd5 to 65d0cc0 Compare December 29, 2023 20:34
@tmac1973 tmac1973 merged commit f7a38e0 into main Dec 29, 2023
@tmac1973 tmac1973 deleted the tmacdonald/GROW-2297/fix-integration-tests branch December 29, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments