-
Notifications
You must be signed in to change notification settings - Fork 333
bullet proof smtp (fix flaky test) #2868
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
Merged
Merged
Changes from 43 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
fc3a6ed
Add more logging and error handling for SMTP
supersven c488acc
Catch in ensureSMTPConnectionTimeout
supersven 38e2844
Improve logging
supersven 29ad2a0
Remove unnecessary do-s
supersven 56f795d
Add type signatures
supersven eeb01df
Simplify expressions
supersven 380ee8e
Guard closing of the test connection
supersven 54fd4ae
Better log prefix strings
supersven 9803807
Add postie to brig integration test dependencies
supersven 5be3c1a
Add first SMTP test
supersven 1e39bb8
Adjust log strings
supersven 24b8b60
Good case: Receive mail via SMTP
supersven 3313c65
Ensure Subject is sent/received
supersven fd77321
Add TODO
supersven 2911b00
Test failed SMTP transaction
supersven a05af68
Formatting...
supersven ff7c366
Add more tests
supersven 6104137
Better test description
supersven 4970cce
Simplify test setup: Get rid on IO
supersven 88b2ce3
More on tests
supersven 741913e
Flush log before error handling
supersven 54d6ec1
Resolve TODOs
supersven f52da62
Add changelog
supersven c8f9fec
Use random port for SMTP server
supersven 5971c6a
Reduce test setup duplication
supersven 41301e3
Re-order functions
supersven beff8f3
Ensure that test mail server ports aren't priviledged and not already…
supersven 1d194b6
Final touches to log/error messages
supersven a302e6a
Add missing Nix dependencies
supersven d614e75
Stricter version definition for postie
supersven 263a8cd
Use Log.field to combine log items
supersven 75b55dc
Add haddock
supersven b8366ba
Simplify: Get rid of Either
supersven d133413
Cleanup
supersven f3e0fc1
Fix typo
supersven 48a481c
Update services/brig/src/Brig/SMTP.hs
supersven 75c8f99
Update services/brig/src/Brig/SMTP.hs
supersven bae38bf
Reduce duplication in logging
supersven 0acd2d9
Fix test flakiness
supersven 791578b
Ensure sockets are always closed
supersven 75446ea
Fix typo
supersven 9167e10
Remove now unused Arbitrary instance
supersven 16675cf
Sync default.nix with cabal file
supersven 7bd5232
Apply suggestions from code review
supersven d2e4f64
Apply suggestions from code review
supersven 7224f36
Hlint
supersven a6d09bc
Add missing import
supersven File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add more logs to SMTP mail sending. Ensure that logs are written before the application fails due to SMTP misconfiguration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.