getsentry / getsentry/sentry

Flaky test: tests/snuba/api/endpoints/test_discover_saved_queries.py::DiscoverSavedQueriesTest::test_get

Open
#108,912 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/api/endpoints/test_discover_saved_queries.py::DiscoverSavedQueriesTest::test_get
Sentry sha: 4a8dadc9c184ad93a761561c5f57437a29cd3300
Run: https://github.com/getsentry/sentry/actions/runs/22283662403

tests/snuba/api/endpoints/test_discover_saved_queries.py:52: in test_get
    assert response.data[0]["projects"] == self.project_ids
E   assert [455767937502...7679375024128] == [455767937502...7679375024129]
E     
E     At index 0 diff: 4557679375024129 != 4557679375024128
E     
E     Full diff:
E       [
E     +     4557679375024129,
E           4557679375024128,
E     -     4557679375024129,
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/api/endpoints/test_discover_saved_queries.py::DiscoverSavedQueriesTest::test_get and reproduce the failure using the linked GitHub Actions run or the named test. Inspect how response.data[0]["projects"] and self.project_ids are assembled, focusing on the differing order shown in the traceback. Done means the test no longer fails nondeterministically and still verifies the expected project IDs.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.