From 53f3fa27cdbcf8280ac70d0c35ecb98d8c89782a Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Tue, 27 Jan 2026 12:55:33 +0100 Subject: [PATCH 1/4] fix(tests): Use cargo_bin macro for binary discovery in tests Use the `cargo_bin!` macro from assert_cmd to locate the sentry-cli binary. This reads the `CARGO_BIN_EXE_sentry-cli` environment variable set by Cargo at compile time, making tests work regardless of custom `build-dir` settings in cargo config. Previously, both `Command::cargo_bin()` and trycmd's internal binary discovery would fail when a custom build directory was configured, causing tests to either error or silently pass as "ignored". Co-Authored-By: Claude --- tests/integration/test_utils/test_manager.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_utils/test_manager.rs b/tests/integration/test_utils/test_manager.rs index ba041108d2..9b99d09c8c 100644 --- a/tests/integration/test_utils/test_manager.rs +++ b/tests/integration/test_utils/test_manager.rs @@ -1,6 +1,7 @@ use std::ffi::OsStr; use std::fmt::Display; +use assert_cmd::cargo::cargo_bin; use assert_cmd::Command; use mockito::{Mock, Server, ServerGuard}; use thiserror::Error; @@ -163,6 +164,7 @@ impl TrycmdTestManager { fn new(manager: TestManager, path: impl Display) -> Self { let test_case = TestCases::new(); + test_case.register_bin("sentry-cli", cargo_bin!("sentry-cli")); env::set(manager.server_info(), |k, v| { test_case.env(k, v); @@ -228,7 +230,7 @@ impl AssertCmdTestManager { I: IntoIterator, S: AsRef, { - let mut command = Command::cargo_bin("sentry-cli").expect("sentry-cli should be available"); + let mut command = Command::new(cargo_bin!("sentry-cli")); command.args(args); env::set(manager.server_info(), |k, v| { From 028e3bb7b2bbe83ca6785b55c177506f067eec07 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Tue, 27 Jan 2026 16:24:19 +0100 Subject: [PATCH 2/4] fix(dart-symbol-map): Make --url global argument available The --url argument was not recognized by the dart-symbol-map command because it was missing from the derive parser schema. Added the url field to the SentryCLI struct to allow global --url usage. Also updated the legacy parser to mark --url as global for consistency with other global arguments. Fixes #3106 Co-Authored-By: Claude --- CHANGELOG.md | 4 + src/commands/derive_parser.rs | 4 + src/commands/mod.rs | 2 +- .../_cases/bash_hook/bash_hook-help.trycmd | 2 + .../_cases/build/build-help.trycmd | 2 + .../build/build-upload-help-macos.trycmd | 4 + .../debug_files-bundle-jvm-help.trycmd | 2 + .../debug_files/debug_files-help.trycmd | 2 + .../debug_files-no-subcommand.trycmd | 2 + .../debug_files-upload-help.trycmd | 2 + .../_cases/deploys/deploys-help.trycmd | 2 + .../deploys/deploys-no-subcommand.trycmd | 2 + .../_cases/events/events-help.trycmd | 2 + .../_cases/events/events-list-help.trycmd | 2 + .../_cases/events/events-no-subcommand.trycmd | 2 + .../integration/_cases/info/info-help.trycmd | 2 + .../_cases/issues/issues-help.trycmd | 2 + .../_cases/issues/issues-list-help.trycmd | 2 + .../_cases/login/login-help.trycmd | 2 + .../integration/_cases/logs/logs-help.trycmd | 4 + .../_cases/logs/logs-list-help.trycmd | 4 + .../_cases/monitors/monitors-help.trycmd | 2 + .../_cases/monitors/monitors-list-help.trycmd | 2 + .../monitors/monitors-no-subcommand.trycmd | 2 + .../_cases/monitors/monitors-run-help.trycmd | 3 + .../organizations/organizations-help.trycmd | 2 + .../organizations-list-help.trycmd | 2 + .../organizations-no-subcommand.trycmd | 2 + .../_cases/projects/projects-help.trycmd | 2 + .../_cases/projects/projects-list-help.trycmd | 2 + .../projects/projects-no-subcommand.trycmd | 2 + .../_cases/releases/releases-help.trycmd | 2 + .../_cases/releases/releases-new-url.trycmd | 11 ++- .../releases/releases-no-subcommand.trycmd | 2 + .../send_envelope/send_envelope-help.trycmd | 4 + .../_cases/send_event/send_event-help.trycmd | 4 + .../_cases/sourcemaps/sourcemaps-help.trycmd | 2 + .../sourcemaps/sourcemaps-inject-help.trycmd | 4 + .../sourcemaps-no-subcommand.trycmd | 2 + .../sourcemaps/sourcemaps-resolve-help.trycmd | 2 + .../sourcemaps/sourcemaps-upload-help.trycmd | 3 + .../_cases/uninstall/uninstall-help.trycmd | 2 + .../_cases/update/update-help.trycmd | 2 + .../_cases/upload_dif/upload_dif-help.trycmd | 2 + .../upload_dsym/upload_dsym-help.trycmd | 2 + .../upload_proguard-help.trycmd | 2 + .../dart_symbol_map/assemble-success.json | 21 ++++++ tests/integration/upload_dart_symbol_map.rs | 73 +++++++++++++++++++ 48 files changed, 210 insertions(+), 3 deletions(-) create mode 100644 tests/integration/_responses/dart_symbol_map/assemble-success.json diff --git a/CHANGELOG.md b/CHANGELOG.md index ee6f90b371..a08cc95af1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Add `--install-group` parameter to `sentry-cli build upload` for controlling update visibility between builds ([#3094](https://github.com/getsentry/sentry-cli/pull/3094)) +### Fixes + +- Fixed a bug where the `--url` global argument was not recognized by the `dart-symbol-map` command and potentially other commands ([#3108](https://github.com/getsentry/sentry-cli/pull/3108)). + ## 3.1.0 ### New Features diff --git a/src/commands/derive_parser.rs b/src/commands/derive_parser.rs index 2383260d6d..31d86215be 100644 --- a/src/commands/derive_parser.rs +++ b/src/commands/derive_parser.rs @@ -18,6 +18,10 @@ pub(super) struct SentryCLI { #[arg(help = "Use the given Sentry auth token")] pub(super) auth_token: Option, + #[arg(global = true, long, value_name = "URL")] + #[arg(help = "Fully qualified URL to the Sentry server.{n}[default: https://sentry.io/]")] + pub(super) url: Option, + #[arg(global=true, ignore_case=true, value_parser=["trace", "debug", "info", "warn", "error"])] #[arg(long, help = "Set the log output verbosity")] pub(super) log_level: Option, diff --git a/src/commands/mod.rs b/src/commands/mod.rs index dac94c33c7..a7a20ca199 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -154,7 +154,7 @@ fn app() -> Command { .max_term_width(100) .subcommand_required(true) .arg_required_else_help(true) - .arg(Arg::new("url").value_name("URL").long("url").help( + .arg(Arg::new("url").value_name("URL").long("url").global(true).help( "Fully qualified URL to the Sentry server.{n}\ [default: https://sentry.io/]", )) diff --git a/tests/integration/_cases/bash_hook/bash_hook-help.trycmd b/tests/integration/_cases/bash_hook/bash_hook-help.trycmd index 2f618096fc..3161e25b96 100644 --- a/tests/integration/_cases/bash_hook/bash_hook-help.trycmd +++ b/tests/integration/_cases/bash_hook/bash_hook-help.trycmd @@ -7,6 +7,8 @@ Usage: sentry-cli[EXE] bash-hook [OPTIONS] Options: --no-exit Do not turn on -e (exit immediately) flag automatically + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --no-environ Do not send environment variables along diff --git a/tests/integration/_cases/build/build-help.trycmd b/tests/integration/_cases/build/build-help.trycmd index ca926a2b6b..a07abd1d38 100644 --- a/tests/integration/_cases/build/build-help.trycmd +++ b/tests/integration/_cases/build/build-help.trycmd @@ -11,6 +11,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/build/build-upload-help-macos.trycmd b/tests/integration/_cases/build/build-upload-help-macos.trycmd index 2b5d6e35f7..4c636cdeac 100644 --- a/tests/integration/_cases/build/build-upload-help-macos.trycmd +++ b/tests/integration/_cases/build/build-upload-help-macos.trycmd @@ -15,6 +15,10 @@ Options: -o, --org The organization ID or slug. + --url + Fully qualified URL to the Sentry server. + [default: https://sentry.io/] + --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/debug_files/debug_files-bundle-jvm-help.trycmd b/tests/integration/_cases/debug_files/debug_files-bundle-jvm-help.trycmd index 8f3b704e73..faf84b36a1 100644 --- a/tests/integration/_cases/debug_files/debug_files-bundle-jvm-help.trycmd +++ b/tests/integration/_cases/debug_files/debug_files-bundle-jvm-help.trycmd @@ -10,6 +10,8 @@ Arguments: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/debug_files/debug_files-help.trycmd b/tests/integration/_cases/debug_files/debug_files-help.trycmd index 1412febae2..2ddd9123f2 100644 --- a/tests/integration/_cases/debug_files/debug_files-help.trycmd +++ b/tests/integration/_cases/debug_files/debug_files-help.trycmd @@ -14,6 +14,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd b/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd index 0c73c2fd90..0cdbc64cc6 100644 --- a/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd +++ b/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd @@ -14,6 +14,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/debug_files/not_windows/debug_files-upload-help.trycmd b/tests/integration/_cases/debug_files/not_windows/debug_files-upload-help.trycmd index d663e891d8..21a5c02df9 100644 --- a/tests/integration/_cases/debug_files/not_windows/debug_files-upload-help.trycmd +++ b/tests/integration/_cases/debug_files/not_windows/debug_files-upload-help.trycmd @@ -10,6 +10,8 @@ Arguments: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/deploys/deploys-help.trycmd b/tests/integration/_cases/deploys/deploys-help.trycmd index b5b6e2c315..594eaac375 100644 --- a/tests/integration/_cases/deploys/deploys-help.trycmd +++ b/tests/integration/_cases/deploys/deploys-help.trycmd @@ -12,6 +12,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/deploys/deploys-no-subcommand.trycmd b/tests/integration/_cases/deploys/deploys-no-subcommand.trycmd index f91a557c83..704323efe7 100644 --- a/tests/integration/_cases/deploys/deploys-no-subcommand.trycmd +++ b/tests/integration/_cases/deploys/deploys-no-subcommand.trycmd @@ -12,6 +12,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/events/events-help.trycmd b/tests/integration/_cases/events/events-help.trycmd index 4bd3082026..3f60b2a070 100644 --- a/tests/integration/_cases/events/events-help.trycmd +++ b/tests/integration/_cases/events/events-help.trycmd @@ -11,6 +11,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/events/events-list-help.trycmd b/tests/integration/_cases/events/events-list-help.trycmd index 6910bbb9d9..a33ca6e54b 100644 --- a/tests/integration/_cases/events/events-list-help.trycmd +++ b/tests/integration/_cases/events/events-list-help.trycmd @@ -8,6 +8,8 @@ Usage: sentry-cli[EXE] events list [OPTIONS] Options: -o, --org The organization ID or slug. -U, --show-user Display the Users column. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/events/events-no-subcommand.trycmd b/tests/integration/_cases/events/events-no-subcommand.trycmd index 9d8cbf5aed..7275cd5666 100644 --- a/tests/integration/_cases/events/events-no-subcommand.trycmd +++ b/tests/integration/_cases/events/events-no-subcommand.trycmd @@ -11,6 +11,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/info/info-help.trycmd b/tests/integration/_cases/info/info-help.trycmd index 534ec53544..afa71253e6 100644 --- a/tests/integration/_cases/info/info-help.trycmd +++ b/tests/integration/_cases/info/info-help.trycmd @@ -9,6 +9,8 @@ Options: --config-status-json Return the status of the config that sentry-cli loads as JSON dump. This can be used by external tools to aid the user towards configuration. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --no-defaults Skip default organization and project checks. This allows you to diff --git a/tests/integration/_cases/issues/issues-help.trycmd b/tests/integration/_cases/issues/issues-help.trycmd index 71bac53175..3f1c5acd2e 100644 --- a/tests/integration/_cases/issues/issues-help.trycmd +++ b/tests/integration/_cases/issues/issues-help.trycmd @@ -15,6 +15,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/issues/issues-list-help.trycmd b/tests/integration/_cases/issues/issues-list-help.trycmd index 6ef3a8ccae..bf8c58097b 100644 --- a/tests/integration/_cases/issues/issues-list-help.trycmd +++ b/tests/integration/_cases/issues/issues-list-help.trycmd @@ -8,6 +8,8 @@ Usage: sentry-cli[EXE] issues list [OPTIONS] Options: --max-rows Maximum number of rows to print. -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/login/login-help.trycmd b/tests/integration/_cases/login/login-help.trycmd index b40a942f6c..5bed4bb4f6 100644 --- a/tests/integration/_cases/login/login-help.trycmd +++ b/tests/integration/_cases/login/login-help.trycmd @@ -7,6 +7,8 @@ Usage: sentry-cli[EXE] login [OPTIONS] Options: -g, --global Store authentication token globally rather than locally. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/logs/logs-help.trycmd b/tests/integration/_cases/logs/logs-help.trycmd index 269ef54e1d..553bf3f473 100644 --- a/tests/integration/_cases/logs/logs-help.trycmd +++ b/tests/integration/_cases/logs/logs-help.trycmd @@ -13,6 +13,10 @@ Commands: help Print this message or the help of the given subcommand(s) Options: + --url + Fully qualified URL to the Sentry server. + [default: https://sentry.io/] + --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/logs/logs-list-help.trycmd b/tests/integration/_cases/logs/logs-list-help.trycmd index 93a2f3a5bc..c32178e278 100644 --- a/tests/integration/_cases/logs/logs-list-help.trycmd +++ b/tests/integration/_cases/logs/logs-list-help.trycmd @@ -13,6 +13,10 @@ Options: -o, --org The organization ID or slug. + --url + Fully qualified URL to the Sentry server. + [default: https://sentry.io/] + --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/monitors/monitors-help.trycmd b/tests/integration/_cases/monitors/monitors-help.trycmd index b70480cc38..6a795a6c0a 100644 --- a/tests/integration/_cases/monitors/monitors-help.trycmd +++ b/tests/integration/_cases/monitors/monitors-help.trycmd @@ -11,6 +11,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/monitors/monitors-list-help.trycmd b/tests/integration/_cases/monitors/monitors-list-help.trycmd index b599e3e427..d6ca2f3422 100644 --- a/tests/integration/_cases/monitors/monitors-list-help.trycmd +++ b/tests/integration/_cases/monitors/monitors-list-help.trycmd @@ -7,6 +7,8 @@ Usage: sentry-cli[EXE] monitors list [OPTIONS] Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd b/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd index 41435e3386..ca85bc13a3 100644 --- a/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd +++ b/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd @@ -11,6 +11,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/monitors/monitors-run-help.trycmd b/tests/integration/_cases/monitors/monitors-run-help.trycmd index ffd7884ee3..57826a4db1 100644 --- a/tests/integration/_cases/monitors/monitors-run-help.trycmd +++ b/tests/integration/_cases/monitors/monitors-run-help.trycmd @@ -12,6 +12,9 @@ Arguments: Options: -e, --environment Specify the environment of the monitor. [default: production] + --url + Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/organizations/organizations-help.trycmd b/tests/integration/_cases/organizations/organizations-help.trycmd index 707938bae9..f345d2ea9f 100644 --- a/tests/integration/_cases/organizations/organizations-help.trycmd +++ b/tests/integration/_cases/organizations/organizations-help.trycmd @@ -10,6 +10,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/organizations/organizations-list-help.trycmd b/tests/integration/_cases/organizations/organizations-list-help.trycmd index 64b0c9d705..617a55a1ba 100644 --- a/tests/integration/_cases/organizations/organizations-list-help.trycmd +++ b/tests/integration/_cases/organizations/organizations-list-help.trycmd @@ -6,6 +6,8 @@ List all organizations available to the authenticated token. Usage: sentry-cli[EXE] organizations list [OPTIONS] Options: + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/organizations/organizations-no-subcommand.trycmd b/tests/integration/_cases/organizations/organizations-no-subcommand.trycmd index a6c18c121e..18c9a4737a 100644 --- a/tests/integration/_cases/organizations/organizations-no-subcommand.trycmd +++ b/tests/integration/_cases/organizations/organizations-no-subcommand.trycmd @@ -10,6 +10,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/projects/projects-help.trycmd b/tests/integration/_cases/projects/projects-help.trycmd index 57f6487c6e..3b99bf69e8 100644 --- a/tests/integration/_cases/projects/projects-help.trycmd +++ b/tests/integration/_cases/projects/projects-help.trycmd @@ -11,6 +11,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/projects/projects-list-help.trycmd b/tests/integration/_cases/projects/projects-list-help.trycmd index 8e66a944d4..f11965d5d9 100644 --- a/tests/integration/_cases/projects/projects-list-help.trycmd +++ b/tests/integration/_cases/projects/projects-list-help.trycmd @@ -7,6 +7,8 @@ Usage: sentry-cli[EXE] projects list [OPTIONS] Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/projects/projects-no-subcommand.trycmd b/tests/integration/_cases/projects/projects-no-subcommand.trycmd index ae8205f4a6..aab76e7f47 100644 --- a/tests/integration/_cases/projects/projects-no-subcommand.trycmd +++ b/tests/integration/_cases/projects/projects-no-subcommand.trycmd @@ -11,6 +11,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/releases/releases-help.trycmd b/tests/integration/_cases/releases/releases-help.trycmd index d837a61a7a..38e7779b60 100644 --- a/tests/integration/_cases/releases/releases-help.trycmd +++ b/tests/integration/_cases/releases/releases-help.trycmd @@ -19,6 +19,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/releases/releases-new-url.trycmd b/tests/integration/_cases/releases/releases-new-url.trycmd index 133ed692b9..fd3d511be9 100644 --- a/tests/integration/_cases/releases/releases-new-url.trycmd +++ b/tests/integration/_cases/releases/releases-new-url.trycmd @@ -1,6 +1,13 @@ ``` $ sentry-cli releases new wat-release --url https://oh.rly -? success -Created release wat-release +? 1 +error: API request failed + +Caused by: + 0: API request failed + 1: [6] Couldn't resolve host name (Could not resolve host: oh.rly) + +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. ``` diff --git a/tests/integration/_cases/releases/releases-no-subcommand.trycmd b/tests/integration/_cases/releases/releases-no-subcommand.trycmd index 96125dd1f6..81fb70ec20 100644 --- a/tests/integration/_cases/releases/releases-no-subcommand.trycmd +++ b/tests/integration/_cases/releases/releases-no-subcommand.trycmd @@ -19,6 +19,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/send_envelope/send_envelope-help.trycmd b/tests/integration/_cases/send_envelope/send_envelope-help.trycmd index 21fde110df..f0566a2c07 100644 --- a/tests/integration/_cases/send_envelope/send_envelope-help.trycmd +++ b/tests/integration/_cases/send_envelope/send_envelope-help.trycmd @@ -17,6 +17,10 @@ Options: --raw Send envelopes without attempting to parse their contents. + --url + Fully qualified URL to the Sentry server. + [default: https://sentry.io/] + --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/send_event/send_event-help.trycmd b/tests/integration/_cases/send_event/send_event-help.trycmd index 95755972c0..26cb428d45 100644 --- a/tests/integration/_cases/send_event/send_event-help.trycmd +++ b/tests/integration/_cases/send_event/send_event-help.trycmd @@ -18,6 +18,10 @@ Options: --raw Send events using an envelope without attempting to parse their contents. + --url + Fully qualified URL to the Sentry server. + [default: https://sentry.io/] + --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/sourcemaps/sourcemaps-help.trycmd b/tests/integration/_cases/sourcemaps/sourcemaps-help.trycmd index 2090abdb5d..543c3bd075 100644 --- a/tests/integration/_cases/sourcemaps/sourcemaps-help.trycmd +++ b/tests/integration/_cases/sourcemaps/sourcemaps-help.trycmd @@ -13,6 +13,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/sourcemaps/sourcemaps-inject-help.trycmd b/tests/integration/_cases/sourcemaps/sourcemaps-inject-help.trycmd index d105fb757c..21c8084ac0 100644 --- a/tests/integration/_cases/sourcemaps/sourcemaps-inject-help.trycmd +++ b/tests/integration/_cases/sourcemaps/sourcemaps-inject-help.trycmd @@ -20,6 +20,10 @@ Options: -o, --org The organization ID or slug. + --url + Fully qualified URL to the Sentry server. + [default: https://sentry.io/] + --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/sourcemaps/sourcemaps-no-subcommand.trycmd b/tests/integration/_cases/sourcemaps/sourcemaps-no-subcommand.trycmd index 5f865711b0..53ff64b102 100644 --- a/tests/integration/_cases/sourcemaps/sourcemaps-no-subcommand.trycmd +++ b/tests/integration/_cases/sourcemaps/sourcemaps-no-subcommand.trycmd @@ -13,6 +13,8 @@ Commands: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/sourcemaps/sourcemaps-resolve-help.trycmd b/tests/integration/_cases/sourcemaps/sourcemaps-resolve-help.trycmd index 93d93e82b7..e81705489d 100644 --- a/tests/integration/_cases/sourcemaps/sourcemaps-resolve-help.trycmd +++ b/tests/integration/_cases/sourcemaps/sourcemaps-resolve-help.trycmd @@ -11,6 +11,8 @@ Arguments: Options: -l, --line Line number for minified source. -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] -c, --column Column number for minified source. --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/sourcemaps/sourcemaps-upload-help.trycmd b/tests/integration/_cases/sourcemaps/sourcemaps-upload-help.trycmd index 63c096ef92..968db0781f 100644 --- a/tests/integration/_cases/sourcemaps/sourcemaps-upload-help.trycmd +++ b/tests/integration/_cases/sourcemaps/sourcemaps-upload-help.trycmd @@ -11,6 +11,9 @@ Arguments: Options: -o, --org The organization ID or slug. + --url + Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/uninstall/uninstall-help.trycmd b/tests/integration/_cases/uninstall/uninstall-help.trycmd index 9b15c1a9b2..5dccbc3ce8 100644 --- a/tests/integration/_cases/uninstall/uninstall-help.trycmd +++ b/tests/integration/_cases/uninstall/uninstall-help.trycmd @@ -7,6 +7,8 @@ Usage: sentry-cli[EXE] uninstall [OPTIONS] Options: --confirm Skip uninstall confirmation prompt. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/update/update-help.trycmd b/tests/integration/_cases/update/update-help.trycmd index 65ce0ecbc3..3bb861b836 100644 --- a/tests/integration/_cases/update/update-help.trycmd +++ b/tests/integration/_cases/update/update-help.trycmd @@ -7,6 +7,8 @@ Usage: sentry-cli[EXE] update [OPTIONS] Options: -f, --force Force the update even if the latest version is already installed. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/upload_dif/upload_dif-help.trycmd b/tests/integration/_cases/upload_dif/upload_dif-help.trycmd index 3c212473cf..f50ba32397 100644 --- a/tests/integration/_cases/upload_dif/upload_dif-help.trycmd +++ b/tests/integration/_cases/upload_dif/upload_dif-help.trycmd @@ -10,6 +10,8 @@ Arguments: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/upload_dsym/upload_dsym-help.trycmd b/tests/integration/_cases/upload_dsym/upload_dsym-help.trycmd index b5d4a76c30..02f1fc77fb 100644 --- a/tests/integration/_cases/upload_dsym/upload_dsym-help.trycmd +++ b/tests/integration/_cases/upload_dsym/upload_dsym-help.trycmd @@ -10,6 +10,8 @@ Arguments: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/upload_proguard/upload_proguard-help.trycmd b/tests/integration/_cases/upload_proguard/upload_proguard-help.trycmd index 1a04f16588..7fedd56d21 100644 --- a/tests/integration/_cases/upload_proguard/upload_proguard-help.trycmd +++ b/tests/integration/_cases/upload_proguard/upload_proguard-help.trycmd @@ -10,6 +10,8 @@ Arguments: Options: -o, --org The organization ID or slug. + --url Fully qualified URL to the Sentry server. + [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_responses/dart_symbol_map/assemble-success.json b/tests/integration/_responses/dart_symbol_map/assemble-success.json new file mode 100644 index 0000000000..41ea027111 --- /dev/null +++ b/tests/integration/_responses/dart_symbol_map/assemble-success.json @@ -0,0 +1,21 @@ +{ + "08978d44d46a9c3c0dab8f7aabc46c68": { + "state": "ok", + "detail": null, + "missingChunks": [], + "dif": { + "id": "1", + "uuid": "00000000-0000-0000-0000-000000000000", + "debugId": "00000000-0000-0000-0000-000000000000", + "objectName": "dartsymbolmap.json", + "cpuName": "any", + "headers": { + "Content-Type": "application/octet-stream" + }, + "size": 1, + "sha1": "08978d44d46a9c3c0dab8f7aabc46c68", + "dateCreated": "1776-07-04T12:00:00.000Z", + "data": {} + } + } +} diff --git a/tests/integration/upload_dart_symbol_map.rs b/tests/integration/upload_dart_symbol_map.rs index 784ceeeda5..757bbb7a18 100644 --- a/tests/integration/upload_dart_symbol_map.rs +++ b/tests/integration/upload_dart_symbol_map.rs @@ -102,3 +102,76 @@ fn command_upload_dart_symbol_map_invalid_mapping() { .with_default_token() .run_and_assert(AssertCommand::Failure); } + +#[test] +fn command_upload_dart_symbol_map_with_custom_url() { + let call_count = AtomicU8::new(0); + + let manager = TestManager::new() + .mock_endpoint( + MockEndpointBuilder::new("GET", "/api/0/organizations/wat-org/chunk-upload/") + .with_response_file("dart_symbol_map/get-chunk-upload.json"), + ) + .mock_endpoint(MockEndpointBuilder::new( + "POST", + "/api/0/organizations/wat-org/chunk-upload/", + )) + .mock_endpoint( + MockEndpointBuilder::new( + "POST", + "/api/0/projects/wat-org/wat-project/files/difs/assemble/", + ) + .with_response_fn(move |_request| { + let value = match call_count.fetch_add(1, Ordering::Relaxed) { + 0 => serde_json::json!({ + "state": "not_found", + "missingChunks": ["6aa44eb08e4a72d1cf32fe7c2504216fb1a3e862"] + }), + 1 => serde_json::json!({ + "state": "created", + "missingChunks": [] + }), + 2 => serde_json::json!({ + "state": "ok", + "detail": serde_json::Value::Null, + "missingChunks": [], + "dif": { + "id": "1", + "uuid": "00000000-0000-0000-0000-000000000000", + "debugId": "00000000-0000-0000-0000-000000000000", + "objectName": "dartsymbolmap.json", + "cpuName": "any", + "headers": { "Content-Type": "application/octet-stream" }, + "size": 1, + "sha1": "6aa44eb08e4a72d1cf32fe7c2504216fb1a3e862", + "dateCreated": "1776-07-04T12:00:00.000Z", + "data": {} + } + }), + n => panic!( + "Only 3 calls to the assemble endpoint expected, but there were {}.", + n + 1 + ), + }; + let response = serde_json::json!({ + "6aa44eb08e4a72d1cf32fe7c2504216fb1a3e862": value + }); + serde_json::to_vec(&response).unwrap() + }) + .expect(3), + ); + + let server_url = manager.server_url(); + + manager + .assert_cmd([ + "--url", + &server_url, + "dart-symbol-map", + "upload", + "tests/integration/_fixtures/dart_symbol_map/dartsymbolmap.json", + "tests/integration/_fixtures/Sentry.Samples.Console.Basic.pdb", + ]) + .with_default_token() + .run_and_assert(AssertCommand::Success); +} From 7f41e587985f8a8b5ddbdf2e9b466e8f166c7a19 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Tue, 27 Jan 2026 17:21:09 +0100 Subject: [PATCH 3/4] test(snapshots): Update test snapshots for --url global argument --- .../_cases/build/build-upload-help-not-macos.trycmd | 4 ++++ .../_cases/releases/releases-new-url.trycmd | 11 ++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/tests/integration/_cases/build/build-upload-help-not-macos.trycmd b/tests/integration/_cases/build/build-upload-help-not-macos.trycmd index e9d9461e89..643b52623b 100644 --- a/tests/integration/_cases/build/build-upload-help-not-macos.trycmd +++ b/tests/integration/_cases/build/build-upload-help-not-macos.trycmd @@ -14,6 +14,10 @@ Options: -o, --org The organization ID or slug. + --url + Fully qualified URL to the Sentry server. + [default: https://sentry.io/] + --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/releases/releases-new-url.trycmd b/tests/integration/_cases/releases/releases-new-url.trycmd index fd3d511be9..133ed692b9 100644 --- a/tests/integration/_cases/releases/releases-new-url.trycmd +++ b/tests/integration/_cases/releases/releases-new-url.trycmd @@ -1,13 +1,6 @@ ``` $ sentry-cli releases new wat-release --url https://oh.rly -? 1 -error: API request failed - -Caused by: - 0: API request failed - 1: [6] Couldn't resolve host name (Could not resolve host: oh.rly) - -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. +? success +Created release wat-release ``` From 1296120e85fdcd19fdff73790d449735ff1db3dc Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Wed, 28 Jan 2026 11:52:59 +0100 Subject: [PATCH 4/4] fix(cli): Allow dart-symbol-map to accept --url --- CHANGELOG.md | 2 +- src/commands/mod.rs | 2 +- .../_cases/bash_hook/bash_hook-help.trycmd | 2 -- .../_cases/build/build-help.trycmd | 2 -- .../build/build-upload-help-macos.trycmd | 4 ---- .../build/build-upload-help-not-macos.trycmd | 4 ---- .../debug_files-bundle-jvm-help.trycmd | 2 -- .../debug_files/debug_files-help.trycmd | 2 -- .../debug_files-no-subcommand.trycmd | 2 -- .../debug_files-upload-help.trycmd | 2 -- .../_cases/deploys/deploys-help.trycmd | 2 -- .../deploys/deploys-no-subcommand.trycmd | 2 -- .../_cases/events/events-help.trycmd | 2 -- .../_cases/events/events-list-help.trycmd | 2 -- .../_cases/events/events-no-subcommand.trycmd | 2 -- .../integration/_cases/info/info-help.trycmd | 2 -- .../_cases/issues/issues-help.trycmd | 2 -- .../_cases/issues/issues-list-help.trycmd | 2 -- .../_cases/login/login-help.trycmd | 2 -- .../integration/_cases/logs/logs-help.trycmd | 4 ---- .../_cases/logs/logs-list-help.trycmd | 4 ---- .../_cases/monitors/monitors-help.trycmd | 2 -- .../_cases/monitors/monitors-list-help.trycmd | 2 -- .../monitors/monitors-no-subcommand.trycmd | 2 -- .../_cases/monitors/monitors-run-help.trycmd | 3 --- .../organizations/organizations-help.trycmd | 2 -- .../organizations-list-help.trycmd | 2 -- .../organizations-no-subcommand.trycmd | 2 -- .../_cases/projects/projects-help.trycmd | 2 -- .../_cases/projects/projects-list-help.trycmd | 2 -- .../projects/projects-no-subcommand.trycmd | 2 -- .../_cases/releases/releases-help.trycmd | 2 -- .../releases/releases-no-subcommand.trycmd | 2 -- .../send_envelope/send_envelope-help.trycmd | 4 ---- .../_cases/send_event/send_event-help.trycmd | 4 ---- .../_cases/sourcemaps/sourcemaps-help.trycmd | 2 -- .../sourcemaps/sourcemaps-inject-help.trycmd | 4 ---- .../sourcemaps-no-subcommand.trycmd | 2 -- .../sourcemaps/sourcemaps-resolve-help.trycmd | 2 -- .../sourcemaps/sourcemaps-upload-help.trycmd | 3 --- .../_cases/uninstall/uninstall-help.trycmd | 2 -- .../_cases/update/update-help.trycmd | 2 -- .../_cases/upload_dif/upload_dif-help.trycmd | 2 -- .../upload_dsym/upload_dsym-help.trycmd | 2 -- .../upload_proguard-help.trycmd | 2 -- .../dart_symbol_map/assemble-success.json | 21 ------------------- 46 files changed, 2 insertions(+), 125 deletions(-) delete mode 100644 tests/integration/_responses/dart_symbol_map/assemble-success.json diff --git a/CHANGELOG.md b/CHANGELOG.md index a08cc95af1..fb88997e6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ ### Fixes -- Fixed a bug where the `--url` global argument was not recognized by the `dart-symbol-map` command and potentially other commands ([#3108](https://github.com/getsentry/sentry-cli/pull/3108)). +- Fixed a bug where the `dart-symbol-map` command did not accept the `--url` argument ([#3108](https://github.com/getsentry/sentry-cli/pull/3108)). ## 3.1.0 diff --git a/src/commands/mod.rs b/src/commands/mod.rs index a7a20ca199..dac94c33c7 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -154,7 +154,7 @@ fn app() -> Command { .max_term_width(100) .subcommand_required(true) .arg_required_else_help(true) - .arg(Arg::new("url").value_name("URL").long("url").global(true).help( + .arg(Arg::new("url").value_name("URL").long("url").help( "Fully qualified URL to the Sentry server.{n}\ [default: https://sentry.io/]", )) diff --git a/tests/integration/_cases/bash_hook/bash_hook-help.trycmd b/tests/integration/_cases/bash_hook/bash_hook-help.trycmd index 3161e25b96..2f618096fc 100644 --- a/tests/integration/_cases/bash_hook/bash_hook-help.trycmd +++ b/tests/integration/_cases/bash_hook/bash_hook-help.trycmd @@ -7,8 +7,6 @@ Usage: sentry-cli[EXE] bash-hook [OPTIONS] Options: --no-exit Do not turn on -e (exit immediately) flag automatically - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --no-environ Do not send environment variables along diff --git a/tests/integration/_cases/build/build-help.trycmd b/tests/integration/_cases/build/build-help.trycmd index a07abd1d38..ca926a2b6b 100644 --- a/tests/integration/_cases/build/build-help.trycmd +++ b/tests/integration/_cases/build/build-help.trycmd @@ -11,8 +11,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/build/build-upload-help-macos.trycmd b/tests/integration/_cases/build/build-upload-help-macos.trycmd index 4c636cdeac..2b5d6e35f7 100644 --- a/tests/integration/_cases/build/build-upload-help-macos.trycmd +++ b/tests/integration/_cases/build/build-upload-help-macos.trycmd @@ -15,10 +15,6 @@ Options: -o, --org The organization ID or slug. - --url - Fully qualified URL to the Sentry server. - [default: https://sentry.io/] - --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/build/build-upload-help-not-macos.trycmd b/tests/integration/_cases/build/build-upload-help-not-macos.trycmd index 643b52623b..e9d9461e89 100644 --- a/tests/integration/_cases/build/build-upload-help-not-macos.trycmd +++ b/tests/integration/_cases/build/build-upload-help-not-macos.trycmd @@ -14,10 +14,6 @@ Options: -o, --org The organization ID or slug. - --url - Fully qualified URL to the Sentry server. - [default: https://sentry.io/] - --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/debug_files/debug_files-bundle-jvm-help.trycmd b/tests/integration/_cases/debug_files/debug_files-bundle-jvm-help.trycmd index faf84b36a1..8f3b704e73 100644 --- a/tests/integration/_cases/debug_files/debug_files-bundle-jvm-help.trycmd +++ b/tests/integration/_cases/debug_files/debug_files-bundle-jvm-help.trycmd @@ -10,8 +10,6 @@ Arguments: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/debug_files/debug_files-help.trycmd b/tests/integration/_cases/debug_files/debug_files-help.trycmd index 2ddd9123f2..1412febae2 100644 --- a/tests/integration/_cases/debug_files/debug_files-help.trycmd +++ b/tests/integration/_cases/debug_files/debug_files-help.trycmd @@ -14,8 +14,6 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd b/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd index 0cdbc64cc6..0c73c2fd90 100644 --- a/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd +++ b/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd @@ -14,8 +14,6 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/debug_files/not_windows/debug_files-upload-help.trycmd b/tests/integration/_cases/debug_files/not_windows/debug_files-upload-help.trycmd index 21a5c02df9..d663e891d8 100644 --- a/tests/integration/_cases/debug_files/not_windows/debug_files-upload-help.trycmd +++ b/tests/integration/_cases/debug_files/not_windows/debug_files-upload-help.trycmd @@ -10,8 +10,6 @@ Arguments: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/deploys/deploys-help.trycmd b/tests/integration/_cases/deploys/deploys-help.trycmd index 594eaac375..b5b6e2c315 100644 --- a/tests/integration/_cases/deploys/deploys-help.trycmd +++ b/tests/integration/_cases/deploys/deploys-help.trycmd @@ -12,8 +12,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/deploys/deploys-no-subcommand.trycmd b/tests/integration/_cases/deploys/deploys-no-subcommand.trycmd index 704323efe7..f91a557c83 100644 --- a/tests/integration/_cases/deploys/deploys-no-subcommand.trycmd +++ b/tests/integration/_cases/deploys/deploys-no-subcommand.trycmd @@ -12,8 +12,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/events/events-help.trycmd b/tests/integration/_cases/events/events-help.trycmd index 3f60b2a070..4bd3082026 100644 --- a/tests/integration/_cases/events/events-help.trycmd +++ b/tests/integration/_cases/events/events-help.trycmd @@ -11,8 +11,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/events/events-list-help.trycmd b/tests/integration/_cases/events/events-list-help.trycmd index a33ca6e54b..6910bbb9d9 100644 --- a/tests/integration/_cases/events/events-list-help.trycmd +++ b/tests/integration/_cases/events/events-list-help.trycmd @@ -8,8 +8,6 @@ Usage: sentry-cli[EXE] events list [OPTIONS] Options: -o, --org The organization ID or slug. -U, --show-user Display the Users column. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/events/events-no-subcommand.trycmd b/tests/integration/_cases/events/events-no-subcommand.trycmd index 7275cd5666..9d8cbf5aed 100644 --- a/tests/integration/_cases/events/events-no-subcommand.trycmd +++ b/tests/integration/_cases/events/events-no-subcommand.trycmd @@ -11,8 +11,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/info/info-help.trycmd b/tests/integration/_cases/info/info-help.trycmd index afa71253e6..534ec53544 100644 --- a/tests/integration/_cases/info/info-help.trycmd +++ b/tests/integration/_cases/info/info-help.trycmd @@ -9,8 +9,6 @@ Options: --config-status-json Return the status of the config that sentry-cli loads as JSON dump. This can be used by external tools to aid the user towards configuration. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --no-defaults Skip default organization and project checks. This allows you to diff --git a/tests/integration/_cases/issues/issues-help.trycmd b/tests/integration/_cases/issues/issues-help.trycmd index 3f1c5acd2e..71bac53175 100644 --- a/tests/integration/_cases/issues/issues-help.trycmd +++ b/tests/integration/_cases/issues/issues-help.trycmd @@ -15,8 +15,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/issues/issues-list-help.trycmd b/tests/integration/_cases/issues/issues-list-help.trycmd index bf8c58097b..6ef3a8ccae 100644 --- a/tests/integration/_cases/issues/issues-list-help.trycmd +++ b/tests/integration/_cases/issues/issues-list-help.trycmd @@ -8,8 +8,6 @@ Usage: sentry-cli[EXE] issues list [OPTIONS] Options: --max-rows Maximum number of rows to print. -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/login/login-help.trycmd b/tests/integration/_cases/login/login-help.trycmd index 5bed4bb4f6..b40a942f6c 100644 --- a/tests/integration/_cases/login/login-help.trycmd +++ b/tests/integration/_cases/login/login-help.trycmd @@ -7,8 +7,6 @@ Usage: sentry-cli[EXE] login [OPTIONS] Options: -g, --global Store authentication token globally rather than locally. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/logs/logs-help.trycmd b/tests/integration/_cases/logs/logs-help.trycmd index 553bf3f473..269ef54e1d 100644 --- a/tests/integration/_cases/logs/logs-help.trycmd +++ b/tests/integration/_cases/logs/logs-help.trycmd @@ -13,10 +13,6 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - --url - Fully qualified URL to the Sentry server. - [default: https://sentry.io/] - --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/logs/logs-list-help.trycmd b/tests/integration/_cases/logs/logs-list-help.trycmd index c32178e278..93a2f3a5bc 100644 --- a/tests/integration/_cases/logs/logs-list-help.trycmd +++ b/tests/integration/_cases/logs/logs-list-help.trycmd @@ -13,10 +13,6 @@ Options: -o, --org The organization ID or slug. - --url - Fully qualified URL to the Sentry server. - [default: https://sentry.io/] - --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/monitors/monitors-help.trycmd b/tests/integration/_cases/monitors/monitors-help.trycmd index 6a795a6c0a..b70480cc38 100644 --- a/tests/integration/_cases/monitors/monitors-help.trycmd +++ b/tests/integration/_cases/monitors/monitors-help.trycmd @@ -11,8 +11,6 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/monitors/monitors-list-help.trycmd b/tests/integration/_cases/monitors/monitors-list-help.trycmd index d6ca2f3422..b599e3e427 100644 --- a/tests/integration/_cases/monitors/monitors-list-help.trycmd +++ b/tests/integration/_cases/monitors/monitors-list-help.trycmd @@ -7,8 +7,6 @@ Usage: sentry-cli[EXE] monitors list [OPTIONS] Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd b/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd index ca85bc13a3..41435e3386 100644 --- a/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd +++ b/tests/integration/_cases/monitors/monitors-no-subcommand.trycmd @@ -11,8 +11,6 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/monitors/monitors-run-help.trycmd b/tests/integration/_cases/monitors/monitors-run-help.trycmd index 57826a4db1..ffd7884ee3 100644 --- a/tests/integration/_cases/monitors/monitors-run-help.trycmd +++ b/tests/integration/_cases/monitors/monitors-run-help.trycmd @@ -12,9 +12,6 @@ Arguments: Options: -e, --environment Specify the environment of the monitor. [default: production] - --url - Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/organizations/organizations-help.trycmd b/tests/integration/_cases/organizations/organizations-help.trycmd index f345d2ea9f..707938bae9 100644 --- a/tests/integration/_cases/organizations/organizations-help.trycmd +++ b/tests/integration/_cases/organizations/organizations-help.trycmd @@ -10,8 +10,6 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/organizations/organizations-list-help.trycmd b/tests/integration/_cases/organizations/organizations-list-help.trycmd index 617a55a1ba..64b0c9d705 100644 --- a/tests/integration/_cases/organizations/organizations-list-help.trycmd +++ b/tests/integration/_cases/organizations/organizations-list-help.trycmd @@ -6,8 +6,6 @@ List all organizations available to the authenticated token. Usage: sentry-cli[EXE] organizations list [OPTIONS] Options: - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/organizations/organizations-no-subcommand.trycmd b/tests/integration/_cases/organizations/organizations-no-subcommand.trycmd index 18c9a4737a..a6c18c121e 100644 --- a/tests/integration/_cases/organizations/organizations-no-subcommand.trycmd +++ b/tests/integration/_cases/organizations/organizations-no-subcommand.trycmd @@ -10,8 +10,6 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/projects/projects-help.trycmd b/tests/integration/_cases/projects/projects-help.trycmd index 3b99bf69e8..57f6487c6e 100644 --- a/tests/integration/_cases/projects/projects-help.trycmd +++ b/tests/integration/_cases/projects/projects-help.trycmd @@ -11,8 +11,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/projects/projects-list-help.trycmd b/tests/integration/_cases/projects/projects-list-help.trycmd index f11965d5d9..8e66a944d4 100644 --- a/tests/integration/_cases/projects/projects-list-help.trycmd +++ b/tests/integration/_cases/projects/projects-list-help.trycmd @@ -7,8 +7,6 @@ Usage: sentry-cli[EXE] projects list [OPTIONS] Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/projects/projects-no-subcommand.trycmd b/tests/integration/_cases/projects/projects-no-subcommand.trycmd index aab76e7f47..ae8205f4a6 100644 --- a/tests/integration/_cases/projects/projects-no-subcommand.trycmd +++ b/tests/integration/_cases/projects/projects-no-subcommand.trycmd @@ -11,8 +11,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/releases/releases-help.trycmd b/tests/integration/_cases/releases/releases-help.trycmd index 38e7779b60..d837a61a7a 100644 --- a/tests/integration/_cases/releases/releases-help.trycmd +++ b/tests/integration/_cases/releases/releases-help.trycmd @@ -19,8 +19,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/releases/releases-no-subcommand.trycmd b/tests/integration/_cases/releases/releases-no-subcommand.trycmd index 81fb70ec20..96125dd1f6 100644 --- a/tests/integration/_cases/releases/releases-no-subcommand.trycmd +++ b/tests/integration/_cases/releases/releases-no-subcommand.trycmd @@ -19,8 +19,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/send_envelope/send_envelope-help.trycmd b/tests/integration/_cases/send_envelope/send_envelope-help.trycmd index f0566a2c07..21fde110df 100644 --- a/tests/integration/_cases/send_envelope/send_envelope-help.trycmd +++ b/tests/integration/_cases/send_envelope/send_envelope-help.trycmd @@ -17,10 +17,6 @@ Options: --raw Send envelopes without attempting to parse their contents. - --url - Fully qualified URL to the Sentry server. - [default: https://sentry.io/] - --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/send_event/send_event-help.trycmd b/tests/integration/_cases/send_event/send_event-help.trycmd index 26cb428d45..95755972c0 100644 --- a/tests/integration/_cases/send_event/send_event-help.trycmd +++ b/tests/integration/_cases/send_event/send_event-help.trycmd @@ -18,10 +18,6 @@ Options: --raw Send events using an envelope without attempting to parse their contents. - --url - Fully qualified URL to the Sentry server. - [default: https://sentry.io/] - --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/sourcemaps/sourcemaps-help.trycmd b/tests/integration/_cases/sourcemaps/sourcemaps-help.trycmd index 543c3bd075..2090abdb5d 100644 --- a/tests/integration/_cases/sourcemaps/sourcemaps-help.trycmd +++ b/tests/integration/_cases/sourcemaps/sourcemaps-help.trycmd @@ -13,8 +13,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/sourcemaps/sourcemaps-inject-help.trycmd b/tests/integration/_cases/sourcemaps/sourcemaps-inject-help.trycmd index 21c8084ac0..d105fb757c 100644 --- a/tests/integration/_cases/sourcemaps/sourcemaps-inject-help.trycmd +++ b/tests/integration/_cases/sourcemaps/sourcemaps-inject-help.trycmd @@ -20,10 +20,6 @@ Options: -o, --org The organization ID or slug. - --url - Fully qualified URL to the Sentry server. - [default: https://sentry.io/] - --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/sourcemaps/sourcemaps-no-subcommand.trycmd b/tests/integration/_cases/sourcemaps/sourcemaps-no-subcommand.trycmd index 53ff64b102..5f865711b0 100644 --- a/tests/integration/_cases/sourcemaps/sourcemaps-no-subcommand.trycmd +++ b/tests/integration/_cases/sourcemaps/sourcemaps-no-subcommand.trycmd @@ -13,8 +13,6 @@ Commands: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/sourcemaps/sourcemaps-resolve-help.trycmd b/tests/integration/_cases/sourcemaps/sourcemaps-resolve-help.trycmd index e81705489d..93d93e82b7 100644 --- a/tests/integration/_cases/sourcemaps/sourcemaps-resolve-help.trycmd +++ b/tests/integration/_cases/sourcemaps/sourcemaps-resolve-help.trycmd @@ -11,8 +11,6 @@ Arguments: Options: -l, --line Line number for minified source. -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] -c, --column Column number for minified source. --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/sourcemaps/sourcemaps-upload-help.trycmd b/tests/integration/_cases/sourcemaps/sourcemaps-upload-help.trycmd index 968db0781f..63c096ef92 100644 --- a/tests/integration/_cases/sourcemaps/sourcemaps-upload-help.trycmd +++ b/tests/integration/_cases/sourcemaps/sourcemaps-upload-help.trycmd @@ -11,9 +11,6 @@ Arguments: Options: -o, --org The organization ID or slug. - --url - Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. diff --git a/tests/integration/_cases/uninstall/uninstall-help.trycmd b/tests/integration/_cases/uninstall/uninstall-help.trycmd index 5dccbc3ce8..9b15c1a9b2 100644 --- a/tests/integration/_cases/uninstall/uninstall-help.trycmd +++ b/tests/integration/_cases/uninstall/uninstall-help.trycmd @@ -7,8 +7,6 @@ Usage: sentry-cli[EXE] uninstall [OPTIONS] Options: --confirm Skip uninstall confirmation prompt. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/update/update-help.trycmd b/tests/integration/_cases/update/update-help.trycmd index 3bb861b836..65ce0ecbc3 100644 --- a/tests/integration/_cases/update/update-help.trycmd +++ b/tests/integration/_cases/update/update-help.trycmd @@ -7,8 +7,6 @@ Usage: sentry-cli[EXE] update [OPTIONS] Options: -f, --force Force the update even if the latest version is already installed. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. --auth-token Use the given Sentry auth token. diff --git a/tests/integration/_cases/upload_dif/upload_dif-help.trycmd b/tests/integration/_cases/upload_dif/upload_dif-help.trycmd index f50ba32397..3c212473cf 100644 --- a/tests/integration/_cases/upload_dif/upload_dif-help.trycmd +++ b/tests/integration/_cases/upload_dif/upload_dif-help.trycmd @@ -10,8 +10,6 @@ Arguments: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/upload_dsym/upload_dsym-help.trycmd b/tests/integration/_cases/upload_dsym/upload_dsym-help.trycmd index 02f1fc77fb..b5d4a76c30 100644 --- a/tests/integration/_cases/upload_dsym/upload_dsym-help.trycmd +++ b/tests/integration/_cases/upload_dsym/upload_dsym-help.trycmd @@ -10,8 +10,6 @@ Arguments: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_cases/upload_proguard/upload_proguard-help.trycmd b/tests/integration/_cases/upload_proguard/upload_proguard-help.trycmd index 7fedd56d21..1a04f16588 100644 --- a/tests/integration/_cases/upload_proguard/upload_proguard-help.trycmd +++ b/tests/integration/_cases/upload_proguard/upload_proguard-help.trycmd @@ -10,8 +10,6 @@ Arguments: Options: -o, --org The organization ID or slug. - --url Fully qualified URL to the Sentry server. - [default: https://sentry.io/] --header Custom headers that should be attached to all requests in key:value format. -p, --project The project ID or slug. diff --git a/tests/integration/_responses/dart_symbol_map/assemble-success.json b/tests/integration/_responses/dart_symbol_map/assemble-success.json deleted file mode 100644 index 41ea027111..0000000000 --- a/tests/integration/_responses/dart_symbol_map/assemble-success.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "08978d44d46a9c3c0dab8f7aabc46c68": { - "state": "ok", - "detail": null, - "missingChunks": [], - "dif": { - "id": "1", - "uuid": "00000000-0000-0000-0000-000000000000", - "debugId": "00000000-0000-0000-0000-000000000000", - "objectName": "dartsymbolmap.json", - "cpuName": "any", - "headers": { - "Content-Type": "application/octet-stream" - }, - "size": 1, - "sha1": "08978d44d46a9c3c0dab8f7aabc46c68", - "dateCreated": "1776-07-04T12:00:00.000Z", - "data": {} - } - } -}