|
1 | 1 | from __future__ import annotations |
2 | 2 |
|
3 | | -from dataclasses import dataclass |
4 | | - |
5 | 3 | import sentry.preprod.size_analysis.grouptype # noqa: F401,F403 |
6 | | -from sentry.issues.grouptype import GroupCategory, GroupType |
7 | | -from sentry.types.group import PriorityLevel |
8 | 4 |
|
9 | 5 | # We have to import sentry.preprod.size_analysis.grouptype above. |
10 | 6 | # grouptype modules in root packages (src/sentry/*) are auto imported |
11 | 7 | # but more deeply nested ones are not. |
12 | | - |
13 | | - |
14 | | -@dataclass(frozen=True) |
15 | | -class PreprodStaticGroupType(GroupType): |
16 | | - """ |
17 | | - Issues detected in a single uploaded artifact. For example an |
18 | | - Android app not being 16kb page size ready. |
19 | | - Typically these end up grouped across multiple builds e.g. if CI |
20 | | - uploads a build of an app for each commit to main each of those |
21 | | - uploads could result in an occurrence of some issue like the 16kb |
22 | | - page size. |
23 | | - """ |
24 | | - |
25 | | - type_id = 11001 |
26 | | - slug = "preprod_static" |
27 | | - description = "Static Analysis" |
28 | | - category = GroupCategory.PREPROD.value |
29 | | - category_v2 = GroupCategory.PREPROD.value |
30 | | - default_priority = PriorityLevel.LOW |
31 | | - released = False |
32 | | - enable_auto_resolve = True |
33 | | - enable_escalation_detection = False |
34 | | - |
35 | | - |
36 | | -@dataclass(frozen=True) |
37 | | -class PreprodDeltaGroupType(GroupType): |
38 | | - """ |
39 | | - Issues detected examining the delta between two uploaded artifacts. |
40 | | - For example a binary size regression. These are typically *not* |
41 | | - grouped. A size regression between v1 and v2 likely does not have |
42 | | - the same root cause (and hence resolution) as another regression |
43 | | - between v2 and v3. |
44 | | - """ |
45 | | - |
46 | | - type_id = 11002 |
47 | | - slug = "preprod_delta" |
48 | | - description = "Static Analysis Delta" |
49 | | - category = GroupCategory.PREPROD.value |
50 | | - category_v2 = GroupCategory.PREPROD.value |
51 | | - default_priority = PriorityLevel.LOW |
52 | | - released = False |
53 | | - enable_auto_resolve = True |
54 | | - enable_escalation_detection = False |
0 commit comments