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

[WPB-15208] kill more flakes #4392

Merged
merged 8 commits into from
Dec 27, 2024
Merged

[WPB-15208] kill more flakes #4392

merged 8 commits into from
Dec 27, 2024

Conversation

fisx
Copy link
Contributor

@fisx fisx commented Dec 27, 2024

https://wearezeta.atlassian.net/browse/WPB-15208

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@echoes-hq echoes-hq bot added the echoes: technical-roadmap/security More specific category, to highlight task that tackle security requirements. label Dec 27, 2024
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Dec 27, 2024
@fisx fisx changed the title [WPB-15208] rm redundant function re-definition. [WPB-15208] kill more flakes Dec 27, 2024
@fisx fisx marked this pull request as ready for review December 27, 2024 14:52
Comment on lines +642 to +650
assertWebSocketDied :: (HasCallStack) => EventWebSocket -> App ()
assertWebSocketDied ws = do
recpol <- do
timeOutSeconds <- asks (.timeOutSeconds)
pure $ limitRetriesByCumulativeDelay (timeOutSeconds * 1_000_000) (constantDelay 800_000)
recoverAll recpol $ \_ ->
assertNoEventHelper ws >>= \case
NoEvent -> assertFailure $ "WebSocket is still open"
WebSocketDied -> pure ()
Copy link
Contributor Author

@fisx fisx Dec 27, 2024

Choose a reason for hiding this comment

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

If we get a NoEvent, and only then a WebSocketDied, the previous version didn't work.

I'm trying magic here. I don't expect it to work, but I'd like to be proven wrong.

Copy link
Contributor

@supersven supersven left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@fisx fisx merged commit eabc5d2 into develop Dec 27, 2024
11 checks passed
@fisx fisx deleted the WPB-15208-kill-more-flakes branch December 27, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: technical-roadmap/security More specific category, to highlight task that tackle security requirements. ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants