Closed Bug 1889200 Opened 6 months ago Closed 5 months ago

bin/sentry-wrap.py doesn't specify a release

Categories

(Tecken :: General, defect, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: relud, Assigned: bdanforth)

References

Details

Attachments

(1 file)

the sentry event in bug 1873752 could theoretically be "resolved in next release", but we can't use that because bin/sentry-wrap.py doesn't specify a release.

this is where we're setting release when using fillmore: https://github.com/mozilla-services/tecken/blob/b4e6880c239261bb33dcbb1243a9711cb79bcbd3/tecken/apps.py#L67-L83

DOH! Also, sentry-wrap.py is another utility that I think I copy around to most of the service repositories.

Priority: -- → P3

Some thoughts: This script runs and then launches another process with subprocess, so it's not privy to what's in the Python process memory and we don't need to worry about what data is getting sent in the event. Thus we don't need fillmore here. We could switch it to use fillmore if we wanted to, but we don't need it.

I think we can import some functions from tecken/libdockerflow.py and then use that to set the release argument in sentry_sdk.init and that'll fix this.

Assignee: nobody → bdanforth
Status: NEW → ASSIGNED

This was deployed in bug #1893447 tag v2024.04.25.

Flags: needinfo?(bdanforth)
See Also: → 1893702
See Also: → 1893705

To verify this patch in prod, I'd need to log into the AWS console, open a shell in the web container and run ./bin/sentry_wrap.py test-sentry. Since I don't have access to the AWS console (we're in the process of migrating to GCP), willkg has kindly offered to verify this on my behalf. Swapping the needinfo to him.

Flags: needinfo?(bdanforth) → needinfo?(willkg)

I have verified that the release field is now populated for the latest event from May 3rd, 2024 for the reference error, which recurred: https://mozilla.sentry.io/issues/4723701783/events/?project=6700123 . Closing this ticket.

Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Flags: needinfo?(willkg)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: