Bug 1759725: Mach: migrate from hosted Sentry to cloud-managed Sentry r=glob

Update DSN for reporting exceptions to the new Sentry instance, and
update CI job to create releases on the new Sentry as well.

Differential Revision: https://phabricator.services.mozilla.com/D141122
This commit is contained in:
Mitchell Hentges 2022-03-23 15:55:44 +00:00
parent 31cdbe04d0
commit f4d496e238
2 changed files with 5 additions and 3 deletions

View File

@ -21,8 +21,10 @@ from mozversioncontrol import (
)
from six import string_types
# https://sentry.prod.mozaws.net/operations/mach/
_SENTRY_DSN = "https://8228c9aff64949c2ba4a2154dc515f55@sentry.prod.mozaws.net/525"
# https://sentry.io/organizations/mozilla/projects/mach/
_SENTRY_DSN = (
"https://5cfe351fb3a24e8d82c751252b48722b@o1069899.ingest.sentry.io/6250014"
)
class ErrorReporter(object):

View File

@ -7,7 +7,7 @@ run() {
revisions=$(curl "$HG_PUSHLOG_URL" | jq -c -r ".pushes[].changesets | @sh" | tr -d \') || return 1
sentry_api_key=$(curl "http://taskcluster/secrets/v1/secret/$SENTRY_SECRET" | jq -r ".secret.sentryToken") || return 1
for revision in $revisions; do
SENTRY_API_KEY=$sentry_api_key SENTRY_ORG=operations sentry-cli --url https://sentry.prod.mozaws.net/ releases --project mach new "hg-rev-$revision" || return 1
SENTRY_API_KEY=$sentry_api_key SENTRY_ORG=mozilla sentry-cli --url https://sentry.io/ releases --project mach new "hg-rev-$revision" || return 1
done
}