getsentry / getsentry/sentry

Flaky test: tests/snuba/tasks/test_unmerge.py::UnmergeTestCase::test_unmerge

Open
#108,872 1 comment 0 reactions 0 assignees View on GitHub

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/snuba/tasks/test_unmerge.py::UnmergeTestCase::test_unmerge
Sentry sha: 405c781e4bcb9380607169cc7de045bcc30823e6
Run: https://github.com/getsentry/sentry/actions/runs/22270628212

tests/snuba/tasks/test_unmerge.py:301: in test_unmerge
    assert list(
E   assert [(7, datetime...imezone.utc))] == [(6, datetime...imezone.utc))]
E     
E     At index 0 diff: (7, datetime.datetime(2026, 2, 22, 4, 47, 37, tzinfo=datetime.timezone.utc), datetime.datetime(2026, 2, 22, 4, 47, 43, tzinfo=datetime.timezone.utc)) != (6, datetime.datetime(2026, 2, 22, 4, 47, 37, tzinfo=datetime.timezone.utc), datetime.datetime(2026, 2, 22, 4, 47, 42, tzinfo=datetime.timezone.utc))
E     
E     Full diff:
E       [
E           (
E     -         6,
E     ?         ^
E     +         7,
E     ?         ^
E               datetime.datetime(2026, 2, 22, 4, 47, 37, tzinfo=datetime.timezone.utc),
E     -         datetime.datetime(2026, 2, 22, 4, 47, 42, tzinfo=datetime.timezone.utc),
E     ?                                                ^
E     +         datetime.datetime(2026, 2, 22, 4, 47, 43, tzinfo=datetime.timezone.utc),
E     ?                                                ^
E           ),
E       ]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tests/snuba/tasks/test_unmerge.py, especially test_unmerge around line 301, and reproduce the failure from the linked GitHub Actions run. Trace why the result differs in count and timestamp, then verify the test passes consistently without changing its intended assertions.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.