-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add global, hidden
allow-failure
flag and `SENTRY_ALLOW_FAILU…
…RE` variable (#1343) This enables users having cli as part of their build process (mainly mobile app/sdks) to proceed in the rare times when sentry.io is down.
- Loading branch information
1 parent
42345d0
commit b1ce40f
Showing
9 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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
11 changes: 11 additions & 0 deletions
11
...integration/_cases/debug_files/debug_files-check-no-file-allow-failure-env-windows.trycmd
This file contains 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,11 @@ | ||
``` | ||
$ SENTRY_ALLOW_FAILURE=1 sentry-cli debug-files check non-existing-file-path | ||
? success | ||
error: The system cannot find the file specified. (os error 2) | ||
|
||
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. | ||
|
||
Command failed, however, "SENTRY_ALLOW_FAILURE" variable or "allow-failure" flag was set. Exiting with 0 exit code. | ||
|
||
``` |
11 changes: 11 additions & 0 deletions
11
tests/integration/_cases/debug_files/debug_files-check-no-file-allow-failure-env.trycmd
This file contains 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,11 @@ | ||
``` | ||
$ SENTRY_ALLOW_FAILURE=1 sentry-cli debug-files check non-existing-file-path | ||
? success | ||
error: No such file or directory (os error 2) | ||
|
||
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. | ||
|
||
Command failed, however, "SENTRY_ALLOW_FAILURE" variable or "allow-failure" flag was set. Exiting with 0 exit code. | ||
|
||
``` |
11 changes: 11 additions & 0 deletions
11
tests/integration/_cases/debug_files/debug_files-check-no-file-allow-failure-windows.trycmd
This file contains 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,11 @@ | ||
``` | ||
$ sentry-cli debug-files check non-existing-file-path --allow-failure | ||
? success | ||
error: The system cannot find the file specified. (os error 2) | ||
|
||
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. | ||
|
||
Command failed, however, "SENTRY_ALLOW_FAILURE" variable or "allow-failure" flag was set. Exiting with 0 exit code. | ||
|
||
``` |
11 changes: 11 additions & 0 deletions
11
tests/integration/_cases/debug_files/debug_files-check-no-file-allow-failure.trycmd
This file contains 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,11 @@ | ||
``` | ||
$ sentry-cli debug-files check non-existing-file-path --allow-failure | ||
? success | ||
error: No such file or directory (os error 2) | ||
|
||
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. | ||
|
||
Command failed, however, "SENTRY_ALLOW_FAILURE" variable or "allow-failure" flag was set. Exiting with 0 exit code. | ||
|
||
``` |
9 changes: 9 additions & 0 deletions
9
tests/integration/_cases/debug_files/debug_files-check-no-file-windows.trycmd
This file contains 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 @@ | ||
``` | ||
$ sentry-cli debug-files check non-existing-file-path | ||
? failed | ||
error: The system cannot find the file specified. (os error 2) | ||
|
||
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. | ||
|
||
``` |
9 changes: 9 additions & 0 deletions
9
tests/integration/_cases/debug_files/debug_files-check-no-file.trycmd
This file contains 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 @@ | ||
``` | ||
$ sentry-cli debug-files check non-existing-file-path | ||
? failed | ||
error: No such file or directory (os error 2) | ||
|
||
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 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