Skip to content
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

feat: Print bundle id after artifact bundle creation #1593

Merged
merged 1 commit into from Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/utils/file_upload.rs
Expand Up @@ -465,6 +465,12 @@ fn build_artifact_bundle(
}
);

println!(
"{} Bundle ID: {}",
style(">").dim(),
style(debug_id).yellow(),
);

Ok(archive)
}

Expand Down
Expand Up @@ -3,6 +3,7 @@ $ sentry-cli debug-files bundle-jvm --output . --debug-id 48dee70b-4f3f-4a49-922
? success
> Found 0 files
> Bundled 0 files for upload
> Bundle ID: [..]-[..]-[..]-[..]-[..]
Created ./48dee70b-4f3f-4a49-9223-de441738f7cd.zip

```
Expand Up @@ -3,6 +3,7 @@ $ sentry-cli debug-files bundle-jvm --output ./file.txt --debug-id D384DC3B-AB2F
? failed
> Found 2 files
> Bundled 2 files for upload
> Bundle ID: [..]-[..]-[..]-[..]-[..]
error: Unable to write source bundle
caused by: [..]

Expand Down
Expand Up @@ -3,6 +3,7 @@ $ sentry-cli debug-files bundle-jvm --output i-do-not-exist --debug-id 0B693ABA-
? success
> Found 2 files
> Bundled 2 files for upload
> Bundle ID: [..]-[..]-[..]-[..]-[..]
Created i-do-not-exist/0b693aba-531c-4eb6-99e4-b7320c3c85da.zip

```
Expand Up @@ -3,6 +3,7 @@ $ sentry-cli debug-files bundle-jvm --output . --debug-id a4368a48-0880-40d7-9a2
? success
> Found 2 files
> Bundled 2 files for upload
> Bundle ID: [..]-[..]-[..]-[..]-[..]
Created ./a4368a48-0880-40d7-9a26-c9ef5a84d156.zip

```
Expand Up @@ -7,6 +7,7 @@ $ sentry-cli sourcemaps upload tests/integration/_fixtures/bundle.min.js.map tes
> Rewriting sources
> Adding source map references
> Bundled 2 files for upload
> Bundle ID: [..]-[..]-[..]-[..]-[..]
> Uploaded files to Sentry
> File upload complete (processing pending on server)
> Organization: wat-org
Expand Down
Expand Up @@ -7,6 +7,7 @@ $ sentry-cli sourcemaps upload tests/integration/_fixtures/bundle.min.js.map tes
> Rewriting sources
> Adding source map references
> Bundled 2 files for upload
> Bundle ID: [..]-[..]-[..]-[..]-[..]
> Uploaded files to Sentry
> File upload complete (processing pending on server)
> Organization: wat-org
Expand Down
Expand Up @@ -7,6 +7,7 @@ $ sentry-cli sourcemaps upload tests/integration/_fixtures/bundle.min.js.map tes
> Rewriting sources
> Adding source map references
> Bundled 1 file for upload
> Bundle ID: [..]-[..]-[..]-[..]-[..]
> Uploaded files to Sentry
> File upload complete (processing pending on server)
> Organization: wat-org
Expand Down
Expand Up @@ -14,6 +14,7 @@ $ sentry-cli sourcemaps upload tests/integration/_fixtures/upload_some_debugids
WARN [..]-[..]-[..] [..]:[..]:[..].[..] +[..]:[..] - ~/static/chunks/575-bb7d7e0e6de8d623.js
WARN [..]-[..]-[..] [..]:[..]:[..].[..] +[..]:[..] - ~/static/chunks/pages/asdf-05b39167abbe433b.js
> Bundled 20 files for upload
> Bundle ID: [..]-[..]-[..]-[..]-[..]
> Uploaded files to Sentry
> File upload complete (processing pending on server)
> Organization: wat-org
Expand Down
Expand Up @@ -6,6 +6,7 @@ $ sentry-cli sourcemaps upload tests/integration/_fixtures/bundle.min.js.map --r
> Rewriting sources
> Adding source map references
> Bundled 1 file for upload
> Bundle ID: [..]-[..]-[..]-[..]-[..]
> Uploaded files to Sentry
> File upload complete (processing pending on server)
> Organization: wat-org
Expand Down