forked from getsentry/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
121 changed files
with
2,864 additions
and
1,246 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,8 @@ source "${SENTRY_ROOT}/scripts/lib.sh" | |
# consequently, using "exit" anywhere will skip this notice from showing. | ||
# so need to use set -e, and return 1. | ||
trap notice ERR | ||
# This is used to group issues on Sentry.io. | ||
# If an issue does not call info() or die() it will be grouped under this | ||
error_message="Unknown issue" | ||
# This has to be the same value as what sentry-cli accepts | ||
log_level="info" | ||
|
||
complete_success="yup" | ||
|
||
help_message() { | ||
cat <<EOF | ||
|
@@ -52,17 +49,6 @@ EOF | |
notice() { | ||
[ $? -eq 0 ] && return | ||
failure_message | ||
[ -z "${SENTRY_DEVENV_NO_REPORT+x}" ] && report_to_sentry | ||
} | ||
|
||
report_to_sentry() { | ||
if ! require sentry-cli; then | ||
curl -sL https://sentry.io/get-cli/ | bash | ||
fi | ||
# Report to sentry-dev-env project | ||
SENTRY_DSN="https://[email protected]/5723503" \ | ||
sentry-cli send-event -m "$error_message" --logfile "$_SENTRY_LOG_FILE" --level "$log_level" | ||
rm "$_SENTRY_LOG_FILE" | ||
} | ||
|
||
debug() { | ||
|
@@ -77,15 +63,11 @@ info() { | |
|
||
warn() { | ||
echo -e "${yellow}${*}${reset}" >&2 | ||
log_level="warning" | ||
complete_success="nope" | ||
} | ||
|
||
die() { | ||
echo -e "${red}${bold}FATAL: ${*}${reset}" >&2 | ||
# When reporting to Sentry, this will allow grouping the errors differently | ||
# NOTE: The first line of the output is used to group issues | ||
error_message=("${@}") | ||
log_level="error" | ||
return 1 | ||
} | ||
|
||
|
@@ -139,19 +121,6 @@ else | |
export SENTRY_DEVSERVICES_DSN=https://[email protected]/1492057 | ||
fi | ||
|
||
# We can remove these lines in few months | ||
if [ "$SHELL" == "/bin/zsh" ]; then | ||
zshrc_path="${HOME}/.zshrc" | ||
header="# Apple M1 environment variables" | ||
if grep -qF "${header}" "${zshrc_path}"; then | ||
echo -e "\n${red}Please delete from ${zshrc_path}, the following three lines:${reset}" | ||
echo -e "${header} | ||
export CPATH=/opt/homebrew/Cellar/librdkafka/1.8.2/include | ||
export LDFLAGS=-L/opt/homebrew/Cellar/gettext/0.21/lib" | ||
echo -e "\nWe have moved exporting of these variables to the right place." | ||
return 1 | ||
fi | ||
fi | ||
|
||
### System ### | ||
|
||
|
@@ -233,7 +202,7 @@ if [ ${#commands_to_run[@]} -ne 0 ]; then | |
show_commands_info | ||
fi | ||
|
||
if [ "${log_level}" != "info" ]; then | ||
if [ "${complete_success}" != "yup" ]; then | ||
help_message | ||
warn "\nPartial success. The virtualenv is active, however, you're not fully up-to-date (see messages above)." | ||
else | ||
|
Validating CODEOWNERS rules …
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
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
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
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
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
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
Empty file.
Oops, something went wrong.