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

40 Коммитов

Автор SHA1 Сообщение Дата
Michael Droettboom 76881c7fe5 Bug 1634626: Python: Add measure context manager 2020-08-06 09:19:56 -04:00
Beatriz Rizental 78bee73323
Bug 1644364 - Move logic to limit max retries on recoverable failures to glean-core (#1120) 2020-08-04 16:04:30 +02:00
Michael Droettboom b676cdf3cf
[doc only] Documentation cleanup (#1103)
* [doc only] Documentation cleanup

This is just a basic cleanup of things I found reading through the user
documentation, mainly of the form:

- Correcting the uses of "Glean" vs. "Glean SDK"
- Updating a few facts that became out of date
- Removing a little Python -> C# copy-pasta
- Adding the missing new metric parameter `data_sensitivity`
- Not linking out to glean_parser for the metric parameter docs (which have been
  duplicated in the Glean Book for some time).

* [doc only] Address comments in the PR
2020-07-28 10:44:57 -04:00
Beatriz Rizental ee5039301a
Bug 1650787 - Add docs about JWE metric type (#1087) 2020-07-22 11:00:58 +02:00
Michael Droettboom 708bd98275
Bug 1653196: Always record *some* value for app_display_version (#1088)
* Bug 1653196: Always record *some* value for app_display_version

* Add comment

* spellcheck

* Fix test
2020-07-21 18:29:04 -04:00
Beatriz Rizental 0d7532f832
Bug 1650787 - Implement the JWE metric type on the core and FFI (#1062) 2020-07-20 10:24:24 +02:00
Michael Droettboom 34e4a7eaa8
Bug 1646402: Python: Don't use threading in multiprocessing subprocesses (#986)
* Bug 1646402: Python: Don't use threading in multiprocessing subprocesses

* spellcheck

* Add comment
2020-06-22 10:19:09 -04:00
brizental ac129624d5 Add 'enqueue' to dictionary
[doc only]]
2020-06-22 10:09:52 +02:00
Jan-Erik Rediger 4b398e45d2 Rerunning spellcheck updated the number of words in the dictionary 2020-06-11 11:16:09 +02:00
Travis Long 8551052bcd Add gzipped to .dictionary 2020-06-05 10:16:31 -05:00
Michael Droettboom 2cacbe6ab6
Bug 1635865: Fix ConcurrentModificationException (#900)
* Bug 1635865: Fix ConcurrentModificationException

* Add CHANGELOG

* Call registerPingType instead of calling FFI directly

* LINT
2020-05-21 10:49:17 -04:00
Alessio Placitelli f236504f76 Add the changelog entry 2020-05-15 12:50:56 +02:00
Michael Droettboom 5ce99d1bbc
[doc only] Bug 1626574: Add info about generating docs for Python (#867)
* [doc only] Bug 1626574: Add info about generating docs for Python

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

* Add additional context based on PR feedback

* Add note about including Glean docs in the project documentation

Co-authored-by: Jan-Erik Rediger <badboy@archlinux.us>
2020-05-11 16:58:04 -04:00
Michael Droettboom 366478c35c
Bug 1630997: Control min and max values in timing distribution (#850) 2020-05-07 11:43:04 -04:00
Jan-Erik Rediger 007392fc22 Spellcheck
[doc only]
2020-05-05 13:06:27 +02:00
Michael Droettboom 9abef725ab
Python: Parse glean.h header at build time (#852)
* Python: Parse glean.h header at build time

* Add CHANGELOG
2020-05-04 15:34:18 -04:00
Michael Droettboom bc8c697a9d
Upgrade glean_parser to 1.20.1 (#827)
* Upgrade glean_parser to 1.20.0

* spellcheck

* Fix sample app metrics.yaml

* Upgrade to glean_parser 1.20.1

* Fix syntax

* iso8601 only needed by earlier Pythons

* Upgrade to 1.20.2

* Handle iso8601 as an optional dependency

* spellcheck

* Fix up CHANGELOG
2020-05-04 12:21:43 -04:00
Michael Droettboom 5e36bbfd70
[doc only] 1615672: Elaborate on why custom pings are useful (#836)
* [doc only] 1615672: Elaborate on why custom pings are useful

* Add concrete example in all places
2020-04-29 08:10:07 -04:00
Michael Droettboom e3b223a4cd
[doc only] Remove mention of multiprocessing (#838)
This should have been updated in #819
2020-04-22 21:54:02 -04: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 9e4703ffb5 Fix spelling in changelog 2020-04-08 11:17:03 +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 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 b28f9fa6d7
[doc only] Illustrate ping schedules and various timing-related metrics (#755)
* [doc only] Illustrate ping schedules and various timing-related metrics

* [doc only] linkcheck

* Apply suggestions from code review

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

* [doc only] Clarify things about submission_timestamp

* Short summaries on built-in pings.

Co-authored-by: Alessio Placitelli <alessio.placitelli@gmail.com>
2020-04-01 08:36:05 -04:00
Alessio Placitelli c56198b388 Add 'md' to the dictionary 2020-03-27 11:53:14 +01:00
Michael Droettboom 55bba00886
Python: Windows x86 support (#776)
* Python: Fixes and release for 32-bit Windows

This addresses the following bugs to make 32-bit Windows builds pass the
unit tests.

1622909: Release 32-bit wheels for Windows
1623335: Functional bucketing fixes
1623587: Unable to detect locale on Windows

Also relevant (but a follow-on) is:

1623307: Add Windows tests to CI

* More contexts

* Fix CircleCI config

* Fix non-Windows-x86 platforms

* Document about unknown locales

* Add documentation about FPU control

* Add comment about default locale

* Use FloatingPointContext correctly, and everywhere floating point is used

* Also update locale docs in metrics.yaml

* "C" -> "und"

* Spellcheck

* Document floating point context purpose
2020-03-24 10:17:22 -04:00
Jan-Erik Rediger 28c05f7aef Add a table of all different implementations and projects of the Glean SDK
[doc only]
2020-03-16 12:22:27 +01:00
Michael Droettboom 1fa967e4e1 Add docs for labeled booleans 2020-03-11 13:01:25 -04:00
Michael Droettboom 184c82d8ce
Documentation about choosing metric types (#750)
* [doc only] Documentation about choosing metric types

* Address Travis' comments

* [doc only] Address more comments from the PR

* [doc only] Additional detail about reusing metric names
2020-03-05 10:22:58 -05: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 4fa2b3f749 Add missed word
[doc only]
2020-03-02 10:46:49 +01: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 baf34adf72
[doc only] Add brief note about Windows wheels (#722) 2020-02-20 18:53:09 +05:30
Michael Droettboom 8891184afa
[doc only] 1610521: Document the timing and memory distribution function (#720) 2020-02-20 18:52:45 +05:30
Michael Droettboom e9e56be7bf
[doc only] Spellcheck all the things (#723) 2020-02-20 18:34:15 +05:30
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 1d7eabea5d
1608130: Document how to update android-components (#667)
* 1608130: Document how to update android-components

* Update spellcheck dictionary

* Update docs/dev/cut-a-new-release.md

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

* Update docs/dev/cut-a-new-release.md

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

* Update docs/dev/cut-a-new-release.md

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

* Update docs/dev/cut-a-new-release.md

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

* Link to a-c CHANGELOG

* Change numbering format

Co-authored-by: Alessio Placitelli <alessio.placitelli@gmail.com>
2020-01-25 00:12:57 +05:30
Jan-Erik Rediger b50fcaa177 Fix spelling 2020-01-14 10:20:22 +01:00
Jan-Erik Rediger 1da8d97930 Ignore more words
[doc only]
2020-01-13 12:01:58 +01:00
Michael Droettboom 18ee045487
1606837: Add spellchecking to docs (#613)
* Include Rust Cookbook's upstream spell-checking script

* Add local modifications to the spellcheck.sh script

* Integrate the spellchecking script

* Spelling corrections and custom dictionary

* Fix permissions

* Use Debian sid for spell-checking

* Add documentation about writing documentation

* HOWTOs -> Howtos

* Add link to other docs

* eg. -> e.g.

* Document the scope of the documentation.
2020-01-07 20:53:57 +05:30