Commit Graph

78 Commits

Author SHA1 Message Date
Alessio Placitelli
b1f021a21e Bug 1382556 - Fix loading the whitelist file from histogram_tools.py. r=chutten
This also fixes all the histogram definitions that landed
while the whitelist was broken.
2017-07-20 01:55:00 +02:00
Alessio Placitelli
a7af27a02a Bug 1381617 - Enable stricter scalar, histogram and events expiration validation. r=chutten
MozReview-Commit-ID: 9q93hOYsNUo
2017-07-18 09:59:00 +02:00
Andrew Halberstadt
bce781d9b8 Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher
This is needed before we can upgrade to flake8 3.3.0, as that version starts flagging these errors.

These files were modified by running:
autopep8 --select E305 --in-place -r <dir>

on the affected directories. I did it one dir at a time and verified the result after each.

MozReview-Commit-ID: FmlsfiKIbtr
2017-06-15 12:10:59 -04:00
Chris H-C
89b1d30556 Bug 1335343 - Prevent histogram recording in disallowed processes. r=Dexter
Unfortunately it means using FLAG histograms because I need to test that their
"we have a hidden default value" behaviour is appropriately silenced as well.

MozReview-Commit-ID: J8xGXwCTRIg
2017-06-13 07:10:00 -04:00
Raajit Raj
d2711f2d52 Bug 1367750 - Allow new keys in Histograms.json if strict_type_checks is False r=chutten
MozReview-Commit-ID: LyB72VN0tDP
2017-05-26 02:31:34 +05:30
Raajit Raj
b5b04fd7f1 Bug 1365577 - Don't print whitelist.json warning from histogram_tools.py outside of client builds r=chutten
MozReview-Commit-ID: 2vR9UapLiKP
2017-05-26 01:23:15 +05:30
Ryan VanderMeulen
5e40159e7a Backed out changeset 66138e53fec2 (bug 1365577) for flake8 failures. 2017-05-25 15:49:31 -04:00
Raajit Raj
860e1d0202 Bug 1365577 - Don't print whitelist.json warning from histogram_tools.py outside of client builds r=chutten
MozReview-Commit-ID: EuTcD7PoUIf
2017-05-26 00:26:32 +05:30
Sebastian Hengst
cbc8bca709 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Jduo3F6TzgF
2017-05-14 18:04:29 +02:00
Georg Fritzsche
816b7dfdaf Bug 1364362 - Add doc link for Histograms.json record_in_processes errors. r=chutten 2017-05-12 21:48:38 +07:00
Georg Fritzsche
67472b6fb8 Bug 1364393 - Skip Histograms.json record_in_process check in non-strict mode. r=chutten, r=frank 2017-05-12 21:49:33 +07:00
Georg Fritzsche
d856492a0a Bug 1364427 - Handle old non-numeric expressions in Histograms.json. r=dexter 2017-05-12 21:51:54 +07:00
Georg Fritzsche
c3844225ba Bug 1364427 - Allow duplicate keys in Histograms.json in non-strict mode. r=dexter 2017-05-12 21:46:30 +07:00
Chris H-C
4e614eea05 bug 1364207 - Guard all uses of whitelists in histogram_tools r=frank
MozReview-Commit-ID: HjFU5ASrhRG
2017-05-11 17:00:14 -04:00
Chris H-C
4d31e851f4 bug 1335343 - Add initial record_in_processes support r=Dexter
The probes needing to record in gpu were determined by listing the probes that
submitted data for those measures on Nightly on April 18.

MozReview-Commit-ID: 85nQA8rCH1p
2017-04-24 16:17:34 -04:00
Wes Kocher
5ea81c79c7 Backed out changeset 69ddf4e384ab (bug 1335343) for lint failures a=backout
MozReview-Commit-ID: Gg0mdbON3gz
2017-05-10 10:29:46 -07:00
Chris H-C
454e1213af bug 1335343 - Add initial record_in_processes support r=Dexter
The probes needing to record in gpu were determined by listing the probes that
submitted data for those measures on Nightly on April 18.

