Flaky test: tests/sentry/services/eventstore/test_models.py::EventNodeStoreTest::test_datetime_uses_timestamp_ms_from_snuba
Open
Nobody has claimed this yet.
flaky-test
Tests
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 23m
- Merged PRs (30d)
- 607
Description
Failing test: tests/sentry/services/eventstore/test_models.py::EventNodeStoreTest::test_datetime_uses_timestamp_ms_from_snuba
Sentry sha: ca860f9c94028d730c6c41f914221b3bb1f4059c
Run: https://github.com/getsentry/sentry/actions/runs/22268328794
[1m[31mtests/sentry/services/eventstore/test_models.py[0m:726: in test_datetime_uses_timestamp_ms_from_snuba
assert second_before_now_str == timestamp_result
[1m[31mE AssertionError: assert '2026-02-22T0....659000+00:00' == '2026-02-22T0....449000+00:00'[0m
[1m[31mE [0m
[1m[31mE - 2026-02-22T02:00:43.449000+00:00[0m
[1m[31mE ? ^ ^^[0m
[1m[31mE + 2026-02-22T02:00:42.659000+00:00[0m
[1m[31mE ? ^ ^^[0m
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/sentry/services/eventstore/test_models.py::EventNodeStoreTest::test_datetime_uses_timestamp_ms_from_snuba and reproduce the failure described in the linked Actions run. Inspect how the expected and returned timestamps are produced around the assertion; done means the test passes reliably without depending on a flaky time value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100