Skip to content

feat(grouping): Fewer sentinels - #27239

Merged
untitaker merged 5 commits into
masterfrom
feat/malloc-no-sentinel
Jul 9, 2021
Merged

untitaker merged 5 commits into
masterfrom
feat/malloc-no-sentinel

Conversation

@jjbayer

@jjbayer jjbayer commented Jul 8, 2021 •

Copy link
Copy Markdown
Member

Do not mark malloc, free, and throw categories as sentinel.
Skip prefix frames when looking for blaming frame in fallback tree.

https://getsentry.atlassian.net/browse/INGEST-144

@jjbayer
jjbayer requested a review from untitaker July 8, 2021 18:00
value (ignored because stacktrace takes precedence)
"Fatal Error: <hex> / <hex>"
--------------------------------------------------------------------------
app-depth-2:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@untitaker Are all these extra levels OK?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yeah that's okay, this now drops into fallback mode

@jjbayer

jjbayer commented Jul 8, 2021

Copy link
Copy Markdown
Member Author

Snapshot changes look good to me.

_SHOULD_DELETE_DATA = os.environ.get("SENTRY_TEST_GROUPING_DELETE_USELESS_DATA") == "1"
_DELETE_KEYWORDS = os.environ.get("SENTRY_TEST_GROUPING_DELETE_KEYWORDS", "").lower().split(",")
_DELETE_KEYWORDS = [
x for x in os.environ.get("SENTRY_TEST_GROUPING_DELETE_KEYWORDS", "").lower().split(",") if x

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

for context, this fixes a bug where all snapshots were deleted on machines that did not have this environment variable set

@untitaker
untitaker merged commit 5ca00e9 into master Jul 9, 2021
@untitaker
untitaker deleted the feat/malloc-no-sentinel branch July 9, 2021 10:33
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 24, 2021

This branch was successfully deployed

2 active deployments
Preview – sentry — ee2f7141 Deployed Jul 8, 2021 by vercel[bot]
Preview – storybook — ee2f7141 Deployed Jul 8, 2021 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants