Skip to content

Conversation

@seer-by-sentry
Copy link
Contributor

Fixes SENTRY-2DG5. The issue was that: Regression detector double-hashes the SHA1 fingerprint with MD5 during issue group lookup, causing a hash mismatch.

  • Hash the fingerprint before generating the issue group key to match the hashing done during issue creation.
  • This ensures that the correct group is identified when checking for existing issues.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 2822314

Not quite right? Click here to continue debugging with Seer.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 25, 2025
process_occurrence_data(data)
return project_id, tuple(data["fingerprint"])
# Hash the fingerprint to match what's stored in GroupHash during issue creation
hashed_fingerprints = hash_fingerprint([fingerprint])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually equivalent to what process_occurence_data does:

def process_occurrence_data(data: dict[str, Any]) -> None:
    if "fingerprint" not in data:
        return

    # Hash fingerprints to make sure they're a consistent length
    data["fingerprint"] = hash_fingerprint(data["fingerprint"])

So this fix would change nothing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants