From 15a87f746a5ee6c07aff892473a6d2a8c564b295 Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Thu, 2 Jan 2025 09:25:01 +0000 Subject: [PATCH 1/2] release: 2.40.0 --- CHANGELOG.md | 31 +++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- npm-binary-distributions/darwin/package.json | 2 +- .../linux-arm/package.json | 2 +- .../linux-arm64/package.json | 2 +- .../linux-i686/package.json | 2 +- .../linux-x64/package.json | 2 +- .../win32-i686/package.json | 2 +- .../win32-x64/package.json | 2 +- package.json | 16 +++++----- 11 files changed, 48 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb2ec7ad36..f34ebd2525 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,37 @@ "You know what they say. Fool me once, strike one, but fool me twice... strike three." — Michael Scott +## 2.40.0 + +### Various fixes & improvements + +- build: Change release `opt-level` (#2325) by @szokeasaurusrex +- build: Make backtraces useable in release builds (#2324) by @szokeasaurusrex +- ref(sourcemaps): Reword "no sourcemap ref" (#2320) by @szokeasaurusrex +- test(proguard): Add chunk upload tests (#2322) by @szokeasaurusrex +- ref(proguard): Use existing chunked upload logic (#2318) by @szokeasaurusrex +- ref(chunks): Remove `upload-dif` reference from `poll_assemble` (#2321) by @szokeasaurusrex +- ref(chunks): Make `render_detail` take `Option<&str>` (#2317) by @szokeasaurusrex +- ref(chunks): Extract upload logic from `upload_difs_chunked` (#2316) by @szokeasaurusrex +- ref(chunks): Rename `upload` module to `options` (#2315) by @szokeasaurusrex +- ref(chunks): Make `ChunkOptions` a `struct` (#2314) by @szokeasaurusrex +- fix(chunking): Remove power-of-two chunk size restriction (#2312) by @szokeasaurusrex +- ref(dif): Use `&str` in `DifUpload` struct (#2307) by @szokeasaurusrex +- ref(dif): Genericize `poll_assemble` (#2300) by @szokeasaurusrex +- feat(release): Replace release bot with GH app (#2306) by @Jeffreyhung +- feat(debugid): Update debug ID snippet to write on `globalThis` when available (#2301) by @lforst +- fix(proguard): Add leading `/` to uploaded Proguard file name (#2304) by @szokeasaurusrex +- ref(dif): Genericize `try_assemble` `options` parameter (#2299) by @szokeasaurusrex +- ref(api): Rename `ChunkedUploadOptions` to indicate they are set by server (#2298) by @szokeasaurusrex +- ref(proguard): Use `Chunked` for proguard upload (#2296) by @szokeasaurusrex +- ref(chunks): Make `ChunkedDifRequest` take `Cow<'_, str>` for `name` (#2295) by @szokeasaurusrex +- ref(proguard): Replace `MappingRef` with `ProguardMapping` (#2294) by @szokeasaurusrex +- ref(proguard): Create new `proguard` `utils` submodule (#2293) by @szokeasaurusrex +- ref(proguard): Directly open paths as `ByteView` (#2292) by @szokeasaurusrex +- ref(dif): Put hash in `ChunkedDifRequest` (#2290) by @szokeasaurusrex + +_Plus 15 more_ + ## 2.39.1 ### Various fixes & improvements diff --git a/Cargo.lock b/Cargo.lock index dce099d0eb..3a36beaf5c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2561,7 +2561,7 @@ dependencies = [ [[package]] name = "sentry-cli" -version = "2.39.1" +version = "2.40.0" dependencies = [ "anyhow", "anylog", diff --git a/Cargo.toml b/Cargo.toml index 565c8273d3..d0877aed98 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ authors = ["Armin Ronacher "] build = "build.rs" name = "sentry-cli" -version = "2.39.1" +version = "2.40.0" edition = "2021" rust-version = "1.80" diff --git a/npm-binary-distributions/darwin/package.json b/npm-binary-distributions/darwin/package.json index e158b4ccce..49037f8eb6 100644 --- a/npm-binary-distributions/darwin/package.json +++ b/npm-binary-distributions/darwin/package.json @@ -1,6 +1,6 @@ { "name": "@sentry/cli-darwin", - "version": "2.39.1", + "version": "2.40.0", "description": "The darwin distribution of the Sentry CLI binary.", "repository": "https://github.com/getsentry/sentry-cli", "license": "BSD-3-Clause", diff --git a/npm-binary-distributions/linux-arm/package.json b/npm-binary-distributions/linux-arm/package.json index dfc2965d83..43eb7401b3 100644 --- a/npm-binary-distributions/linux-arm/package.json +++ b/npm-binary-distributions/linux-arm/package.json @@ -1,6 +1,6 @@ { "name": "@sentry/cli-linux-arm", - "version": "2.39.1", + "version": "2.40.0", "description": "The linux arm distribution of the Sentry CLI binary.", "repository": "https://github.com/getsentry/sentry-cli", "license": "BSD-3-Clause", diff --git a/npm-binary-distributions/linux-arm64/package.json b/npm-binary-distributions/linux-arm64/package.json index f8d3d09455..13b05dfceb 100644 --- a/npm-binary-distributions/linux-arm64/package.json +++ b/npm-binary-distributions/linux-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@sentry/cli-linux-arm64", - "version": "2.39.1", + "version": "2.40.0", "description": "The linux arm64 distribution of the Sentry CLI binary.", "repository": "https://github.com/getsentry/sentry-cli", "license": "BSD-3-Clause", diff --git a/npm-binary-distributions/linux-i686/package.json b/npm-binary-distributions/linux-i686/package.json index 80038a14f4..19647792c2 100644 --- a/npm-binary-distributions/linux-i686/package.json +++ b/npm-binary-distributions/linux-i686/package.json @@ -1,6 +1,6 @@ { "name": "@sentry/cli-linux-i686", - "version": "2.39.1", + "version": "2.40.0", "description": "The linux x86 and ia32 distribution of the Sentry CLI binary.", "repository": "https://github.com/getsentry/sentry-cli", "license": "BSD-3-Clause", diff --git a/npm-binary-distributions/linux-x64/package.json b/npm-binary-distributions/linux-x64/package.json index c6389245b3..9ac7821dc8 100644 --- a/npm-binary-distributions/linux-x64/package.json +++ b/npm-binary-distributions/linux-x64/package.json @@ -1,6 +1,6 @@ { "name": "@sentry/cli-linux-x64", - "version": "2.39.1", + "version": "2.40.0", "description": "The linux x64 distribution of the Sentry CLI binary.", "repository": "https://github.com/getsentry/sentry-cli", "license": "BSD-3-Clause", diff --git a/npm-binary-distributions/win32-i686/package.json b/npm-binary-distributions/win32-i686/package.json index 4ac469c4c2..73558e9485 100644 --- a/npm-binary-distributions/win32-i686/package.json +++ b/npm-binary-distributions/win32-i686/package.json @@ -1,6 +1,6 @@ { "name": "@sentry/cli-win32-i686", - "version": "2.39.1", + "version": "2.40.0", "description": "The windows x86 and ia32 distribution of the Sentry CLI binary.", "repository": "https://github.com/getsentry/sentry-cli", "license": "BSD-3-Clause", diff --git a/npm-binary-distributions/win32-x64/package.json b/npm-binary-distributions/win32-x64/package.json index 793d540459..9b1895f6f7 100644 --- a/npm-binary-distributions/win32-x64/package.json +++ b/npm-binary-distributions/win32-x64/package.json @@ -1,6 +1,6 @@ { "name": "@sentry/cli-win32-x64", - "version": "2.39.1", + "version": "2.40.0", "description": "The windows x64 distribution of the Sentry CLI binary.", "repository": "https://github.com/getsentry/sentry-cli", "license": "BSD-3-Clause", diff --git a/package.json b/package.json index 844902386e..e4714439d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sentry/cli", - "version": "2.39.1", + "version": "2.40.0", "description": "A command line utility to work with Sentry. https://docs.sentry.io/hosted/learn/cli/", "repository": "git://github.com/getsentry/sentry-cli.git", "homepage": "https://docs.sentry.io/hosted/learn/cli/", @@ -30,13 +30,13 @@ "prettier": "2.8.8" }, "optionalDependencies": { - "@sentry/cli-darwin": "2.39.1", - "@sentry/cli-linux-arm": "2.39.1", - "@sentry/cli-linux-arm64": "2.39.1", - "@sentry/cli-linux-i686": "2.39.1", - "@sentry/cli-linux-x64": "2.39.1", - "@sentry/cli-win32-i686": "2.39.1", - "@sentry/cli-win32-x64": "2.39.1" + "@sentry/cli-darwin": "2.40.0", + "@sentry/cli-linux-arm": "2.40.0", + "@sentry/cli-linux-arm64": "2.40.0", + "@sentry/cli-linux-i686": "2.40.0", + "@sentry/cli-linux-x64": "2.40.0", + "@sentry/cli-win32-i686": "2.40.0", + "@sentry/cli-win32-x64": "2.40.0" }, "scripts": { "postinstall": "node ./scripts/install.js", From 6b72bd7abfe01f7c51aab3fb6a3a4c84d8e966ab Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Thu, 2 Jan 2025 10:56:16 +0100 Subject: [PATCH 2/2] meta: Update changelog --- CHANGELOG.md | 72 +++++++++++++++++++++++++++++++++++----------------- 1 file changed, 49 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f34ebd2525..94a673fa6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,24 @@ ## 2.40.0 -### Various fixes & improvements +### New features -- build: Change release `opt-level` (#2325) by @szokeasaurusrex +- feat(debugid): Update debug ID snippet to write on `globalThis` when available (#2301) by @lforst + +### Improvements + +- build: Change release opt-level (#2325) by @szokeasaurusrex - build: Make backtraces useable in release builds (#2324) by @szokeasaurusrex + +### Bug fixes + +- fix(chunking): Remove power-of-two chunk size restriction (#2312) by @szokeasaurusrex + +
+

