Closed Bug 1695366 Opened 3 years ago Closed 3 years ago

Only send exceptions to Sentry if Python files have not been changed

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement

Tracking

(firefox88 fixed)

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: mhentges, Assigned: mhentges)

References

Details

Attachments

(1 file, 1 obsolete file)

We've got a bunch of noise in Sentry from exceptions thrown from code in development.
We've tried to make it better in 1645423, but if the affected code isn't in the stack trace, we still have false positives coming through.

However, I think having a clear signal with less data is better than a noisy signal with a lot of data. We can entirely eliminate false positive "noise" by only sending Sentry exceptions that happen on a clean checkout. Specifically, don't send if:

  • We're not in a VCS checkout. Building from non-VCS is already on the fringe of active support - if a failure happens, report a bug as usual
  • We're not on a commit on central: if there's un-landed code that may have contributed to the exception, don't send us the exception
  • There's any un-committed files in the working directory: again, un-landed code may have caused the exception.
Assignee: nobody → mhentges
Status: NEW → ASSIGNED

Talked to glob, we can get similarly clean signal but with more data if we adjust the filter to just ensure that our python scripts are clean compared our current central ancestor. We should allow modified C++/moz.build/etc files.

Summary: Only send exceptions to Sentry if on a clean checkout of a `central` revision → Only send exceptions to Sentry if Python files have not been changed

If the "mach" file and all "*.py" files are unchanged, then the reported
exception is likely legitimate and can be reproduced on the public tree.

If the "mach" file and all "*.py" files are unchanged, then the reported
exception is likely legitimate and can be reproduced on the public tree.

Attachment #9208794 - Attachment is obsolete: true
Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b4541867e67d
Only submit Sentry events when Mach is unmodified r=sheehan
Blocks: 1645425
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: