Skip to content

Page through S3 for smoke test emails#5571

Merged
zachmargolis merged 1 commit intomainfrom
mitchellhenke/fix-smokey
Nov 2, 2021
Merged

Page through S3 for smoke test emails#5571
zachmargolis merged 1 commit intomainfrom
mitchellhenke/fix-smokey

Conversation

@mitchellhenke
Copy link
Contributor

@mitchellhenke mitchellhenke commented Nov 2, 2021

By only getting 100 unsorted objects from S3, there was always a chance the email we were looking for wouldn't be returned, so I've upped the number of objects returned to the maximum and added paging

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/fix-smokey branch 2 times, most recently from 2720549 to 7316e03 Compare November 2, 2021 14:20
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/fix-smokey branch from 7316e03 to e18ac8f Compare November 2, 2021 14:47
@jmhooper
Copy link
Contributor

jmhooper commented Nov 2, 2021

Would it make sense to clear out all the old emails or something like that before running a test? That way we don't have an infinitely growing bucket?

Another alternative: We could add a lifecycle policy to the emails to delete them after 24 hours (@pauldoomgov)

Copy link
Contributor

@solipet solipet left a comment

Choose a reason for hiding this comment

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

👍

@mitchellhenke
Copy link
Contributor Author

Would it make sense to clear out all the old emails or something like that before running a test? That way we don't have an infinitely growing bucket?

Another alternative: We could add a lifecycle policy to the emails to delete them after 24 hours (@pauldoomgov)

The emails do self-delete once they’re used, but the lifecycle is pretty long right now (I think over a week?)

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

@zachmargolis
Copy link
Contributor

admin merging to get around codeclimate issue

@zachmargolis zachmargolis merged commit 1936531 into main Nov 2, 2021
@zachmargolis zachmargolis deleted the mitchellhenke/fix-smokey branch November 2, 2021 16:42
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.

4 participants