Non-user-facing changes

+ +We made several refactors and added several tests in this release. These changes should not affect users. + - ref(sourcemaps): Reword "no sourcemap ref" (#2320) by @szokeasaurusrex - test(proguard): Add chunk upload tests (#2322) by @szokeasaurusrex - ref(proguard): Use existing chunked upload logic (#2318) by @szokeasaurusrex @@ -16,11 +30,9 @@ - ref(chunks): Extract upload logic from `upload_difs_chunked` (#2316) by @szokeasaurusrex - ref(chunks): Rename `upload` module to `options` (#2315) by @szokeasaurusrex - ref(chunks): Make `ChunkOptions` a `struct` (#2314) by @szokeasaurusrex -- fix(chunking): Remove power-of-two chunk size restriction (#2312) by @szokeasaurusrex - ref(dif): Use `&str` in `DifUpload` struct (#2307) by @szokeasaurusrex - ref(dif): Genericize `poll_assemble` (#2300) by @szokeasaurusrex - feat(release): Replace release bot with GH app (#2306) by @Jeffreyhung -- feat(debugid): Update debug ID snippet to write on `globalThis` when available (#2301) by @lforst - fix(proguard): Add leading `/` to uploaded Proguard file name (#2304) by @szokeasaurusrex - ref(dif): Genericize `try_assemble` `options` parameter (#2299) by @szokeasaurusrex - ref(api): Rename `ChunkedUploadOptions` to indicate they are set by server (#2298) by @szokeasaurusrex @@ -30,8 +42,23 @@ - ref(proguard): Create new `proguard` `utils` submodule (#2293) by @szokeasaurusrex - ref(proguard): Directly open paths as `ByteView` (#2292) by @szokeasaurusrex - ref(dif): Put hash in `ChunkedDifRequest` (#2290) by @szokeasaurusrex +- ref(chunks): Rename `Named` trait to `Assemblable` (#2289) by @szokeasaurusrex +- ref(dif): Make `poll_assemble` generic (#2287) by @szokeasaurusrex +- ref(dif): Rename `ToAssemble` trait +- ref(dif): Make `try_assemble_dif` generic +- ref(dif): Replace `ChunkedDifMatch` with generic `ChunkedObject` +- ref(utils): Use `usize` in `get_sha1_checksums` signature +- test(chunk-upload): Test chunk uploading only some chunks missing +- ref: Fix new Clippy lints +- test(chunk-upload): Test upload where only some files need upload (#2276) +- test(chunk-upload): Test chunk upload with many chunks (#2275) +- ref(test): Use constant for expected request boundary (#2277) +- test(chunk-upload): Add a test for uploading multiple debug files (#2274) +- ref(sourcemaps): Fix clippy lint +- ref(test): Introduce `assert_cmd` test manager +- test(chunk-upload): Add test for full chunk upload -_Plus 15 more_ +
## 2.39.1 @@ -104,7 +131,6 @@ _Plus 15 more_ - ## 2.38.2 ### Various fixes & improvements @@ -190,8 +216,8 @@ was an error sending the checkin. ### Various fixes & improvements - build: Bump symbolic to `12.10.1` (#2134) by @szokeasaurusrex - - This includes an upstream bugfix for a bug that prevented debug file uploading with sources when any of the - sources were not valid UTF-8. + - This includes an upstream bugfix for a bug that prevented debug file uploading with sources when any of the + sources were not valid UTF-8. - fix(debugIds): Always instantiate global `Error` class in debugId injection snippet (#2132) by @Lms24 ## 2.34.0 @@ -211,7 +237,7 @@ This release contains a fix for a bug where auth tokens would, under the followi - The auth token was passed as a command line argument to Sentry CLI (via `--auth-token`) - The log level was set to `info` or `debug` - - The default log level is `warn`, so users using the default log level were unaffected by this bug + - The default log level is `warn`, so users using the default log level were unaffected by this bug We now redact the `--auth-token` argument and anything else that looks like it might be an auth token when logging the arguments that the Sentry CLI was called with (see #2115 and #2118 for details). @@ -361,10 +387,10 @@ message explaining that the auth token is required but missing. ### New features - New cron monitor configuration options (#1922) by @szokeasaurusrex - - The `sentry-cli monitors run` command now has two new command line arguments: `--failure-issue-threshold` and - `--recovery-threshold`. These arguments allow the user to specify the number of consecutive failed checkins that - trigger an issue to be created and the number of successful checkins that trigger the issue to be resolved, - respectively. + - The `sentry-cli monitors run` command now has two new command line arguments: `--failure-issue-threshold` and + `--recovery-threshold`. These arguments allow the user to specify the number of consecutive failed checkins that + trigger an issue to be created and the number of successful checkins that trigger the issue to be resolved, + respectively. ### Various fixes & improvements @@ -405,7 +431,7 @@ message explaining that the auth token is required but missing. ## 2.25.1 - fix: Upload Xcode debug files and source maps background upload (#1896) by @krystofwoldrich - - revert: Fixed a `curl` issue on Windows (#1815) by @xpirt + - revert: Fixed a `curl` issue on Windows (#1815) by @xpirt ## 2.25.0 @@ -937,7 +963,7 @@ This is something users would run locally so I do not think we can track usage e - Verify your source maps are built correctly - Verify your source maps work locally - Verify your source files are not too large - - this is a fuzzy requirement today in sentry + - this is a fuzzy requirement today in sentry - Verify artifacts are not gzipped - Verify workers are sharing the same volume as web (if running self-hosted Sentry via Docker) - Should spit out an easily readable and easily copy and paste - to put into ZenDesk or elsewhere for support colleagues @@ -949,15 +975,15 @@ https://github.com/getsentry/rust-sourcemap/tree/master/cli - In sentry error incorrect source map location - this helps when producing sourcemaps locally then line and column - this verify that it resolves locally - - if yes then it is a problem in between on sentry server side or upload - - 1st Verifies what you upload to sentry is exactly what you upload to sentry - - 2nd step from “y-tho” ensure previous steps are not for waste + - if yes then it is a problem in between on sentry server side or upload + - 1st Verifies what you upload to sentry is exactly what you upload to sentry + - 2nd step from “y-tho” ensure previous steps are not for waste - What is being automated? - - on release page you have your files (release artificats) - - download - - manually check the line number matches the error - - if correct then data is correct - - then you know an error with cli and not with the source maps that were uploaded + - on release page you have your files (release artificats) + - download + - manually check the line number matches the error + - if correct then data is correct + - then you know an error with cli and not with the source maps that were uploaded By: @kamilogorek (#1235)