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

2799 Коммитов

Автор SHA1 Сообщение Дата
perrymcmanis144 80693ced86
[bug 1742614] Remove legacy X-Client-Type and X-Client-Version from Glean Pings (#2010)
[bug 1742614] Remove legacy X-Client-Type and X-Client-Version from Glean Pings
2022-04-12 18:02:29 +02:00
Jan-Erik Rediger f55c18b01e Bumped version to 44.1.0 2022-04-07 13:18:20 +02:00
Jan-Erik Rediger 1a540f0e41 Merge branch 'uniffi' into uniffi-merge-main 2022-04-06 14:56:44 +02:00
Jan-Erik Rediger da8edd9790 Rust formatting 2022-04-06 14:53:15 +02:00
Jan-Erik Rediger 72aac4ae5f Rust formatting 2022-04-06 14:52:37 +02:00
Jan-Erik Rediger e5cbf8fced Fix detekt lints 2022-04-06 14:52:37 +02:00
Jan-Erik Rediger 0250cecc90 Remove deprecated kotlin-android-extensions plugin 2022-04-06 14:52:37 +02:00
Jan-Erik Rediger f35ed47674 Apply ktlint fixes 2022-04-06 14:52:37 +02:00
Jan-Erik Rediger 5c9c83bd1d Remove glean-core example, RLB is prefered 2022-04-06 14:52:37 +02:00
Jan-Erik Rediger b149f7f3ee Apply clippy suggestions
Similar to 82e9a08fee
2022-04-06 14:52:37 +02:00
Jan-Erik Rediger c5fd64509c [Rust] Record event timestamp in milliseconds 2022-04-05 15:04:42 +02:00
Jan-Erik Rediger 5ecbbf09b9 [Swift] Ignore function body length for MPS tests again 2022-04-05 15:04:42 +02:00
Jan-Erik Rediger 57e8aa95a1 [Swift] Clear stores by removing all files 2022-04-05 15:04:27 +02:00
Jan-Erik Rediger abad1b0ba2 [Swift] Wait for dispatched operations in tests
This makes tests much more reliable in my local testing.
2022-04-05 15:04:27 +02:00
Jan-Erik Rediger 8ec875aa7c Merge branch 'main' into uniffi-merge-main 2022-04-05 14:39:31 +02:00
Jan-Erik Rediger aa2d2dea10 Fix detekt lints 2022-04-04 15:58:24 +02:00
Jan-Erik Rediger 1132938825 Remove deprecated kotlin-android-extensions plugin 2022-04-04 15:58:24 +02:00
Jan-Erik Rediger 8eda5cd8b9 Apply ktlint fixes 2022-04-04 15:58:13 +02:00
Jan-Erik Rediger c9b40241bb Remove glean-core example, RLB is prefered 2022-04-04 15:58:13 +02:00
Jan-Erik Rediger f02cf45358 Apply clippy suggestions
Similar to 82e9a08fee
2022-04-04 15:58:07 +02:00
dependabot[bot] d40b736768 Bump mypy from 0.941 to 0.942 in /glean-core/python
Bumps [mypy](https://github.com/python/mypy) from 0.941 to 0.942.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.941...v0.942)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 12:48:16 +02:00
dependabot[bot] 0f6a294e3f Bump flake8-bugbear from 22.1.11 to 22.3.23 in /glean-core/python
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 22.1.11 to 22.3.23.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/22.1.11...22.3.23)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 12:41:02 +02:00
dependabot[bot] 2fbbd16017
Bump black from 22.1.0 to 22.3.0 in /glean-core/python
Bumps [black](https://github.com/psf/black) from 22.1.0 to 22.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.1.0...22.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 05:03:28 +00:00
Jan-Erik Rediger 2aeb754451 [Rust] Record event timestamp in milliseconds 2022-03-18 13:50:49 +01:00
Jan-Erik Rediger 715eb48364 [Swift] Ignore function body length for MPS tests again 2022-03-18 13:00:21 +01:00
Jan-Erik Rediger 3da82f7c96 [Swift] Clear stores by removing all files 2022-03-18 12:45:21 +01:00
Jan-Erik Rediger 85481d6d42 [Swift] Wait for dispatched operations in tests
This makes tests much more reliable in my local testing.
2022-03-18 12:45:06 +01:00
Jan-Erik Rediger 61b6d1e23a Re-enable MPS tests 2022-03-18 09:53:51 +01:00
Jan-Erik Rediger f4e47ab005 Reset metrics ping scheduler along with everything else 2022-03-18 09:53:51 +01:00
Jan-Erik Rediger d1f4821d0a Avoid multiple ping uploads in flight by launching the next step after upload is done 2022-03-18 09:53:51 +01:00
Jan-Erik Rediger 31aec35ae5 Use dispatcher queue to launch async operations 2022-03-18 09:53:51 +01:00
Jan-Erik Rediger 4ddd3dc5e5 Run uniffi-bindgen in its own step 2022-03-18 09:53:51 +01:00
Jan-Erik Rediger 35cfb70699 Put UniFFI-generated code into subfolder
glean_parser clears out *.swift files, which might mess with it.
We also only need to run it once, not per architecture.
2022-03-18 09:53:51 +01:00
Jan-Erik Rediger a8b26a3f49 iOS: Skip code generation in `indexbuild` build
Original: d0cab87d0f
2022-03-18 09:53:51 +01:00
Jan-Erik Rediger 2d14c6f243 [Swift] Migrate uuid metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger 5db0f79f1c [Swift] Migrate url metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger 7f57d039e3 [Swift] Migrate timing distribution metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger ea1bc9637d [Swift] Migrate timespan metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger 16db9d8b45 [Swift] Migrate string list metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger 4173ceb203 [Swift] Migrate string metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger 284cd3cf58 [Swift] Migrate quantity metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger a5715a1bc9 [Swift] Migrate ping type to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger 8b8145baa5 [Swift] Migrate memory distribution metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger ecd1633cdf [Swift] Migrate labeled metrics to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger c44df82d66 [Swift] Migrate event metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger def8e1b94f [Swift] Migrate datetime metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger 2976a485f1 [Swift] Migrate counter metric to UniFFI 2022-03-18 09:53:36 +01:00
Jan-Erik Rediger a8b0269fa0 [Swift] Migrate boolean metric to UniFFI 2022-03-18 09:53:36 +01:00
perrymcmanis144 fd02d2dde3
Bug 1711928 - Stop overwriting User-Agent header in favor of X-Telemetry-Agent header 2022-03-16 18:02:31 +01:00
Jan-Erik Rediger 89a9980046 [Swift] Remove now-UniFFI-exported types 2022-03-16 17:27:09 +01:00
Jan-Erik Rediger b14ece6044 [Swift] Do not update MPS sent date in tests again
It's handled in the test setup now.
2022-03-16 17:27:09 +01:00
Jan-Erik Rediger 64decf9969 [Swift] Track test mode in MPS itself 2022-03-16 17:27:09 +01:00
Jan-Erik Rediger 4bd8eb8a36 [Swift] Migrate uploader to UniFFI-provided API 2022-03-16 17:27:09 +01:00
Jan-Erik Rediger a3ad11e90d [Swift] Always wait for the "active" baseline ping in tests
And skip any overdue metrics ping.
2022-03-16 17:27:09 +01:00
Jan-Erik Rediger 7e124836f8 [Swift] Migrate Debug utility tests
We're actually not able anymore to properly test that they set values,
so these are merely smoke tests now.
2022-03-16 17:27:09 +01:00
Jan-Erik Rediger af2ad204a7 [Swift] Move testing mode tracking to Glean object itself 2022-03-16 17:27:09 +01:00
Jan-Erik Rediger 153e567727 [Swift] Disable tests depending on the dirty bit 2022-03-16 17:27:09 +01:00
Jan-Erik Rediger a2c2340af9 [Swift] Initialize lifecycle observer off the main thread 2022-03-16 17:27:09 +01:00
Jan-Erik Rediger ae70102f7f [Swift] Delay initializing MPS 2022-03-16 17:27:09 +01:00
Jan-Erik Rediger 914ec69d17 [Swift] Omit argument labels in UniFFI-generated parts 2022-03-16 17:27:09 +01:00
Jan-Erik Rediger c7bb0298bf [Swift] Remove unused utility functions 2022-03-16 17:27:09 +01:00
Jan-Erik Rediger 63a52d8a83 [Swift] Use forked glean_parser for now 2022-03-16 17:27:09 +01:00
Jan-Erik Rediger 7ab9972744 [Swift] Keep only the serial operation queue of the dispatcher
Everything else is now in Rust!
2022-03-16 17:27:09 +01:00
Jan-Erik Rediger c2957f8e0b [Swift] Remove files from the project configuration
The actual files will be removed in subsequent commits.
This just bundles the Xcode changes.
2022-03-16 17:27:09 +01:00
dependabot[bot] 2dea906eeb
Bump mypy from 0.931 to 0.941 in /glean-core/python
Bumps [mypy](https://github.com/python/mypy) from 0.931 to 0.941.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.931...v0.941)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-15 05:02:45 +00:00
Jan-Erik Rediger f0c6eef879 Enable native building & testing on Apple M1 machines
Updating robolectric to 4.7, which brings M1 support (by providing its
own SQLite).
Updating rust-android-gradle to 0.9.1, which supports the difference
between Darwin x86_64 and Darwin aarch64.
2022-02-18 12:44:25 +01:00
Jan-Erik Rediger e6c2c3e661 [Python] Remove now-unnecessary lines mentioning the dispatcher
Also re-enables one more test and removes a useless one
2022-02-17 16:50:40 +01:00
Jan-Erik Rediger e9afd99409 [Python] Always call into core impl for toggling upload enabled 2022-02-17 16:50:40 +01:00
Jan-Erik Rediger 84521000ed [Python] Delay some work in the test to make it pass 2022-02-17 16:50:40 +01:00
Jan-Erik Rediger 063ce2314e Remove cffi helper and instruct pdoc to skip libglean_ffi 2022-02-17 16:50:40 +01:00
Jan-Erik Rediger 349c2dc953 Fix documentation links 2022-02-17 16:50:40 +01:00
Jan-Erik Rediger 8d85f4fc86 Once again bring back the hack to re-export glean-core symbols 2022-02-17 16:50:40 +01:00
Jan-Erik Rediger 8a87ce566c [Rust] Acquire state lock outside of Glean lock
This avoids a deadlock when it calls a blocking callback.
2022-02-17 16:50:40 +01:00
Jan-Erik Rediger 23f778c1be [Python] Migrate general API to use UniFFI-exported API 2022-02-17 16:50:40 +01:00
Jan-Erik Rediger b3ba84f483 [Python] Migrate upload mechanism to UniFFI-powered methods 2022-02-17 16:50:40 +01:00
Jan-Erik Rediger 3972a64953 Port initialize_for_subprocess for use in Python upload process 2022-02-17 16:50:40 +01:00
Jan-Erik Rediger af0767e771 [Python] Re-enable all metric types in the loader 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger d2ebe3e3fd [Python] Re-export all metric types again from metrics module 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 369d2bc5df [Python] Migrate counter testing to new UniFFI layout 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 5fabd3a33f [Python] Migrate uuid metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 63154be480 [Python] Migrate url metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 16d007da7f [Python] Migrate timing distribution metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger abf794e984 [Python] Migrate timespan metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 13548115e6 [Python] Migrate string list metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger dbb8626c57 [Python] Migrate string metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 5d0557b033 [Python] Migrate quantity metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 0525846ef8 [Python] Migrate Ping type to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 021532e852 [Python] Migrate memory distribution metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 23fb9dc6e2 [Python] Migrate labeled metrics to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger bbbf9a0a33 [Python] Migrate event metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 4e2420679a [Python] Remove now-UniFFi-generated types 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 8a7bd23dc6 [Python] Migrate datetime metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger 58e0774e9f [Python] Migrate boolean metric to UniFFI 2022-02-17 10:29:22 +01:00
Jan-Erik Rediger e85263d318 Add docs to empty function.
Otherwise compilation for Android/iOS will fail because of the missing
docs.
2022-02-16 15:28:23 +01:00
Jan-Erik Rediger 0a69656894 [Python] Convert from glean_parser types into proper Glean types
Glean types are now UniFFI-generated, with additional methods on them.
That's why we need to explicitly convert them.
2022-02-16 15:28:23 +01:00
Jan-Erik Rediger 626ad2d628 [Python] Remove FFI-specific conversion utilities
UniFFI handles all of that for us, we pass native Python types
2022-02-16 15:28:23 +01:00
Jan-Erik Rediger f3aa7e876f [Python] Removed dispatcher
It's all in Rust now
2022-02-16 15:28:23 +01:00
Jan-Erik Rediger 6ad68f09a9 [Python] Expose fd logging through UniFFI 2022-02-16 15:28:23 +01:00
Jan-Erik Rediger 4e1c0e62af On shutdown kill the dispatcher if Glean failed to initialize 2022-02-15 12:05:52 +01:00
Jan-Erik Rediger db2d5c7964 [RLB] Re-implement events
Allow recording an event with a supplied timestamp
2022-02-15 11:14:22 +01:00
Jan-Erik Rediger 37830f89f3 [RLB] Re-implement ping type (including testing API) 2022-02-15 11:14:22 +01:00
Jan-Erik Rediger c030e2f263 [RLB] Re-implement labeled metrics 2022-02-15 11:14:22 +01:00
Jan-Erik Rediger 447f57fed7 Port "Ensure init is complete before destroying Glean"
Original commit: 46d34a9aea
2022-02-15 11:14:22 +01:00
Jan-Erik Rediger e9a87acceb [RLB] Re-export glean_set_dirty_flag for testing 2022-02-15 11:14:22 +01:00
Jan-Erik Rediger 7660290a55 [RLB] Get all tests working again 2022-02-15 11:14:22 +01:00
Jan-Erik Rediger c9b3a369de [RLB] Make experiment API public 2022-02-15 11:14:22 +01:00
Jan-Erik Rediger f275cbe889 [RLB] API fixes 2022-02-15 11:14:22 +01:00
Jan-Erik Rediger 2eea9598e6 [RLB] Forward metric implementations to core 2022-02-15 11:14:22 +01:00
Jan-Erik Rediger cc043f3ad3 [RLB] Use core API in uploader 2022-02-14 16:53:47 +01:00
Jan-Erik Rediger 9c2d38a9eb [RLB] Forward general API to core implementation 2022-02-14 16:53:47 +01:00
Jan-Erik Rediger 898336047b [RLB] Call core initialization instead of doing it here 2022-02-14 16:53:47 +01:00
Jan-Erik Rediger 550fcd34e8 [RLB] Remove top-level utility functions
Most of this functionality are core concerns now and don't need to be
handled in the RLB.
2022-02-14 16:53:47 +01:00
Jan-Erik Rediger 9316009db2 Remove RLB metrics & pings, they are internal now 2022-02-14 16:53:47 +01:00
Jan-Erik Rediger ad98745eb1 Remove dispatcher, it's in glean-core now 2022-02-14 16:53:47 +01:00
Jan-Erik Rediger 84a32ab37d [RLB] Don't handle internal metrics and convert outside client info to expanded one 2022-02-14 16:53:47 +01:00
Jan-Erik Rediger b2c5c0c34f Move channel to client info metrics, not main configuration 2022-02-14 16:53:47 +01:00
Jan-Erik Rediger 86e89e936b Add the rlb dispatcher flush
Special API that is C-FFI-like exported from the RLB later.
2022-02-14 15:17:03 +01:00
Jan-Erik Rediger 53a1da03e4 Add lifetime ping data persistence back
Same reasoning: needed to call internals, used by the RLB only.
2022-02-14 15:17:03 +01:00
Jan-Erik Rediger 638b8d7f8d Add back shutdown API
This is necessary to reach internals and will be re-exposed in the RLB.
It should not be called by the other wrappers.
2022-02-14 15:17:03 +01:00
Jan-Erik Rediger 9bd2c672f2 Call Rust-internal MPS where needed 2022-02-14 15:17:03 +01:00
Jan-Erik Rediger ab8d077ef5 Export HistogramType for use in other crates 2022-02-14 15:17:03 +01:00
Jan-Erik Rediger 5921264913 Set a default "Unknown" channel 2022-02-14 15:17:03 +01:00
Jan-Erik Rediger 42eb20f6fd Remove old FFI layer 2022-02-14 15:17:03 +01:00
Jan-Erik Rediger 350b03b433 Make uploader result variants constructors public 2022-02-14 15:17:03 +01:00
Jan-Erik Rediger 80bd2e0f35 Don't take a mutable reference when accumulating 2022-02-14 15:17:03 +01:00
Jan-Erik Rediger d40578fec3 Update to uniffi 0.17.0 2022-02-14 15:17:03 +01:00
Jan-Erik Rediger 7150a39949 Update android_logger 2022-02-14 15:17:03 +01:00
Jan-Erik Rediger eb3e5b00e8 BUGFIX: Swap category and name
Otherwise this checks the metric by a wrong full identifier.
This was fixed previously in main commit 0a8ea8dfc5
2022-02-14 15:17:03 +01:00
Jan-Erik Rediger ac849361b7 Apply missed formatting 2022-02-14 15:17:03 +01:00
dependabot[bot] d5f4b61784
Bump pytest from 7.0.0 to 7.0.1 in /glean-core/python
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.0.0...7.0.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 05:03:31 +00:00
Alessio Placitelli dcd37c39bb Bumped version to 44.0.0 2022-02-09 17:06:20 +01:00
Alessio Placitelli f9ee554921
Merge pull request #1954 from Dexterp37/parser_500
Bug 1753194 - Enable support for expiration by version on Android
2022-02-09 15:57:30 +01:00
dependabot[bot] afd098654b
Bump pytest from 6.2.5 to 7.0.0 in /glean-core/python
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.0.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.5...7.0.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-09 09:28:23 +00:00
Jan-Erik Rediger bcaf448243
Merge pull request #1951 from mozilla/dependabot/pip/glean-core/python/twine-3.8.0 2022-02-09 10:25:54 +01:00
Alessio Placitelli 90c3573902 Bump to glean_parser 5.0.1 2022-02-08 16:08:49 +01:00
Jan-Erik Rediger 8d47382d4d Python: Record correct timezone offset in datetime metrics
Turns out `datetime.now` defaults to `tz=None` and thus DOES NOT record
the timezone offset.
We treat that as an offset of 0 seconds.
However Python _does_ know about local time, so turning the current
local time into UTC, then back to local time gets us a timezone, from
which we can extract the timezone offset.
2022-02-08 15:01:32 +01:00
dependabot[bot] 179da1fc27
Bump twine from 3.7.0 to 3.8.0 in /glean-core/python
Bumps [twine](https://github.com/pypa/twine) from 3.7.0 to 3.8.0.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/twine/compare/3.7.0...3.8.0)

---
updated-dependencies:
- dependency-name: twine
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-03 05:03:43 +00:00
dependabot[bot] 6b3cd116ab
Bump black from 21.12b0 to 22.1.0 in /glean-core/python
Bumps [black](https://github.com/psf/black) from 21.12b0 to 22.1.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits/22.1.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 05:04:55 +00:00
Jan-Erik Rediger c192d85595 Hide logs from UniFFI-generated code 2022-01-25 10:51:17 +01:00
Jan-Erik Rediger ee894c00a8 [UniFFI] Re-introduce proper log filtering 2022-01-25 10:51:17 +01:00
Jan-Erik Rediger 86af70b64a [UniFFI] Update docs for boolean, timespan and ping 2022-01-25 10:51:17 +01:00
Jan-Erik Rediger 076947f57d Fix up Rust documentation
This makes it render without errors again.
2022-01-25 10:51:17 +01:00
Jan-Erik Rediger e6739cb80d [UniFFI] Fully remove manually written LibGleanFFI.kt 2022-01-25 10:51:17 +01:00
Jan-Erik Rediger d1ea61df1d Document the common metric data 2022-01-25 10:51:17 +01:00
Jan-Erik Rediger 5d996aec7d Document lifetime & error type 2022-01-25 10:51:17 +01:00
Jan-Erik Rediger 852059bbc4 Document enums for upload process 2022-01-25 10:51:17 +01:00
Jan-Erik Rediger 6eee0f34f4 Document experiment data 2022-01-25 10:51:17 +01:00
Jan-Erik Rediger 7795178bcc [UDL] Move ping type definition before metrics 2022-01-25 10:51:17 +01:00
Jan-Erik Rediger 775ea03594 Remove Kotlin dispatcher for good 2022-01-24 10:22:22 +01:00
Jan-Erik Rediger 623bafbbb9 Enable dispatcher overflow test 2022-01-24 10:22:22 +01:00
Jan-Erik Rediger a1a0f87178 Use UniFFI-backed metric and imports in general tests 2022-01-24 10:22:22 +01:00
Jan-Erik Rediger 9dcdf56629 [UniFFI] Re-enable tests for metric ping scheduler 2022-01-24 10:22:22 +01:00
Jan-Erik Rediger f889968c26 [UniFFI] Migrate event metric type implementation 2022-01-21 10:49:30 +01:00
Jan-Erik Rediger 913a8a455b [UniFFI] Migrate timing distribution metric type implementation 2022-01-21 10:49:30 +01:00
Jan-Erik Rediger a807650951 [UniFFI] Migrate datetime metric type implementation 2022-01-21 10:49:30 +01:00
Jan-Erik Rediger 807bd7c24a [UniFFI] Migrate custom distribution metric type implementation 2022-01-21 10:49:30 +01:00
Jan-Erik Rediger ebcc9ca694 [UniFFI] Migrate memory distribution metric type implementation 2022-01-21 10:49:30 +01:00
Jan-Erik Rediger 75ce66a603 [UniFFI] Migrate quantity metric implementation 2022-01-21 10:49:30 +01:00
Jan-Erik Rediger 7b18903e22 [Counter] Refactor to accept plain string as well 2022-01-20 10:31:51 +01:00
Jan-Erik Rediger bd1d7954fc [UniFFI] Add missing testGetNumRecordedErrors for counter 2022-01-20 10:31:51 +01:00
Jan-Erik Rediger d5cfbcf53e [UniFFI] Use generated counter metric type 2022-01-20 10:31:51 +01:00
Jan-Erik Rediger 231a1e50b1 Remove already-deprecated JWE metric.
It's already disabled in the glean_parser and thus cannot be used
anyway.
2022-01-18 18:29:07 +01:00
Jan-Erik Rediger d32bb60065 [UniFFI] Migrate UUID metric type implementation
This requires a wrapper to transform it into the correct types
2022-01-18 18:29:07 +01:00
Jan-Erik Rediger 18e1b912bb [UniFFI] Migrate URL metric type implementation 2022-01-18 18:29:07 +01:00
Jan-Erik Rediger e6bc916439 [UniFFI] Migrate string list metric implementation 2022-01-18 18:29:07 +01:00
Jan-Erik Rediger 61779c1c9f [UniFFI] Migrate string metric implementation 2022-01-18 18:29:07 +01:00
Jan-Erik Rediger 2349905006 Port labeled submetric caching to new UniFFI-powered labeled metrics
This was added in glean-ffi after the recent crashes we encountered.
UniFFI already handles this by using `Arc`, this now adds proper
re-usage of the created `Arc`-wrapped metrics.
2022-01-18 16:37:45 +01:00
Jan-Erik Rediger bbef390a66 [UniFFI] Migrate labeled counters & boolean implementation 2022-01-18 16:37:45 +01:00
Chris H-C 46d34a9aea bug 1750235 - Ensure init is complete before destroying Glean
This is important, because most of `destroy_glean` assumes init has completed:
1) Dispatcher reset? Runs all its tasks. Including ones using `with_glean`
2) Global state reset? Assumes the global state was setup.

Despite being important, this is not something that I've found a way to test.
The join behaviour's well tested, but the thing I want to test --
"Calling destroy_glean between `initialize()` being called and `glean.init`
completing." -- isn't. Ah well.

Note that we store multiple JoinHandles. There's nothing stopping N threads
from all calling `initialize()` simultaneously, starting N glean.init threads.
We'd need to compare_and_swap on INITIALIZE_CALLED for that guarantee.
(Not sure why we don't).
2022-01-18 09:47:17 -05:00
Jan-Erik Rediger fbb8ba79d4 Bumped version to 43.0.2 2022-01-17 12:16:15 +01:00
Jan-Erik Rediger 59abab8460 Bumped version to 43.0.1 2022-01-17 12:03:56 +01:00
Jan-Erik Rediger 1301dbb209 Bumped version to 43.0.0 2022-01-17 11:33:52 +01:00
Jan-Erik Rediger 040e2c98fb
Merge pull request #1925 from mozilla/tags-in-swift 2022-01-17 10:58:12 +01:00
Jan-Erik Rediger 01836d2f66 Apply clippy beta suggestions 2022-01-14 12:18:07 +01:00
Jan-Erik Rediger 78106d2656 Update to glean_parser v4.4.0 for build date support 2022-01-12 17:20:09 +01:00
Jan-Erik Rediger 7bbd340f7c Require build date in build info and set the internal metric 2022-01-12 17:19:48 +01:00
Jan-Erik Rediger 76319dbb3d Don't overwrite build info unless Glean will get initialized.
Previously a second invocation of Glean.initialize would override the stored build
info, even if no other work was done due to Glean already being
initialized.
2022-01-12 17:19:30 +01:00
dependabot[bot] e1e0a9e331
Bump flake8-bugbear from 21.11.29 to 22.1.11 in /glean-core/python
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 21.11.29 to 22.1.11.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/21.11.29...22.1.11)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-12 05:02:48 +00:00
Michael Droettboom 5b89a3dedc Make log level a parameter to Glean.initialize 2022-01-11 09:56:56 -05:00
Michael Droettboom 5d4933ebc1 Provide an API to emit log messages from the subprocess 2022-01-11 09:56:56 -05:00
Michael Droettboom c8d7317dc4 Bug 1748858: Log with Python successfully updates a ping 2022-01-11 09:56:29 -05:00
Jan-Erik Rediger 2d2eca5ab9 Document tags.yaml support for an Xcode project
Turns out everything is in place to support tags already.
2022-01-11 15:07:04 +01:00
Jan-Erik Rediger f40be3065b
Merge pull request #1923 from mozilla/remove-invalid_timezone_offset 2022-01-11 12:27:32 +01:00
Jan-Erik Rediger c7ba2a57bc
Merge pull request #1920 from mozilla/dependabot/pip/glean-core/python/mypy-0.931 2022-01-10 14:47:58 +01:00
Jan-Erik Rediger eb0086d084 Remove `invalid_timezone_offset` metric
There have been a total of 8 pings with invalid timezone occurences reported
in the past 30 days (with a total of 12 occurences).

It's safe to say it's not a major issue at all.
We have mitigations in place to not crash (no crashes reported since October 2021).
2022-01-10 14:46:23 +01:00
dependabot[bot] 00d61a5d38
Bump mypy from 0.930 to 0.931 in /glean-core/python
Bumps [mypy](https://github.com/python/mypy) from 0.930 to 0.931.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.930...v0.931)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 05:02:46 +00:00
dependabot[bot] 043d3d2c99
Bump auditwheel from 5.0.0 to 5.1.2 in /glean-core/python
Bumps [auditwheel](https://github.com/pypa/auditwheel) from 5.0.0 to 5.1.2.
- [Release notes](https://github.com/pypa/auditwheel/releases)
- [Changelog](https://github.com/pypa/auditwheel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pypa/auditwheel/compare/5.0.0...5.1.2)

---
updated-dependencies:
- dependency-name: auditwheel
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 05:02:44 +00:00
Jan-Erik Rediger ddfd6b5b7d
Merge pull request #1913 from mozilla/dependabot/pip/glean-core/python/wheel-0.37.1 2022-01-03 11:10:38 +01:00
dependabot[bot] f0f500765e
Bump mypy from 0.920 to 0.930 in /glean-core/python
Bumps [mypy](https://github.com/python/mypy) from 0.920 to 0.930.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.920...v0.930)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-23 05:03:06 +00:00
dependabot[bot] 3dc3f87fd2
Bump wheel from 0.37.0 to 0.37.1 in /glean-core/python
Bumps [wheel](https://github.com/pypa/wheel) from 0.37.0 to 0.37.1.
- [Release notes](https://github.com/pypa/wheel/releases)
- [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst)
- [Commits](https://github.com/pypa/wheel/compare/0.37.0...0.37.1)

---
updated-dependencies:
- dependency-name: wheel
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-23 05:03:00 +00:00
dependabot[bot] 7443df434a
Bump mypy from 0.910 to 0.920 in /glean-core/python
Bumps [mypy](https://github.com/python/mypy) from 0.910 to 0.920.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.910...v0.920)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-16 05:02:04 +00:00
Jan-Erik Rediger c34b88550e Bumped version to 42.3.2 2021-12-15 10:52:46 +01:00
Jan-Erik Rediger b44f9f7c0c Python: Copy the environment when launching the upload process
The previous fix set the `PYTHONPATH` for the subprocess.
That overwrites the complete environment, clearing out any other
variables.
That can cause problems when other parts rely on something, such as the
RNG in Python relying on `SYSTEMROOT`
2021-12-15 10:31:27 +01:00
Jan-Erik Rediger 16c929adf5 Remove the Glean C# SDK codebase
The Glean C# SDK had been abandoned for quite some time
and officially been marked deprecated in September (9836b2063d).
This just sunsets it officially by removing the codebase from the repository.
2021-12-13 17:28:43 +01:00
Jan-Erik Rediger 41f3d70e7c [UniFFI] Migrate boolean metric implementation 2021-12-13 15:44:25 +01:00
Jan-Erik Rediger dd8056d2aa [UniFFI] Migrate timespan metric implementation 2021-12-13 15:43:38 +01:00
Jan-Erik Rediger c5f9686bab Re-export internal enums and classes for use in the public API
These will only start making sense when they are actually added in the
UDL file, which will come along in later commits.
2021-12-13 15:41:43 +01:00
Jan-Erik Rediger e3914280e8 Re-export UniFFI-generated types 2021-12-13 15:41:43 +01:00
Jan-Erik Rediger 38cad9c168 Upgrade to UniFFI 0.15.2 2021-12-13 15:41:43 +01:00
Jan-Erik Rediger 9659f41f25
Merge pull request #1888 from mozilla/dependabot/pip/glean-core/python/black-21.12b0 2021-12-07 15:31:20 +01:00