Skip to content

fix(seer): Match event frames to the most specific code mapping - #131099

Open
wedamija wants to merge 2 commits into
masterfrom
danf/seer-tb-event-match-specific
Open

wedamija wants to merge 2 commits into
masterfrom
danf/seer-tb-event-match-specific

Conversation

@wedamija

Copy link
Copy Markdown
Member

Part of the Seer token-based billing work. Token-billed orgs don't pick repos in Seer settings, Seer just uses whatever repos are linked to the project.

Follow-up to #130856. For Autofix we put the repos that match the event's stack frames first, so the 8-repo limit doesn't cut them. The match took the first code mapping in the shared order, and that order puts user-made mappings first. A user-made mapping with an empty stack root matches every frame, so it always won and the repo the frame really came from was never found.

About 30% of projects with more than 8 linked repos have a mapping like that, so this takes the matching mapping with the longest stack root instead. Equal roots still follow the shared order.

Refs CW-2261

The shared code mapping order puts user-made mappings first, so a user-made catch-all mapping claimed every frame. Take the matching mapping with the longest stack root.

Refs CW-2261
@wedamija
wedamija requested a review from a team as a code owner November 13, 2026 18:54
@linear-code

linear-code Bot commented Nov 13, 2026

Copy link
Copy Markdown

CW-2261

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 13, 2026
@wedamija
wedamija requested a review from srest2021 November 13, 2026 19:01

This branch was successfully deployed

1 active deployment
Preview — 255176b7 Deployed Nov 13, 2026 by vercel[bot]
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.

1 participant