Skip to content

Commit

Permalink
Merge pull request #138551 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-24.1-138379

release-24.1: release: add trigger Sentry panic script
  • Loading branch information
celiala authored Jan 8, 2025
2 parents 82173b4 + c060c4e commit 41e76d2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 35 deletions.
24 changes: 24 additions & 0 deletions build/teamcity/internal/release/process/trigger-sentry-panic.sh
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"
1 change: 0 additions & 1 deletion pkg/cmd/release/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ go_library(
"orchestration.go",
"pick_sha.go",
"sender.go",
"sentry.go",
"set_cockroach_version.go",
"templates.go",
"update_brew.go",
Expand Down
4 changes: 0 additions & 4 deletions pkg/cmd/release/pick_sha.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,5 @@ func pickSHA(_ *cobra.Command, _ []string) error {
if err := sendMailPickSHA(args, opts); err != nil {
return fmt.Errorf("cannot send email: %w", err)
}
fmt.Println("Generating panic")
if err := generatePanic(nextRelease.buildInfo.Tag); err != nil {
return fmt.Errorf("cannot generate panic: %w", err)
}
return nil
}
30 changes: 0 additions & 30 deletions pkg/cmd/release/sentry.go

This file was deleted.

0 comments on commit 41e76d2

Please sign in to comment.