getsentry / getsentry/sentry

Flaky test: tests/sentry/models/test_projectkey.py::ProjectKeyTest::test_get_dsn

Open
#108,824 1 comment 0 reactions 0 assignees View on GitHub
flaky-test Tests
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

```
tests/sentry/models/test_projectkey.py:110: in test_get_dsn
assert key.js_sdk_loader_cdn_url == "http://testserver/js-sdk-loader/abc.min.js"
E AssertionError: assert 'https://js.s...om/abc.min.js' == 'http://tests...er/abc.min.js'
E 
E - http://testserver/js-sdk-loader/abc.min.js
E + https://js.sentry-cdn.com/abc.min.js
```

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.