Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit d99519a

Browse files
committed
Bug 1700836 - Remove expired firstStartup telemetry. r=mythmon
Differential Revision: https://phabricator.services.mozilla.com/D114263
1 parent 4c04bd7 commit d99519a

5 files changed

Lines changed: 1 addition & 66 deletions

File tree

toolkit/components/telemetry/Scalars.yaml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6049,38 +6049,6 @@ blocklist:
60496049
record_in_processes:
60506050
- main
60516051

6052-
firstStartup:
6053-
statusCode:
6054-
bug_numbers:
6055-
- 1582608
6056-
description: >-
6057-
Status of the FirstRun service, which runs post-install/early-startup in Firefox.
6058-
expires: "90"
6059-
kind: uint
6060-
notification_emails:
6061-
- rhelmer@mozilla.com
6062-
release_channel_collection: opt-out
6063-
products:
6064-
- 'firefox'
6065-
- 'thunderbird'
6066-
record_in_processes:
6067-
- main
6068-
elapsed:
6069-
bug_numbers:
6070-
- 1582608
6071-
description: >-
6072-
Number of milliseconds the FirstRun service took to run.
6073-
expires: "90"
6074-
kind: uint
6075-
notification_emails:
6076-
- rhelmer@mozilla.com
6077-
release_channel_collection: opt-out
6078-
products:
6079-
- 'firefox'
6080-
- 'thunderbird'
6081-
record_in_processes:
6082-
- main
6083-
60846052
# The following section is for the "deletion-request" ping (bug 1585410). All the
60856053
# extra identifiers other than `client_id` could be added here.
60866054
deletion.request:

toolkit/modules/FirstStartup.jsm

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ XPCOMUtils.defineLazyModuleGetters(this, {
1818
});
1919

2020
const PREF_TIMEOUT = "first-startup.timeout";
21-
const PROBE_NAME = "firstStartup";
2221

2322
/**
2423
* Service for blocking application startup, to be used on the first install. The intended
@@ -79,9 +78,6 @@ var FirstStartup = {
7978
} else {
8079
this._state = this.UNSUPPORTED;
8180
}
82-
83-
Services.telemetry.scalarSet(`${PROBE_NAME}.statusCode`, this._state);
84-
Services.telemetry.scalarSet(`${PROBE_NAME}.elapsed`, this.elapsed);
8581
},
8682

8783
get state() {

toolkit/modules/docs/FirstStartup.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,10 @@ List of phases
6363

6464
The time-out has been reached before startup tasks are complete.
6565

66-
This status code is reported to Telemetry via the ``firstStartup.statusCode``
67-
scalar.
68-
6966
``FirstStartup.SUCCESS``
7067

7168
All startup tasks have completed successfully, and application startup may resume.
7269

73-
This status code is reported to Telemetry via the ``firstStartup.statusCode``
74-
scalar.
75-
7670
``FirstStartup.UNSUPPORTED``
7771

7872
No startup tasks are supported, and `FirstStartup` exited.
79-
80-
This status code is reported to Telemetry via the ``firstStartup.statusCode``
81-
scalar.

toolkit/modules/tests/xpcshell/test_firstStartup.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const { updateAppInfo } = ChromeUtils.import(
1111
);
1212

1313
const PREF_TIMEOUT = "first-startup.timeout";
14-
const PROBE_NAME = "firstStartup.statusCode";
1514

1615
add_task(async function test_success() {
1716
updateAppInfo();
@@ -21,16 +20,6 @@ add_task(async function test_success() {
2120
} else {
2221
equal(FirstStartup.state, FirstStartup.UNSUPPORTED);
2322
}
24-
25-
const scalars = Services.telemetry.getSnapshotForScalars("main", false)
26-
.parent;
27-
ok(PROBE_NAME in scalars);
28-
29-
if (AppConstants.MOZ_NORMANDY) {
30-
equal(scalars[PROBE_NAME], FirstStartup.SUCCESS);
31-
} else {
32-
equal(scalars[PROBE_NAME], FirstStartup.UNSUPPORTED);
33-
}
3423
});
3524

3625
add_task(async function test_timeout() {
@@ -43,13 +32,4 @@ add_task(async function test_timeout() {
4332
} else {
4433
equal(FirstStartup.state, FirstStartup.UNSUPPORTED);
4534
}
46-
47-
const scalars = Services.telemetry.getSnapshotForScalars("main", false)
48-
.parent;
49-
ok(PROBE_NAME in scalars);
50-
if (AppConstants.MOZ_NORMANDY) {
51-
equal(scalars[PROBE_NAME], FirstStartup.TIMED_OUT);
52-
} else {
53-
equal(scalars[PROBE_NAME], FirstStartup.UNSUPPORTED);
54-
}
5535
});

toolkit/modules/tests/xpcshell/xpcshell.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ reason = LOCALE is not defined without MOZ_UPDATER
6363
[test_EventEmitter.js]
6464
[test_ProfileAge.js]
6565
[test_firstStartup.js]
66-
skip-if = true || toolkit == 'android' # Bug 1700836 - telemetry probe expired
66+
skip-if = toolkit == 'android'
6767
[test_AllowedAppSources.js]
6868
skip-if = os != 'win' # Test of a Windows-specific feature

0 commit comments

Comments
 (0)