-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
incorporate sentry dsn for testing into existing logic
- Loading branch information
1 parent
c21576f
commit d46632b
Showing
3 changed files
with
7 additions
and
11 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 |
---|---|---|
|
@@ -68,6 +68,7 @@ jobs: | |
compose_path: "/usr/local/lib/docker/cli-plugins" | ||
env: | ||
COMPOSE_PROJECT_NAME: self-hosted-${{ strategy.job-index }} | ||
SENTRY_DSN: https://[email protected]/6627632 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -91,7 +92,7 @@ jobs: | |
timeout_minutes: 10 | ||
retry_on: error | ||
command: | | ||
export REPORT_SELF_HOSTED_ISSUES=0 | ||
export REPORT_SELF_HOSTED_ISSUES=1 | ||
./install.sh | ||
- name: Integration Test | ||
|
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 |
---|---|---|
|
@@ -28,12 +28,7 @@ teardown() { | |
DID_TEAR_DOWN=1 | ||
|
||
if [ "$1" != "EXIT" ]; then | ||
set +x | ||
error_msg="An error occurred, caught SIG$1 on line $2" | ||
echo "$error_msg" | ||
dsn="https://[email protected]/6627632" | ||
local sentry_cli="docker run --rm -v $(pwd):/work -e SENTRY_DSN=$dsn getsentry/sentry-cli" | ||
$sentry_cli send-event -m "$error_msg" --logfile $log_file | ||
echo "An error occurred, caught SIG$1 on line $2" | ||
fi | ||
|
||
echo "Tearing down ..." | ||
|
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
echo "${_group}Setting up error handling ..." | ||
|
||
export SENTRY_DSN='https://[email protected]/3' | ||
export SENTRY_ORG=self-hosted | ||
export SENTRY_PROJECT=installer | ||
if [ -z "$SENTRY_DSN" ]; then | ||
export SENTRY_DSN='https://19555c489ded4769978daae92f2346ca@self-hosted.getsentry.net/3' | ||
fi | ||
|
||
$dbuild -t sentry-self-hosted-jq-local --platform="$DOCKER_PLATFORM" jq | ||
|
||
jq="docker run --rm -i sentry-self-hosted-jq-local" | ||
sentry_cli="docker run --rm -v /tmp:/work -e SENTRY_ORG=$SENTRY_ORG -e SENTRY_PROJECT=$SENTRY_PROJECT -e SENTRY_DSN=$SENTRY_DSN getsentry/sentry-cli" | ||
sentry_cli="docker run --rm -v /tmp:/work -e SENTRY_DSN=$SENTRY_DSN getsentry/sentry-cli" | ||
|
||
send_envelope() { | ||
# Send envelope | ||
|