Closed Bug 1697823 Opened 4 years ago Closed 4 years ago

Intermittent random test failure because of Toolkit.Telemetry ERROR ClientID::updateClientID - invalid client ID: null" {file: "resource://gre/modules/Log.jsm" line: 723}]

Categories

(Toolkit :: Telemetry, defect, P1)

defect

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox86 --- unaffected
firefox87 --- unaffected
firefox88 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: chutten)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

Filed by: abutkovits [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=332861567&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/FYGr7D-QT3GuDsIfbDAZgw/runs/0/artifacts/public/logs/live_backing.log
Reftest URL: https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/FYGr7D-QT3GuDsIfbDAZgw/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1


[task 2021-03-11T15:16:20.356Z] 15:16:20     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_enter_race.js | Search provider extension should be running - "running" == "running" - 
[task 2021-03-11T15:16:20.356Z] 15:16:20     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autocomplete_enter_race.js | Extension ID of search provider should be set - "example@tests.mozilla.org" == true - 
[task 2021-03-11T15:16:20.356Z] 15:16:20     INFO - wait for the page to load
[task 2021-03-11T15:16:20.356Z] 15:16:20     INFO - Buffered messages logged at 15:16:15
[task 2021-03-11T15:16:20.357Z] 15:16:20     INFO - Leaving test bound 
[task 2021-03-11T15:16:20.357Z] 15:16:20     INFO - Entering test bound 
[task 2021-03-11T15:16:20.357Z] 15:16:20     INFO - Buffered messages logged at 15:16:16
[task 2021-03-11T15:16:20.357Z] 15:16:20     INFO - Awaiting for the urlbar panel to open
[task 2021-03-11T15:16:20.358Z] 15:16:20     INFO - wait for the page to load
[task 2021-03-11T15:16:20.358Z] 15:16:20     INFO - Buffered messages logged at 15:16:17
[task 2021-03-11T15:16:20.360Z] 15:16:20     INFO - Console message: [JavaScript Error: "1615475777405	Toolkit.Telemetry	ERROR	ClientID::updateClientID - invalid client ID: null" {file: "resource://gre/modules/Log.jsm" line: 723}]
[task 2021-03-11T15:16:20.360Z] 15:16:20     INFO - append@resource://gre/modules/Log.jsm:723:12
[task 2021-03-11T15:16:20.360Z] 15:16:20     INFO - log@resource://gre/modules/Log.jsm:379:16
[task 2021-03-11T15:16:20.360Z] 15:16:20     INFO - getLoggerWithMessagePrefix/proxy.log@resource://gre/modules/Log.jsm:508:18
[task 2021-03-11T15:16:20.360Z] 15:16:20     INFO - error@resource://gre/modules/Log.jsm:387:10
[task 2021-03-11T15:16:20.360Z] 15:16:20     INFO - updateClientID@resource://gre/modules/ClientID.jsm:479:17
[task 2021-03-11T15:16:20.360Z] 15:16:20     INFO - _doLoadClientIDs@resource://gre/modules/ClientID.jsm:250:33
[task 2021-03-11T15:16:20.360Z] 15:16:20     INFO - 
[task 2021-03-11T15:16:20.360Z] 15:16:20     INFO - Buffered messages finished
[task 2021-03-11T15:16:20.360Z] 15:16:20     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_autocomplete_enter_race.js | false == true - JS frame :: chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_autocomplete_enter_race.js :: test_delay :: line 164```

This affects random tests which check if any error messages have been logged during their execution. Please prioritize fixing it (sheriffs have to manually check logs to identify the issue).

Severity: S4 → --
Component: Address Bar → Telemetry
Flags: needinfo?(chutten)
Keywords: regression
Priority: P5 → --
Product: Firefox → Toolkit
Regressed by: 1697045
Has Regression Range: --- → yes
Summary: Intermittent [tier2] TV browser/components/urlbar/tests/browser/browser_autocomplete_enter_race.js | false == true - JS frame :: chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_autocomplete_enter_race.js :: test_delay → Intermittent random test failure because of Toolkit.Telemetry ERROR ClientID::updateClientID - invalid client ID: null" {file: "resource://gre/modules/Log.jsm" line: 723}]

Okay, so the culprit is _doLoadClientId setting the client id whether or not there's one present, not realizing that updateClientId prints an error about it and me not realizing that error prints cause other tests to fail.

Fix should be straightforward, I'll work on this now.

Assignee: nobody → chutten
Severity: -- → S2
Status: NEW → ASSIGNED
Flags: needinfo?(chutten)
Priority: -- → P1
Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e0b1b0b70a9e Don't try to update the client_id to null r=janerik
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: