Flaky test: tests/sentry/web/frontend/test_auth_channel_login.py::AuthOrganizationChannelLoginTest::test_redirect_for_logged_in_user_with_different_active_org
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/sentry/web/frontend/test_auth_channel_login.py::AuthOrganizationChannelLoginTest::test_redirect_for_logged_in_user_with_different_active_org
Sentry sha: 2597189bd40bd108bd7ec710a885fc0cc3e38548
Run: https://github.com/getsentry/sentry/actions/runs/22282682064
[1m[31mtests/sentry/web/frontend/test_auth_channel_login.py[0m:43: in test_redirect_for_logged_in_user_with_different_active_org
assert response.redirect_chain == [
[1m[31mE AssertionError: assert [('/projects/', 302)] == [('/auth/logi...jects/', 302)][0m
[1m[31mE [0m
[1m[31mE At index 0 diff: ('/projects/', 302) != ('/auth/login/another-org/?next=/projects/', 302)[0m
[1m[31mE [0m
[1m[31mE Full diff:[0m
[1m[31mE [[0m
[1m[31mE ([0m
[1m[31mE - '/auth/login/another-org/?next=/projects/',[0m
[1m[31mE + '/projects/',[0m
[1m[31mE 302,[0m
[1m[31mE ),[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/web/frontend/test_auth_channel_login.py::AuthOrganizationChannelLoginTest::test_redirect_for_logged_in_user_with_different_active_org and reproduce the failure shown in the linked GitHub Actions run. Trace why the redirect chain is /projects/ instead of /auth/login/another-org/?next=/projects/. Done means the test is stable and its expected redirect behavior passes consistently.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100