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

2189 Коммитов

Автор SHA1 Сообщение Дата
Jan-Erik Rediger 8b529ae348 Remove `ping_type` from pings. 2020-02-12 11:05:16 +01:00
Jan-Erik Rediger 4254fdedbe
Merge pull request #700 from mozilla/run-upload-module
Hide upload module behind a feature (and fix tests)
2020-02-12 11:04:33 +01:00
Jan-Erik Rediger ae834b3a6c Hide upload module behind a feature
This ensures the code compiles and can get tested.
It also runs those tests on CI.
2020-02-12 10:50:35 +01:00
Jan-Erik Rediger d3acac07f2 Fix tests in upload module 2020-02-12 10:50:26 +01:00
Jan-Erik Rediger 125996b00e
Merge pull request #699 from mozilla/release-v24.2.0
Backport: Bumped version to 24.2.0

[doc only]
2020-02-12 10:22:10 +01:00
Alessio Placitelli b40f253635 Bumped version to 24.2.0 2020-02-11 17:45:51 +01:00
Alessio Placitelli da1e014e37
Merge pull request #687 from Dexterp37/baseline_dirty_startup
Send a `baseline` at startup if the previous session ended abruptly
2020-02-11 17:39:14 +01:00
Alessio Placitelli 53a6637467 Update CHANGELOG.md 2020-02-11 16:16:45 +01:00
Alessio Placitelli 89ba9b1be7 Update headers using cbindgen 2020-02-11 16:14:10 +01:00
Alessio Placitelli 9d3fc656a6 Add test coverage for the baseline ping with 'dirty_startup' 2020-02-11 16:14:10 +01:00
Alessio Placitelli d90c68d0fb Update 'baseline' ping docs 2020-02-11 16:14:10 +01:00
Alessio Placitelli 6e600732a8 Set & clear the "dirty flag" based on app lifecycle 2020-02-11 16:14:09 +01:00
Alessio Placitelli a80604fa1c Add "reason" codes to the 'baseline' ping definition 2020-02-11 16:14:09 +01:00
Alessio Placitelli e8d7bb5768 Expose the "dirty flag" functions through FFI
This only covers the Kotlin part, which is time
sensitive.
2020-02-11 16:14:09 +01:00
Alessio Placitelli c27a3d882e Remove unused `applicationContext` from GleanLifecycleObserver 2020-02-11 16:14:09 +01:00
Alessio Placitelli c5d93b4f0f Manage a 'dirty flag' within the glean-core crate
This is a user lifetime Boolean metric that allows
to detect, on mobile, whenever applications are
force-closed.
2020-02-11 16:14:08 +01:00
Alessio Placitelli 3f8961a8d0 Share `INTERNAL_STORAGE` across the glean-core crate 2020-02-11 16:14:08 +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
Jan-Erik Rediger bddccf28db
Merge pull request #693 from mozilla/no-more-am-pm
1591356 - Use consistent 24h clock in documentation
2020-02-11 15:43:01 +01:00
Jan-Erik Rediger 560af7dab5
Merge pull request #695 from mozilla/1609442-old-or-new
1609442 - Test that a startup ping contains the old version after an upgrade
2020-02-10 17:35:49 +01:00
Beatriz Rizental e1b45e84f7
Merge pull request #673 from brizental/ping-uploading
Create upload module with "get ping request" functionality
2020-02-10 16:08:23 +01:00
Beatriz Rizental 1c33797184 Create upload module with "get ping request" functionality
This is the first part of the effort to move ping uploading logic,
as much as possible, to glean-core.
  In this commit, a new `upload` module is created in rust,
with the following features:
* Sweep the pending pings directory (off main thread, on init)
  and create a `PingRequest` object from each valid file in there;
* Manage a queue of pending `PingRequest`s,
  enqueueing all swept `PingRequest`s on startup and
  exposing functionality to enqueue a new PingRequest on demand,
  dequeue the first in line and clear the whole queue.
This module is not exposed on the Glean or FFI object yet.
2020-02-10 15:14:14 +01:00
Jan-Erik Rediger 075ae3f619 Test that a startup ping contains the old version after an upgrade 2020-02-10 15:05:37 +01:00
Jan-Erik Rediger bb0eacfa99 Always reset Glean to clear all data in the MPS tests
It might not have been initialized, but the reset functions handle that.

Once all data is cleared, destroy the handle.
Individual tests will start Glean if necessary.

Previously the MetricsPingSchedulerTest would hang when run in isolation.
2020-02-10 14:50:33 +01:00
Jan-Erik Rediger 8d689208d4
Merge pull request #694 from mozilla/require-manual-approval-for-iOS-jobs
Require manual approval for iOS jobs
2020-02-10 12:48:34 +01:00
Jan-Erik Rediger cbf5f1637e Make local linkchecker task succeed based on what it builds
The docs task only builds the Rust and Kotlin docs. Links to Swift and
Python are therefore broken. We just don't check them for now.
2020-02-10 11:11:22 +01:00
Jan-Erik Rediger f489805543 Require manual approval for iOS CI jobs on PRs
This changes CI in the following ways:

