Skip to content

Infrastructure: add sentry crash reporting#7664

Closed
vadi2 wants to merge 95 commits intodevelopmentfrom
add-sentry-crash-reporting
Closed

Infrastructure: add sentry crash reporting#7664
vadi2 wants to merge 95 commits intodevelopmentfrom
add-sentry-crash-reporting

Conversation

@vadi2
Copy link
Copy Markdown
Member

@vadi2 vadi2 commented Jan 15, 2025

Brief overview of PR changes/additions

Add sentry for reporting when crashes happen.

Motivation for adding to Mudlet

So we can tell when Mudlet crashes - and fix any such issues!

Other info (issues closed, discussion etc)

IP address collection has been disabled in sentry settings to protect privacy of those who upload a crash.

/claim #7126, fixes #7126.

This is a re-run of #7618 but from the Mudlet repository, enabling secrets and thus sentry upload.

This PR is still a work in progress. TODO:

  • get Linux to report line #'s in stack traces reliably
  • add sentry integration into AppImages, enable it for testing/ptb/release builds
  • upload source code in Linux build
  • upload debug symbols for Mudlet and Luarocks .so's to sentry for Linux
  • add sentry integration for macOS and test
  • upload source code in macOS build (duplicate uploads for simplicity)
  • upload debug symbols for Mudlet and Luarocks .so's to sentry for macOS
  • add sentry integration into macOS packaging, enable it for testing/ptb/release builds
  • add sentry integration into Windows test zips and installers, enable it for testing/ptb/release builds
  • upload source code in Linux build
  • upload debug symbols for Mudlet and Luarocks .so's to sentry for Linux

vadi2 and others added 30 commits December 29, 2024 18:57
  Error:   CURL: Required feature AsynchDNS is not found
…add-sentry-crash-reporting

# Conflicts:
#	.github/workflows/build-mudlet.yml
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Here's a summary of the key changes in this PR that adds Sentry crash reporting to Mudlet:

Adds Sentry crash reporting integration with user privacy controls and build-specific configurations:

  • Added Sentry native SDK v0.7.17 integration with crashpad handler for crash reporting
  • Implemented user-configurable crash reporting settings in preferences dialog for both release and testing builds
  • Added debug symbol and source code uploading to sentry.io for better crash analysis
  • Disabled IP address collection in sentry settings to protect user privacy
  • Added conditional compilation guards to enable/disable Sentry features based on build type

Key implementation points:

  • Crash reports are off by default for releases but enabled for testing builds
  • Sentry integration is properly isolated behind USE_SENTRY compile flag
  • Includes proper cleanup and initialization of Sentry resources
  • Added GCC 11 compiler requirement for better C++20 support
  • Implemented build system changes to handle debug symbols and crashpad handler

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

11 file(s) reviewed, 8 comment(s)
Edit PR Review Bot Settings | Greptile

@vadi2 vadi2 closed this Jan 12, 2026
@vadi2 vadi2 deleted the add-sentry-crash-reporting branch January 12, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement sentry.io's Qt SDK for crash reporting

1 participant