getsentry / getsentry/sentry

Incorrect release date comparison for semver versions when unresolving issues

Open
#89,191 12 comments 0 reactions 0 assignees View on GitHub
Product Area: Issues
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
22h 21m
Merged PRs (30d)
586

Description

### Environment

SaaS (https://sentry.io/)

### Steps to Reproduce

It's not clear how reproducible it is, but here is what we observed in this instance:

1. Mark some issue as resolved in a particular version (semver)
2. Later, have an older version (by semver) but newer (by creation date) report that exception
3. Observe that Sentry compares the releases by release date and unresolves the issue (and linked tickets)

More links available in the linked internal customer case

### Expected Result

Sentry should have compared this by semantic versioning

### Actual Result

Sentry compared by release creation date

![Image](https://github.com/user-attachments/assets/0a940c46-f8af-46e4-94c1-306e49780d0c)

### Product Area

Unknown

### Link

_No response_

### DSN

_No response_

### Version

_No response_

Contributor guide

Open the contributing guide

Research direction

Start from the issue-unresolution path described in the reproduction steps and trace how semantic versions and release creation dates are compared. Done means an older semver release cannot unresolve an issue merely because it was created later, with the behavior covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.