MozReview-Commit-ID: 85nQA8rCH1p
2017-04-24 16:17:34 -04:00
Avikalpa Kundu
c2cf02e97d Bug 1344834 - Enable flake8 rule E501: 'line too long (113 > 99 characters)'. r=Dexter 2017-05-03 06:38:00 +02:00
Georg Fritzsche
1fc17df501 Bug 1357001 - Part 5 - Fix linting errors. r=chutten 2017-04-21 15:48:44 +02:00
Georg Fritzsche
88054b0fc7 Bug 1357001 - Part 2 - Make histogram error message style more consistent. r=chutten 2017-04-18 18:22:43 +02:00
Georg Fritzsche
15fb79d095 Bug 1357001 - Part 1 - Unify validation errors in probe parsing scripts. r=chutten, f=gps 2017-04-18 18:21:36 +02:00
pgadige
533b316bd2 Bug 1344858 - Enable flake8 rule W601: ".has_key() is deprecated, use 'in'". r=Dexter
MozReview-Commit-ID: Far2S2TIZyl
2017-04-12 23:06:29 +05:30
djmdev
088b0050d1 Bug 1353678 - Made duplicate Histograms.json keys build errors. r=gfritzsche
If duplicate keys are present in Histograms.json then histogram_tools.py
will raise error.
2017-04-12 00:14:39 +05:30
Alessio Placitelli
8d4b02c01e Bug 1278531 - Disallow adding new "scalar" histograms to Histograms.json. r=gfritzsche
MozReview-Commit-ID: 1cYpF6N99Zi
2017-04-07 14:56:35 +02:00
Paavini Nanda
8b72dcd8ba Bug 1344852: Enable flake8 rule W602: "deprecated form of raising exception". r=dexter 2017-03-15 17:18:52 +05:30
Federico Padua
7036c21f0b Bug 1344833 - Enable flake8 rule E128: "continuation line under-indented for visual indent". r=Dexter
This patch enables flake8 rule E128:
"continuation line under-indented for visual indent" in toolkit/components/telemetry
by removing the relative E128 entry from toolkit/components/telemetry/.flake8
and fixing the files for which the E128 error was reported.
Precisely 10 errors violating E128 rule were found and solved.

MozReview-Commit-ID: 4sNXIxGFJQN
2017-03-18 21:18:27 +01:00
Federico Padua
0e70316680 Bug 1344836 - Enable flake8 rule E713: "test for membership should be 'not in'". r=Dexter
This patch enables flake8 rule E713:
"test for membership should be 'not in'" in toolkit/components/telemetry
by removing the relative E713 entry from toolkit/components/telemetry/.flake8
and fixing the files for which the E713 error was reported.
Precisely 6 errors violating E713 rule were found and solved.

MozReview-Commit-ID: 2AaYGgVkxbU
2017-03-14 02:03:13 +01:00
djmdev
89fefef3a5 Bug 1344849 - Enabled flake8 rule E201: "whitespace after '{'". r=Dexter
Removed whitespace after '{'
2017-03-15 18:33:48 +05:30
Federico Padua
3ad82d5643 Bug 1344841 - Enable flake8 rule E111: "indentation is not a multiple of four". r=Dexter
This patch enables flake8 rule E111: "indentation is not a multiple of four"
in toolkit/components/telemetry by removing the relative E111 entry from
toolkit/components/telemetry/.flake8 and fixing the files for which the E111
error was reported.

MozReview-Commit-ID: EOVcsllJNJK
2017-03-13 19:38:01 +01:00
djmdev
d657ec5e92 Bug 1344831 - Enable flake8 rule E703: "statement ends with a semicolon". r=dexter
Removed ending semicolons.
2017-03-09 22:37:32 +05:30
djmdev
2410c58bae Bug 1344718 - Enable flake8 rule E302: "expected 2 blank lines, found 1" for Telemetry code. r=Dexter 2017-03-08 22:41:00 +05:30
Georg Fritzsche
fced0d6848 Bug 1312806 - Categorical histograms should default to 50 buckets. r=dexter 2016-12-23 14:46:17 +01:00
AdamG2
c5d766c5cf Bug 1300715 - prevent newer registered histograms from using default r=chutten
"expires_in_version", and add old ones to the whitelist. r?chutten

