getsentry / getsentry/sentry

Flaky test: tests/sentry/web/frontend/test_auth_login.py::AuthLoginTest::test_login_ratelimited_ip_gets

Open
#108,835 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/sentry/web/frontend/test_auth_login.py::AuthLoginTest::test_login_ratelimited_ip_gets
Sentry sha: c5a059afe94a41739cafe1be0cbb7bcaea728b8f
Run: https://github.com/getsentry/sentry/actions/runs/22266452557

tests/sentry/web/frontend/test_auth_login.py:87: in test_login_ratelimited_ip_gets
    assert resp.status_code == 429
E   assert 200 == 429
E    +  where 200 = <HttpResponse status_code=200, "text/html">.status_code

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/sentry/web/frontend/test_auth_login.py::AuthLoginTest::test_login_ratelimited_ip_gets and review the linked Actions run for the intermittent 200 response. Trace the test's rate-limit setup and make the test reliably verify the expected 429 status, then rerun this test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.