* iOS jobs (build, test and integration test) become manual-approval-required on PRs
  * That means the expensive job is not even run unless someone does so
    manually
* iOS jobs are still run by default on master merges

Due to how CircleCI works the iOS tests become their own workflow on PRs,
but must be in the ci workflow on master merges (so that the doc deploy can depend on it).
2020-02-10 11:11:22 +01:00
Jan-Erik Rediger 0219ffee95 Use consistent 24h clock in documentation
[doc only]
2020-02-07 14:24:22 +01:00
Jan-Erik Rediger d3b222c891
Merge pull request #689 from mozilla/only-debug-test
Run Kotlin tests only once in debug configuration
2020-02-06 17:48:29 +01:00
Jan-Erik Rediger f4339243de Restrict to Linux builds only
This also removes storing the artifacts, now that it's only one artifact (the Linux .so), it's less useful.
2020-02-06 17:02:38 +01:00
Jan-Erik Rediger 9998cb4a32 Run Kotlin tests only once in debug configuration
The default test target runs both testDebugUnitTest and testReleaseUnitTest, effectively running everything twice.
This seems like a waste of resources (and time) and just running it once seems fine.

Now we could decide to run testReleaseUnitTest on CI, but testDebugUnitTest for developer machines.
2020-02-06 17:02:38 +01:00
Jan-Erik Rediger 0a694b74c6
Merge pull request #692 from mozilla/1613656-intermittent-async
Avoid race-condition and thus tackle intermittent
2020-02-06 15:22:27 +01:00
Jan-Erik Rediger f80c7b7b9c
Merge pull request #691 from mozilla/drop-coverage
Drop automated code coverage reports
2020-02-06 15:20:09 +01:00
Jan-Erik Rediger eecc16f5cf Wait for all tasks to run to completion 2020-02-06 15:05:51 +01:00
Jan-Erik Rediger f3525859d6 Use an atomic integer across concurrently running code 2020-02-06 14:54:53 +01:00
Jan-Erik Rediger 977a59bdfc Drop automated code coverage reports
Coverage reports by now are merely a noise, take extra CI time and we
ran into some problems before generating them.
This also allows us to drop the one usage of a "xlarge" instance on CircleCI.
2020-02-06 14:34:52 +01:00
Jan-Erik Rediger 24257f72ee
Merge pull request #690 from mozilla/glean-parser-update-bugfix
Update glean_parser to include bug fix and restrict transitive dependency versions
2020-02-06 14:32:57 +01:00
Jan-Erik Rediger 77ac166c34 Update glean_parser to include bug fix and restrict transitive dependency versions 2020-02-06 13:58:36 +01:00
Jan-Erik Rediger 3b521cfe92
Merge pull request #688 from mdboom/markdown-syntax
[doc only] Indicate that markdown syntax can be used in description fields
2020-02-06 11:40:32 +01:00
Michael Droettboom 4ca9181fab [doc only] Indicate that markdown syntax can be used in description fields 2020-02-05 21:34:04 -05:00
Jan-Erik Rediger 1219aca2f0
Merge pull request #686 from mozilla/force-single-threaded-test
Synchronize glean-preview tests on a global lock
2020-02-05 13:13:14 +01:00
Jan-Erik Rediger 833c2d7290 Synchronize glean-preview tests on a global lock
Because glean_preview is a global-singleton, we need to run the tests one-by-one to avoid different tests stomping over each other.
This is only an issue because we're resetting Glean, this cannot happen in normal use of glean-preview.

We use a global lock to force synchronization of all tests, even if run multi-threaded.
This allows us to run without `--test-threads 1`.`
2020-02-05 12:10:32 +01:00
Jan-Erik Rediger 98f3dd916a
Merge pull request #680 from mozilla/git-link
Add "open on github" link to docs
2020-02-04 16:57:56 +01:00
Jan-Erik Rediger 582715452a
Merge pull request #683 from mdboom/extra-null
1612940: Don't include null extras in experiments
2020-02-04 16:57:39 +01:00
Alessio Placitelli 7aaa6fd81c
Merge pull request #685 from Dexterp37/fix_logs
Provide a Robolectric ShadowLog for filtering stray log lines
2020-02-04 14:43:14 +01:00
Alessio Placitelli a74cfe7b86 Provide a Robolectric ShadowLog for filtering stray log lines
This filters CursorWindowStats, SQLiteCursor and
SQLiteConnectionPool to only print errors.
2020-02-04 14:26:56 +01:00
Michael Droettboom 12a36e414d Address comments in the PR 2020-02-04 08:22:08 -05:00
Jan-Erik Rediger da4063d961
Merge pull request #684 from mozilla/lowercase-appid
1609724 - Lowercase application ids on the client
2020-02-04 12:16:06 +01:00
Jan-Erik Rediger 1a8c3475c2
Merge pull request #665 from mozilla/leave-it-open
Keep the stores open all the time
2020-02-04 10:17:45 +01:00
Jan-Erik Rediger 72f1612ca2 Use a single properly named CSS file
[doc only]
2020-02-04 10:17:22 +01:00