Flaky test: tests/sentry/services/eventstore/test_models.py::EventTest::test_snuba_data_transaction
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
Description
Failing test: `tests/sentry/services/eventstore/test_models.py::EventTest::test_snuba_data_transaction`
Sentry sha: 94eda9b7a769c0e3366416f4aaa3606d9428cb1d
Run: https://github.com/getsentry/sentry/actions/runs/22291013033
```
[1m[31mtests/sentry/services/eventstore/test_models.py[0m:328: in test_snuba_data_transaction
assert event_from_nodestore.timestamp == event_from_snuba.timestamp
[1m[31mE AssertionError: assert '2026-02-23T02:42:50+00:00' == '2026-02-23T02:42:49+00:00'[0m
[1m[31mE [0m
[1m[31mE - 2026-02-23T02:42:49+00:00[0m
[1m[31mE ? ^^[0m
[1m[31mE + 2026-02-23T02:42:50+00:00[0m
[1m[31mE ? ^^[0m
```
Contributor guide
Research direction
Start by running tests/sentry/services/eventstore/test_models.py::EventTest::test_snuba_data_transaction and compare the timestamp values from nodestore and Snuba. Investigate why the assertion at line 328 can differ by one second, then confirm the test passes reliably across repeated runs and no longer reports the mismatch shown in the linked CI run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100