Граф коммитов

114 Коммитов

Автор SHA1 Сообщение Дата
Michael Droettboom 848bd1b3fe
Bug 1634310: Python: Fix race condition in atexit (#854)
* Bug 1634310: Python: Fix race condition in atexit

* Attempt to fix Windows issue

* Add comment about _testing_mode

* Add fall-through exception case
2020-05-04 09:25:00 -04:00
Alessio Placitelli 3286de3b1e Allow calling `PingType.submit()` from Java without parameters 2020-04-30 16:49:08 +02:00
Michael Droettboom 34803b0ed4
Bumped version to 28.0.0 (#844) 2020-04-24 15:41:59 -04:00
Michael Droettboom bc1d77ca34
Bug 1628885: Use subprocess rather than multiprocessing for ping uploading (#819)
* Bug 1628885: Use subprocess rather than multiprocessing for ping uploading

This avoids a number of features that are tricky on Windows, such as
duplicating file handles to a spawned subprocess.

* Address comments in the PR

* Lint

* Add CHANGELOG
2020-04-16 08:42:37 -04:00
Jan-Erik Rediger 1549b0a471
Add back missed header in changelog
[doc only]
2020-04-14 16:05:23 +02:00
Michael Droettboom c070eca241
Bug 1627286: Add a baseline ping on foreground (#807)
* Bug 1627286: Add a baseline ping on foreground

* Update ping timings docs

* Address comments in PR

* Fix CHANGELOG

* Add iOS foreground baseline ping and tests

* Update generated docs

Co-authored-by: Travis Long <tlong@mozilla.com>
2020-04-14 10:03:06 -04:00
Michael Droettboom 5161ffa6d5
Bug 1629046: Remove dependency on inflection (#820) 2020-04-14 10:34:42 +02:00
Michael Droettboom 51d07775cc
Bug 1628310: Don't raise HTTPException or socket.gaierror (#816)
* Bug 1628310: Don't raise HTTPException or socket.gaierror

These exceptions occur when the network is down, the URL doesn't resolve,
and a bunch of other things. If any of these fail, we should just log and return
False so the ping uploader can move on to other pings or try again next time.
This is preferable to displaying a long (but ultimately harmless) traceback.

* debug -> error

* Update glean-core/python/tests/test_network.py

Co-Authored-By: Alessio Placitelli <alessio.placitelli@gmail.com>

* Add CHANGELOG

Co-authored-by: Alessio Placitelli <alessio.placitelli@gmail.com>
2020-04-10 08:53:37 -04:00
Jan-Erik Rediger 1fc9b70f67 Bumped version to 27.1.0 2020-04-09 16:53:15 +02:00
Jan-Erik Rediger 5a54330347 Document the potential breaking change 2020-04-09 16:53:15 +02:00
Michael Droettboom 7400e4d0ea Add CHANGELOG 2020-04-09 10:34:42 -04:00
Michael Droettboom 4292275ced
Bug 1628057: Include app lifetime metrics in dirty_startup baseline pings (#810)
* Bug 1628057: Include app lifetime metrics in dirty_startup baseline pings

* Bug 1628057: (iOS) Include app lifetime metrics in dirty_startup baseline pings

* Fix CHANGELOG

Co-authored-by: Jan-Erik Rediger <jrediger@mozilla.com>
2020-04-08 13:45:12 -04:00
Jan-Erik Rediger 9e4703ffb5 Fix spelling in changelog 2020-04-08 11:17:03 +02:00
Jan-Erik Rediger 73e3bf4e90 Bumped version to 27.0.0 2020-04-08 11:10:57 +02:00
Jan-Erik Rediger 63b9526afe Document latest changes around our utility functions 2020-04-08 11:10:00 +02:00
Michael Droettboom fd8f7719bf
Bug 1626086: Wait for tasks to complete before shutting down (#798)
* Bug 1626086: Wait for tasks to complete before shutting down

* lint

* Add comment

* Add documentation about Python parallelism

* Do ping uploading in a separate process

* Fix test on Windows

* Refactor to reduce duplication

* Make multiprocessing optional

* Update docs/user/adding-glean-to-your-project.md

Co-Authored-By: William Lachance <wrlach@gmail.com>

* Update docs/user/adding-glean-to-your-project.md

Co-Authored-By: William Lachance <wrlach@gmail.com>

* Make it clear in the CHANGELOG that multiprocessing is optional

* Rename methods

* spellcheck

Co-authored-by: William Lachance <wrlach@gmail.com>
2020-04-06 11:32:32 -04:00
Michael Droettboom fa18d68d32
bug 1604177: Add reason code to the events ping (#797)
* bug 1604177: Add reason code to the events ping

* Fix swift

* Improve startup reason description
2020-04-03 08:42:29 -04:00
Travis Long cb17e90ac2 [doc only] Add CHANGELOG.md entry for Xcode upgrade to 11.4.0 2020-04-02 12:12:43 -05:00
Michael Droettboom c3b0d64e41
1624695: Act on changes in upload enable state outside of application (#791)
* 1624695: Act on changes in upload enable state outside of application

* BUGFIX: iOS don't send metrics ping imm. on last day of the month

Co-authored-by: Travis Long <tlong@mozilla.com>
2020-04-02 10:26:18 -04:00
Michael Droettboom f4845e96db
Bumped version to 26.0.0 (#788) 2020-03-27 18:06:09 -04:00
Michael Droettboom b11564f0e7
1604191: Python: run Glean work on a worker thread (#783)
* 1604191: Python: run Glean work on a worker thread

* Implement tests

* Add another test

* Apply suggestions from code review

Co-Authored-By: William Lachance <wrlach@gmail.com>

* Convert docstring to comment

* Add docs about parallelism

* lint

* Remove unnecessary layer of indirection

Co-authored-by: William Lachance <wrlach@gmail.com>
2020-03-27 09:18:25 -04:00
Michael Droettboom 1d9528e00a
Upgrade glean_parser to 1.19.0 (#772)
* Upgrade glean_parser to 1.19.0

* Spellcheck
2020-03-20 10:27:11 -04:00
Michael Droettboom 059bd11b0a Python: Labeled boolean and labeled string metric type 2020-03-11 13:01:25 -04:00
Michael Droettboom 5e6a877cea Fix Python documentation and make some things private 2020-03-09 17:54:35 -04:00
Michael Droettboom 8462cc1422
Python: Implement memory distribution metric type (#763)
* Python: Implement memory distribution metric type

* Add CHANGELOG
2020-03-09 13:02:49 -04:00
Michael Droettboom 63ea1ed1cd
1615256: Don't clean the miniconda installation on `gradlew clean` (#753)
* 1615256: Don't clean the miniconda installation on `gradlew clean`

* Add CHANGELOG

* Spellcheck
2020-03-05 09:50:09 -05:00
Jan-Erik Rediger fbeecbcce1 Bumped version to 25.1.0 2020-02-26 16:31:47 +01:00
Jan-Erik Rediger c8e104cb50 Update changelog with more python changes 2020-02-26 16:31:46 +01:00
Michael Droettboom 3fb0795ba8 Add CHANGELOG 2020-02-26 10:10:45 -05:00
Michael Droettboom 9bb3ebd4cd
Python: Implement Datetime metric type (#732)
* Python: Implement Datetime metric type

* Add CHANGELOG

* Spellcheck
2020-02-25 19:08:32 +05:30
Michael Droettboom dd13864071
Python: Add boolean metric type (#731)
* Python: Import boolean metric type

* Add CHANGELOG

* pythonlint
2020-02-21 19:27:05 +05:30
Alessio Placitelli 5078ba9905 Bumped version to 25.0.0 2020-02-17 11:38:29 +01:00
Michael Droettboom 3f1fca72ae
1608585: Fix labeled regex (#668)
* 1608585: Fix labeled regex

* Update docstring

* Update docs

* Add CHANGELOG

* spellcheck

* Move CHANGELOG entry
2020-02-14 22:20:16 +05:30
Michael Droettboom 268d303f6e
Upgrade to glean_parser v1.18.2 (#712)
* Upgrade to glean_parser v1.18.1

* Fix reason list formatting
2020-02-14 20:15:19 +05:30
Michael Droettboom 60d3c88945
1613174: Run glinter as part of loading Python metrics (#706)
* 1613174: Run glinter as part of loading Python metrics

* Don't treat warnings as errors

* Only display output if there are actual errors
2020-02-14 01:25:40 +05:30
Travis Long fc0c445479 Bug 1614948 - Make `Glean.initialize` run off the main thread in iOS
minor fixes
2020-02-13 08:22:58 -06:00
Michael Droettboom 22ff84a3a4
1609735: Python: Add instrumentation when overflowing preinit queue (#705) 2020-02-13 19:51:35 +05:30
Alessio Placitelli f71ba5d570
Merge branch 'master' into faster_init 2020-02-13 09:59:32 +01:00
Travis Long d626a5e32e Add CHANGELOG.md entry 2020-02-12 10:04:24 -06:00
Travis Long 379c17eefb Add CHANGELOG.md entry
Move CHANGELOG entry to correct section after rebasing
2020-02-12 07:12:01 -06:00
Alessio Placitelli 019c96cd0e Make Glean init in Kotlin fully async 2020-02-12 11:53:10 +01:00
Jan-Erik Rediger 8838ade9f3 Document change 2020-02-12 11:05:20 +01:00
Alessio Placitelli b40f253635 Bumped version to 24.2.0 2020-02-11 17:45:51 +01:00
Alessio Placitelli 53a6637467 Update CHANGELOG.md 2020-02-11 16:16:45 +01:00
Michael Droettboom 2e3f59be19
1557048: Add reason codes to the metrics ping (#649)
* 1557048: Add reason codes to the metrics ping

This adds support for sending reason codes along with pings.  The reason codes
are defined as an enumeration in the pings.yaml file, and only these values
are allowed on specific pings.

Additionally, this builds on that to add reason codes to the metrics ping.

* Use short form for enums

* Suppress compiler warning

* swiftlint

* NoReasonCodes -> NoExtraKeys

* Fix descriptions
2020-02-11 20:40:10 +05:30
Michael Droettboom e06feb0e4f 1612940: Don't include null extras in experiments 2020-02-03 16:12:08 -05:00
Jan-Erik Rediger 90a454075e Document change in the changelog 2020-01-23 10:39:20 +01:00
Travis Long e69e55d4c0 Bug 1609734 - Swift: Adds use of overflow metric when pre-init queue overflows 2020-01-21 14:55:11 -06:00
Travis Long 53fb434f46 Remove `preinitTasksTimeout` metric 2020-01-21 14:51:06 -06:00
Alessio Placitelli c7552a7e9e
Add off the main thread preinit dispatching to changelog 2020-01-21 14:24:12 +01:00