getsentry / getsentry/sentry

Flaky test: tests/sentry/uptime/endpoints/test_organization_uptime_stats.py::OrganizationUptimeStatsEndpointWithEAPTests::test_missing_ok_checks_around_downtime

Open
#109,443 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/uptime/endpoints/test_organization_uptime_stats.py::OrganizationUptimeStatsEndpointWithEAPTests::test_missing_ok_checks_around_downtime`
Sentry sha: 4a80dec864917198998a489a30e28e2fbdcef252
Run: https://github.com/getsentry/sentry/actions/runs/22426769699

```
tests/sentry/uptime/endpoints/test_organization_uptime_stats.py:284: in test_missing_ok_checks_around_downtime
timeline = data[str(detector.id)]
E KeyError: '946'
```

Contributor guide

Open the contributing guide

Research direction

Start with tests/sentry/uptime/endpoints/test_organization_uptime_stats.py, especially OrganizationUptimeStatsEndpointWithEAPTests::test_missing_ok_checks_around_downtime, and review the setup around the failing timeline lookup. Use the linked GitHub Actions run as the failure reference and reproduce the test to identify why the detector key is intermittently absent. Done means the test reliably passes and still verifies missing OK checks around downtime.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.