Skip to content

test(replays): fix flaky test_export_replay_row_set #113742

Merged
joshuarli merged 1 commit intomasterfrom
fix/replay-data-export-timestamp
Apr 22, 2026
Merged

test(replays): fix flaky test_export_replay_row_set #113742
joshuarli merged 1 commit intomasterfrom
fix/replay-data-export-timestamp

Conversation

@joshuarli
Copy link
Copy Markdown
Member

@joshuarli joshuarli commented Apr 22, 2026

fixes https://sentry.sentry.io/issues/6918185853/events/?alert_rule_id=14448768&project=2423079 / SENTRY-TESTS-19MW

t0 was hardcoded to datetime(2025, 1, 1), so replay rows written at that timestamp fell outside the export query window once wall-clock time passed that date, causing assert 2 == 3 failures.

Replaced with utcnow() - 1 hour so the test data is always recent relative to when the test runs.

…etime(2025,1,1) with utcnow()-1h so rows stay in query window
@joshuarli joshuarli requested a review from a team as a code owner April 22, 2026 20:55
@joshuarli joshuarli changed the title test(replays): fix test_export_replay_row_set — replace hardcoded 2025-01-01 timestamp test(replays): fix flaky test_export_replay_row_set Apr 22, 2026
@joshuarli joshuarli merged commit feda1ea into master Apr 22, 2026
53 checks passed
@joshuarli joshuarli deleted the fix/replay-data-export-timestamp branch April 22, 2026 22:32
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