MozReview-Commit-ID: Hp9rXdkQgBN
2016-10-04 23:50:08 -04:00
Georg Fritzsche
a3264dcae0 Bug 1294018 - Part 1 - Enforce whitelist updates on Histograms.json changes. r=chutten 2016-08-10 18:23:43 +02:00
Georg Fritzsche
b204aad44b Bug 1188888 - Part 7 - Bonus - Explicitly restrict histogram names to current patterns. r=chutten 2016-07-20 17:10:24 +02:00
Georg Fritzsche
e54db4e599 Bug 1188888 - Part 6 - Implement C++ API for categorical histograms. r=chutten,r=froyndj 2016-07-20 17:10:24 +02:00
Georg Fritzsche
cb5ae2c904 Bug 1188888 - Part 5 - Restrict label values. r=chutten 2016-07-20 17:10:24 +02:00
Georg Fritzsche
75a2db27c3 Bug 1188888 - Part 4 - Implement categorical histograms with JS API. r=chutten 2016-07-20 17:10:24 +02:00
Georg Fritzsche
9c36a5146a Bug 1188888 - Part 3 - Refactor the histogram script type & presence checking. r=chutten 2016-07-20 17:10:24 +02:00
Georg Fritzsche
2ae4a0e2df Bug 1271986 - Allow for Histogram.json entries with "keyed":"true" when running histogram_tools.py in the pipeline. r=dexter 2016-05-12 14:07:48 +01:00
Georg Fritzsche
55b7646bab Bug 1269318 - Skip alert_emails and bug_numbers checks for use counters. r=chutten 2016-05-03 18:07:44 +02:00
Georg Fritzsche
58d32f8773 Bug 1263189 - Skip the new type checks in histogram-tools.py on the server-side. r=chutten 2016-04-12 17:25:27 +02:00
Chris H-C
b875671a64 Bug 1219768 - make alert_emails field mandatory for new histograms. r=gfritzsche
alert_emails tell us who is interested in a particular histogram. If there's
no one interested, then the histogram shouldn't exist.

MozReview-Commit-ID: 90Yqof3dbsd
2016-02-23 10:48:13 -05:00
Chris H-C
dd6659b161 Bug 1219768 - make Histograms.json's bug_numbers field mandatory. r=gfritzsche
bug_numbers is now mandatory, because we really want to have some explanation
about where the probe came from.

We have a lot of non-bug-numbered probes (including non-Histograms.json-
resident probes like the use counters) that are being "grandfathered in" via
a whitelist in whitelists.json.

MozReview-Commit-ID: 62dN96sEOUf
2016-02-23 10:20:28 -05:00
Chris H-C
d4620c6a9e Bug 1219768 - make histogram_tools' whitelist file generic. r=gfritzsche
Future-proofing.

MozReview-Commit-ID: Jz41SWRK0bK
2016-02-22 16:13:02 -05:00
Eric Hu
ddb3c00078 Bug 1245910 - Enforce correct types in Histograms.json. r=gfritzsche
- Convert string values to integer and boolean values for Histograms
- Add compile time type checks on Histograms.json
- Remove string to int/bool coercion for the Histogram keys:
  - n_buckets
  - n_values
  - low
  - high
  - keyed
- Remove check_numeric (redundant with check_expression_types)
2016-02-17 21:14:31 +07:00
Georg Fritzsche
f775dcfeca Bug 1247264 - Update the Histogram bucket limit error message to point to the Telemetry team. r=chutten 2016-02-10 15:19:37 +01:00
Anup Kumar
af825059ba Bug 1201492 - Remove extended_statistics_ok from Telemetry histograms. r=dexter 2015-12-21 08:31:00 +01:00
Chris H-C
29f944b4f1 Bug 1222044 - Only allow lists of alert_emails r=vladan 2015-11-06 04:35:00 -08:00
Georg Fritzsche
c875ecd0de Bug 1219733 - Allow a 'bug_numbers' field in Histograms.json entries. r=vladan 2015-11-02 11:32:53 +01:00