Flaky test: tests/sentry/models/test_projectkey.py::ProjectKeyTest::test_get_dsn
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
Description
Failing test: `tests/sentry/models/test_projectkey.py::ProjectKeyTest::test_get_dsn`
Sentry sha: 983e8f9796241853fa908cb57cf3c1b4512eae23
Run: https://github.com/getsentry/sentry/actions/runs/22265951595
```
[1m[31mtests/sentry/models/test_projectkey.py[0m:110: in test_get_dsn
assert key.js_sdk_loader_cdn_url == "http://testserver/js-sdk-loader/abc.min.js"
[1m[31mE AssertionError: assert 'https://js.s...om/abc.min.js' == 'http://tests...er/abc.min.js'[0m
[1m[31mE [0m
[1m[31mE - http://testserver/js-sdk-loader/abc.min.js[0m
[1m[31mE + https://js.sentry-cdn.com/abc.min.js[0m
```
Contributor guide
Research direction
Start with tests/sentry/models/test_projectkey.py::ProjectKeyTest::test_get_dsn and compare the expected testserver URL with the observed Sentry CDN URL. Reproduce the failure using the linked GitHub Actions run or the named test, then verify that the test passes consistently with the intended URL behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100