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

fix(escalating_issues): Make daily count tests resilient #48104

Merged
merged 3 commits into from
Apr 28, 2023

Conversation

armenzg
Copy link
Member

@armenzg armenzg commented Apr 27, 2023

Before the tests would intermittently fail depending on the time of execution.

Freeze gun helps making the tests resilient.

Before the tests would intermittently fail depending on the time of execution.

Freeze gun helps making the tests resilient.
@armenzg armenzg self-assigned this Apr 28, 2023
@armenzg armenzg added this to the Escalating Issues V1 milestone Apr 28, 2023
@armenzg armenzg marked this pull request as ready for review April 28, 2023 14:16
@armenzg armenzg requested a review from jangjodi April 28, 2023 14:16
@armenzg armenzg enabled auto-merge (squash) April 28, 2023 14:57
@@ -21,6 +23,8 @@
from sentry.utils.cache import cache
from sentry.utils.snuba import to_start_of_hour

TIME_YESTERDAY = (datetime.now() - timedelta(hours=24)).replace(hour=6)
Copy link
Member

@jangjodi jangjodi Apr 28, 2023

Choose a reason for hiding this comment

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

nit: you can do timedelta(days=1) to make this a bit cleaner, but it's up to you.
thanks for taking this on!

@armenzg armenzg merged commit ca7ddb0 into master Apr 28, 2023
@armenzg armenzg deleted the armenzg/escalating/intermittent-test-daily-count branch April 28, 2023 15:18
@github-actions github-actions bot locked and limited conversation to collaborators May 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants