Skip to content

feat(code-mappings): Add code-mappings upload command scaffold#3207

Open
romtsn wants to merge 2 commits intomasterfrom
rz/feat/code-mappings-scaffold
Open

feat(code-mappings): Add code-mappings upload command scaffold#3207
romtsn wants to merge 2 commits intomasterfrom
rz/feat/code-mappings-scaffold

Conversation

@romtsn
Copy link
Member

@romtsn romtsn commented Mar 12, 2026

#skip-changelog

Add the sentry-cli code-mappings upload subcommand group and the upload
subcommand 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:

  • Command scaffold following the repos/deploys pattern
  • JSON file reading and validation (empty arrays, empty stackRoot/sourceRoot)
  • CLI args: positional PATH, --repo, --default-branch
  • Help and no-subcommand trycmd integration tests

Stack: #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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 12, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 072fa6b

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.
@romtsn romtsn marked this pull request as ready for review March 12, 2026 12:08
@romtsn romtsn requested review from a team and szokeasaurusrex as code owners March 12, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement mappings.json parsing and validation Add code-mappings upload command structure

1 participant