-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138551 from cockroachdb/blathers/backport-release…
…-24.1-138379 release-24.1: release: add trigger Sentry panic script
- Loading branch information
Showing
4 changed files
with
24 additions
and
35 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
build/teamcity/internal/release/process/trigger-sentry-panic.sh
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,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2023 The Cockroach Authors. | ||
# | ||
# Use of this software is governed by the CockroachDB Software License | ||
# included in the /LICENSE file. | ||
|
||
|
||
set -euxo pipefail | ||
|
||
if [[ -n "${DRY_RUN}" ]] ; then | ||
echo "Skipping this step in dry-run mode" | ||
exit | ||
fi | ||
|
||
dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" | ||
source "$dir/release/teamcity-support.sh" | ||
version=$(grep -v "^#" "$dir/../pkg/build/version.txt" | head -n1) | ||
|
||
google_credentials="$GCS_CREDENTIALS_PROD" log_into_gcloud | ||
gsutil cp "gs://cockroach-release-artifacts-staged-prod/cockroach-$version.linux-amd64.tgz" ./ | ||
tar xf "cockroach-$version.linux-amd64.tgz" | ||
echo "select crdb_internal.force_panic('testing');" | "./cockroach-${version}.linux-amd64/cockroach" demo --insecure || true | ||
rm -rf "cockroach-$version.linux-amd64.tgz" "cockroach-${version}.linux-amd64" |
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 was deleted.
Oops, something went wrong.