Flaky test: tests/sentry/web/frontend/test_auth_channel_login.py::AuthOrganizationChannelLoginTest::test_redirect_for_logged_in_user_with_different_active_org
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
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: ab471d2d1ede60c8a8c1e3911b78a71a83261eae
Run: https://github.com/getsentry/sentry/actions/runs/22271636761
```
[1m[31mtests/sentry/web/frontend/test_auth_channel_login.py[0m:38: 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
Research direction
Start by running tests/sentry/web/frontend/test_auth_channel_login.py::AuthOrganizationChannelLoginTest::test_redirect_for_logged_in_user_with_different_active_org and compare the redirect chain with the assertion shown in the issue. Trace the authentication flow involved in the differing active organization, and consider the work done when the test passes consistently with the intended redirect behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication, backend, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100