Flaky test: tests/snuba/api/endpoints/test_discover_saved_queries.py::DiscoverSavedQueriesTest::test_get
Nobody has claimed this yet.
- 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
[1m[31mtests/snuba/api/endpoints/test_discover_saved_queries.py[0m:52: in test_get
assert response.data[0]["projects"] == self.project_ids
[1m[31mE assert [455767937502...7679375024128] == [455767937502...7679375024129][0m
[1m[31mE [0m
[1m[31mE At index 0 diff: 4557679375024129 != 4557679375024128[0m
[1m[31mE [0m
[1m[31mE Full diff:[0m
[1m[31mE [[0m
[1m[31mE + 4557679375024129,[0m
[1m[31mE 4557679375024128,[0m
[1m[31mE - 4557679375024129,[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/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