feat(code-mappings): Add code-mappings upload command scaffold#3207
Merged
feat(code-mappings): Add code-mappings upload command scaffold#3207
code-mappings upload command scaffold#3207Conversation
Contributor
|
Add a new `code-mappings` subcommand group with an `upload` subcommand that reads and validates a JSON file of code mappings. This is the first step toward CLI support for bulk code mapping uploads to Sentry.
fb49d43 to
029aeaf
Compare
Member
szokeasaurusrex
left a comment
There was a problem hiding this comment.
I think we may want some more detailed help texts
Add descriptive help text explaining what code mappings are and how they work. Replace unwrap with expect for the required path argument. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
szokeasaurusrex
approved these changes
Mar 19, 2026
Member
szokeasaurusrex
left a comment
There was a problem hiding this comment.
lgtm, see comments before merge
CodeMapping is only deserialized from the input JSON file in this PR. Serialize will be added back when needed in the API integration PR. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

#skip-changelog
Add the
sentry-cli code-mappings uploadsubcommand group and theuploadsubcommand with file parsing and validation.
This is the first in a stack of 4 PRs to support bulk uploading code mappings
from a JSON file — useful for Java/Android multi-module projects that need
dozens of mappings.
This PR adds:
repos/deployspatternPATH,--repo,--default-branchStack: #3207 → #3208 → #3209 → #3210
Backend PRs: getsentry/sentry#109783, getsentry/sentry#109785, getsentry/sentry#109786
Closes getsentry/sentry-android-gradle-plugin#1076
Closes getsentry/sentry-android-gradle-plugin#1077