-
Notifications
You must be signed in to change notification settings - Fork 2
/
autogen.yaml
330 lines (330 loc) · 12 KB
/
autogen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
queries:
- id: 318
name: "DESCRIBE crash_aggregates"
data_source: "Presto"
schedule: null
api_key: "d92720bb35301e28362dcc4d94ad789dbcb32773"
query: |
DESCRIBE crash_aggregates
- id: 200
name: "FxDesktop Nightly: Crashes by Date"
data_source: "Presto"
schedule: "08:00"
api_key: "b6e185e0535b32b5c6da5272ae59d8f5e08da1c4"
query: |
WITH channel_data AS (
SELECT *
FROM crash_aggregates
WHERE
CAST(submission_date AS date) >= date_add('day', -90, current_date)
AND CAST(activity_date AS date) >= date_add('day', -90, current_date)
AND dimensions['application'] = 'Firefox'
AND dimensions['channel'] = 'nightly'
AND dimensions['experiment_id'] IS NULL
),
crash_counts AS (
SELECT
activity_date,
SUM(stats['usage_hours']) / 1000 AS usage_khours,
SUM(stats['main_crashes']) AS main_crashes,
SUM(stats['content_crashes']) AS content_crashes,
SUM(stats['content_shutdown_crashes']) AS content_shutdown_crashes,
SUM(stats['plugin_crashes']) AS npapi_plugin_crashes,
SUM(stats['gmplugin_crashes']) AS media_plugin_crashes
FROM channel_data
GROUP BY activity_date
),
versions_by_date AS (
SELECT
activity_date,
dimensions['build_version'] AS version,
ROW_NUMBER() OVER (
PARTITION BY activity_date
ORDER BY SUM(stats['usage_hours']) DESC) AS rank
FROM channel_data
GROUP BY activity_date, dimensions['build_version']
),
leading_version_by_date AS (
SELECT
activity_date,
version AS leading_version
FROM versions_by_date
WHERE rank = 1
),
counts_over_time AS (
SELECT
activity_date,
usage_khours,
main_crashes,
content_crashes,
content_shutdown_crashes,
npapi_plugin_crashes,
media_plugin_crashes,
SUM(main_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS main_crashes_weekly,
SUM(content_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS content_crashes_weekly,
SUM(content_shutdown_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS content_shutdown_crashes_weekly,
SUM(npapi_plugin_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS npapi_plugin_crashes_weekly,
SUM(media_plugin_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS media_plugin_crashes_weekly
FROM crash_counts
)
SELECT
cot.*,
leading_version
FROM
counts_over_time AS cot
LEFT OUTER JOIN leading_version_by_date AS lvbd
ON cot.activity_date = lvbd.activity_date
ORDER BY cot.activity_date ASC
- id: 199
name: "FxDesktop DevEdition: Crashes By Date"
data_source: "Presto"
schedule: "08:00"
api_key: "705e86e3e080611aa21e693ba0187190af902c8b"
query: |
WITH channel_data AS (
SELECT *
FROM crash_aggregates
WHERE
CAST(submission_date AS date) >= date_add('day', -90, current_date)
AND CAST(activity_date AS date) >= date_add('day', -90, current_date)
AND dimensions['application'] = 'Firefox'
AND dimensions['channel'] = 'aurora'
AND dimensions['experiment_id'] IS NULL
),
crash_counts AS (
SELECT
activity_date,
SUM(stats['usage_hours']) / 1000 AS usage_khours,
SUM(stats['main_crashes']) AS main_crashes,
SUM(stats['content_crashes']) AS content_crashes,
SUM(stats['content_shutdown_crashes']) AS content_shutdown_crashes,
SUM(stats['plugin_crashes']) AS npapi_plugin_crashes,
SUM(stats['gmplugin_crashes']) AS media_plugin_crashes
FROM channel_data
GROUP BY activity_date
),
versions_by_date AS (
SELECT
activity_date,
dimensions['build_version'] AS version,
ROW_NUMBER() OVER (
PARTITION BY activity_date
ORDER BY SUM(stats['usage_hours']) DESC) AS rank
FROM channel_data
GROUP BY activity_date, dimensions['build_version']
),
leading_version_by_date AS (
SELECT
activity_date,
version AS leading_version
FROM versions_by_date
WHERE rank = 1
),
counts_over_time AS (
SELECT
activity_date,
usage_khours,
main_crashes,
content_crashes,
npapi_plugin_crashes,
media_plugin_crashes,
SUM(main_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS main_crashes_weekly,
SUM(content_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS content_crashes_weekly,
SUM(content_shutdown_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS content_shutdown_crashes_weekly,
SUM(npapi_plugin_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS npapi_plugin_crashes_weekly,
SUM(media_plugin_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS media_plugin_crashes_weekly
FROM crash_counts
)
SELECT
cot.*,
leading_version
FROM
counts_over_time AS cot
LEFT OUTER JOIN leading_version_by_date AS lvbd
ON cot.activity_date = lvbd.activity_date
ORDER BY cot.activity_date ASC
- id: 322
name: "FxDesktop Beta: Crashes By Date"
data_source: "Presto"
schedule: "08:00"
api_key: "82551524acb38eb45f20d203b0004831b54c9696"
query: |
WITH channel_data AS (
SELECT *
FROM crash_aggregates
WHERE
CAST(submission_date AS date) >= date_add('day', -90, current_date)
AND CAST(activity_date AS date) >= date_add('day', -90, current_date)
AND dimensions['application'] = 'Firefox'
AND dimensions['channel'] = 'beta'
AND dimensions['experiment_id'] IS NULL
AND (dimensions['e10s_enabled'] != 'True' OR dimensions['e10s_enabled'] IS NULL)
),
crash_counts AS (
SELECT
activity_date,
SUM(stats['usage_hours']) / 1000 AS usage_khours,
SUM(stats['main_crashes']) AS main_crashes,
SUM(stats['content_crashes']) AS content_crashes,
SUM(stats['content_shutdown_crashes']) AS content_shutdown_crashes,
SUM(stats['plugin_crashes']) AS npapi_plugin_crashes,
SUM(stats['gmplugin_crashes']) AS media_plugin_crashes
FROM channel_data
GROUP BY activity_date
),
versions_by_date AS (
SELECT
activity_date,
dimensions['build_version'] AS version,
ROW_NUMBER() OVER (
PARTITION BY activity_date
ORDER BY SUM(stats['usage_hours']) DESC) AS rank
FROM channel_data
GROUP BY activity_date, dimensions['build_version']
),
leading_version_by_date AS (
SELECT
activity_date,
version AS leading_version
FROM versions_by_date
WHERE rank = 1
),
counts_over_time AS (
SELECT
activity_date,
usage_khours,
main_crashes,
content_crashes,
content_shutdown_crashes,
npapi_plugin_crashes,
media_plugin_crashes,
SUM(main_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS main_crashes_weekly,
SUM(content_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS content_crashes_weekly,
SUM(content_shutdown_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS content_shutdown_crashes_weekly,
SUM(npapi_plugin_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS npapi_plugin_crashes_weekly,
SUM(media_plugin_crashes) OVER
(ORDER BY activity_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW)
AS media_plugin_crashes_weekly
FROM crash_counts
)
SELECT
cot.*,
leading_version
FROM
counts_over_time AS cot
LEFT OUTER JOIN leading_version_by_date AS lvbd
ON cot.activity_date = lvbd.activity_date
ORDER BY cot.activity_date ASC
- id: 326
name: "FxDesktop: Comparison of e10s/non-e10s crash rates"
data_source: "Presto"
api_key: "d2f89374fbb282f44b299e1267f9c99771f59773"
schedule: "08:00"
query: |
WITH channel_data AS (
SELECT *
FROM crash_aggregates
WHERE
CAST(submission_date AS date) >= date_add('day', -90, current_date)
AND CAST(activity_date AS date) >= date_add('day', -90, current_date)
AND dimensions['application'] = 'Firefox'
AND dimensions['channel'] = 'beta'
AND dimensions['experiment_id'] IS NULL
AND dimensions['e10s_cohort'] IN ('test', 'control')
AND date_diff('day', date_parse(SUBSTR(dimensions['build_id'], 1, 8), '%Y%m%d'), date_parse(SUBSTR(activity_date, 1, 10), '%Y-%m-%d')) < 21
),
crash_counts AS (
SELECT
activity_date,
dimensions['e10s_cohort'] AS e10s_cohort,
SUM(stats['usage_hours']) / 1000 AS usage_khours,
SUM(stats['main_crashes']) AS main_crashes,
SUM(stats['content_crashes']) AS content_crashes,
SUM(stats['content_shutdown_crashes']) AS content_shutdown_crashes,
SUM(stats['plugin_crashes']) AS npapi_plugin_crashes,
SUM(stats['gmplugin_crashes']) AS media_plugin_crashes
FROM channel_data
GROUP BY activity_date, dimensions['e10s_cohort']
),
nonxp_crash_counts AS (
SELECT
activity_date,
dimensions['e10s_cohort'] || '_without_xp' AS e10s_cohort,
SUM(stats['usage_hours']) / 1000 AS usage_khours,
SUM(stats['main_crashes']) AS main_crashes,
SUM(stats['content_crashes']) AS content_crashes,
SUM(stats['content_shutdown_crashes']) AS content_shutdown_crashes,
SUM(stats['plugin_crashes']) AS npapi_plugin_crashes,
SUM(stats['gmplugin_crashes']) AS media_plugin_crashes
FROM channel_data
WHERE dimensions['os_name'] != 'Windows_NT' OR
TRY_CAST(SPLIT_PART(dimensions['os_version'], '.', 1) AS BIGINT) >= 6
GROUP BY activity_date, dimensions['e10s_cohort']
),
versions_by_date AS (
SELECT
activity_date,
dimensions['build_version'] AS version,
ROW_NUMBER() OVER (
PARTITION BY activity_date
ORDER BY SUM(stats['usage_hours']) DESC) AS rank
FROM channel_data
GROUP BY activity_date, dimensions['build_version']
),
leading_version_by_date AS (
SELECT
activity_date,
version AS leading_version
FROM versions_by_date
WHERE rank = 1
),
counts_over_time AS (
SELECT
activity_date,
e10s_cohort,
usage_khours,
main_crashes,
content_crashes,
content_shutdown_crashes,
npapi_plugin_crashes,
media_plugin_crashes
FROM (SELECT * FROM crash_counts UNION ALL
SELECT * FROM nonxp_crash_counts)
WHERE usage_khours > 1000
)
SELECT
cot.*,
leading_version
FROM
counts_over_time AS cot
LEFT OUTER JOIN leading_version_by_date AS lvbd
ON cot.activity_date = lvbd.activity_date
ORDER BY cot.activity_date ASC