-
-
Notifications
You must be signed in to change notification settings - Fork 242
feat(code-mappings): Add batch splitting for large uploads #3210
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0b23cdb
feat(cli): Add batch splitting for code-mappings upload
romtsn 8e00d0a
ref(cli): Only show error rows in code-mappings upload table
romtsn 334d54f
test(code-mappings): Add test for HTTP 207 partial success response
romtsn 1549990
fix(code-mappings): Include batch errors in summary error count
romtsn 3649ce3
style(code-mappings): Inline format arg to fix clippy warning
romtsn 75ceb8c
ref(code-mappings): Address review feedback on batching
romtsn 0a9c066
ref(code-mappings): Drop unused Clone derive from BulkCodeMapping
romtsn 80f1418
docs(changelog): Add code-mappings upload entry
romtsn e30e462
docs(changelog): Expand code-mappings upload entry with details
romtsn f795997
ref(code-mappings): Remove redundant 207 partial error test
romtsn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
17 changes: 17 additions & 0 deletions
17
tests/integration/_cases/code_mappings/code-mappings-upload-partial-error.trycmd
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ``` | ||
| $ sentry-cli code-mappings upload tests/integration/_fixtures/code_mappings/mappings.json --org wat-org --project wat-project --repo owner/repo --default-branch main | ||
| ? failed | ||
| Uploading 2 code mapping(s)... | ||
| +------------------+---------------------------------------------+-------------------+ | ||
| | Stack Root | Source Root | Detail | | ||
| +------------------+---------------------------------------------+-------------------+ | ||
| | com/example/maps | modules/maps/src/main/java/com/example/maps | duplicate mapping | | ||
| +------------------+---------------------------------------------+-------------------+ | ||
|
|
||
| Created: 1, Updated: 0, Errors: 1 | ||
| error: 1 error(s) during upload. See details above. | ||
|
|
||
| Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output. | ||
| Please attach the full debug log to all bug reports. | ||
|
|
||
| ``` |
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
9 changes: 9 additions & 0 deletions
9
tests/integration/_responses/code_mappings/post-bulk-partial-error.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "created": 1, | ||
| "updated": 0, | ||
| "errors": 1, | ||
| "mappings": [ | ||
| {"stackRoot": "com/example/core", "sourceRoot": "modules/core/src/main/java/com/example/core", "status": "created"}, | ||
| {"stackRoot": "com/example/maps", "sourceRoot": "modules/maps/src/main/java/com/example/maps", "status": "error", "detail": "duplicate mapping"} | ||
| ] | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.