Files
tubestation/toolkit/components/glean/tests/test_pings.yaml
Jan-Erik Rediger 135c17cbef Bug 1894270 - Schedule pings alongside their parent ping r=chutten,mach-reviewers
This is a bit of a hack to make it all work.
On every `submit` of a ping we call into `schedule_pings` to also
schedule ride-along pings.

Preferably we would like to have that in glean-core, but for builtin
pings that won't work because they are not code-generated and thus will
never see their `schedules_pings` array.
So instead we generate a function in m-c that does the mapping and call
that in the ping wrapper used inside m-c.

Another side effect: `testBeforeNextSubmit` callbacks from
JavaScript/C++ will _not_ be called, because they are only on the JS/C++
object and not reachable from the Rust parts where we actually submit the
ride-along pings.

Differential Revision: https://phabricator.services.mozilla.com/D209671
2024-05-15 09:07:47 +00:00

79 lines
2.0 KiB
YAML

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# This file defines the pings that are recorded by the Glean SDK. They are
# automatically converted to platform-specific code at build time using the
# `glean_parser` PyPI package.
# This file is presently for Internal FOG Test Use Only.
---
$schema: moz://mozilla.org/schemas/glean/pings/2-0-0
one-ping-only:
description: |
This ping is for tests only.
include_client_id: false
send_if_empty: true
bugs:
- https://bugzilla.mozilla.org/1673660
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1673660#c1
notification_emails:
- chutten@mozilla.com
- glean-team@mozilla.com
no_lint:
- REDUNDANT_PING
test-ping:
description: |
This ping is for tests only.
include_client_id: false
send_if_empty: true
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1737157
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1737157#c1
notification_emails:
- chutten@mozilla.com
- glean-team@mozilla.com
no_lint:
- REDUNDANT_PING
test-ohttp-ping:
description: |
This ping is for tests only.
Resembles how OHTTP pings are defined.
include_client_id: false
metadata:
include_info_sections: false
use_ohttp: true
send_if_empty: true
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1862002
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1862002
notification_emails:
- chutten@mozilla.com
- glean-team@mozilla.com
no_lint:
- REDUNDANT_PING
ride-along-ping:
description: |
This ping is for tests only.
include_client_id: false
send_if_empty: true
bugs:
- https://bugzilla.mozilla.org/1894270
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1894270#c1
notification_emails:
- glean-team@mozilla.com
no_lint:
- REDUNDANT_PING
metadata:
ping_schedule:
- test-ping