Skip to content

Improve CLI default for auto uploading commits #2410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 of 9 tasks
smeubank opened this issue Mar 6, 2025 · 0 comments
Open
4 of 9 tasks

Improve CLI default for auto uploading commits #2410

smeubank opened this issue Mar 6, 2025 · 0 comments
Assignees
Labels
CLI Product area Improvement Issue type

Comments

@smeubank
Copy link
Member

smeubank commented Mar 6, 2025

Problem Statement

Currently, when setting commits via sentry-cli, and related tools [webpack-plugin], users must explicitly enable commit-tracking functionality by calling set-commits --auto, or by manually specifying commit ranges. This leads to several issues:

Not On by Default: users miss features like suspect commits and PR comments
Inconsistent Error Handling: cli does not fail gracefully when there is a failure in uploading commits
Not prio'd in docs: if it is a config feature then we must promote it in docs and our wizards to set the config for users more clearly

Suggested Solution

Enable Commit Auto-Association by Default

Modify the default behavior of sentry-cli (or each Sentry integration) to attempt to upload commits automatically.
If no Git repository is detected, gracefully log a warning and continue rather than exiting with an error code.
Improve Error Messaging

Plugin & CI/CD Integration

Each official Sentry build plugin (Xcode, Gradle, Java, Kotlin, Flutter, React Native, etc.) should inherit improved error handling and default to automatic commit uploads.
If the tool detects an environment that is missing .git (e.g., certain Docker or serverless environments), it should log a warning rather than fail.
Checklist of Tools/Plugins and Next Steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Product area Improvement Issue type
Projects
None yet
Development

No branches or pull requests

4 participants