Closed Bug 1753917 Opened 3 years ago Closed 2 years ago

FxMS private browing integration test fails with `--verify` in TelemetryTestUtils.jsm

Categories

(Firefox :: Messaging System, defect, P1)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1754546

People

(Reporter: dmosedale, Assigned: dmosedale)

References

(Blocks 1 open bug)

Details

Running

./mach test --headless --verify browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_nimbus.js

Results in the following failures on current mozilla-central, which does not yet

Doing it without --verify seems to go fine.

browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_nimbus.js
  FAIL parent must be in snapshot. Has []. - false == true - JS frame :: resource://testing-common/TelemetryTestUtils.jsm :: assertEvents :: line 143
Stack trace:
resource://testing-common/TelemetryTestUtils.jsm:assertEvents:143
chrome://mochitests/content/browser/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_nimbus.js:test_experiment_messaging_system:545
  FAIL Uncaught exception - at resource://testing-common/TelemetryTestUtils.jsm:167 - TypeError: can't access property "map", snapshot is undefined
Stack trace:
assertEvents@resource://testing-common/TelemetryTestUtils.jsm:167:20
test_experiment_messaging_system@chrome://mochitests/content/browser/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_nimbus.js:545:22
  FAIL Test timed out -
  FAIL Found a browser window after previous test timed out -

I did a quick look through the code and up the stack, and it looked to me like the issue was in the C++ telemetry code returning NS_ERROR_FAILURES that didn't have documentation about how one should handle those failures. It's entirely possible that I just missed something on my quick skim, however.

One the one hand, this is "just" with --verify, on the other, it makes --verify less useful with this particular file at least, since one can never verify that everything works because of this issue.

Note that this happens on the trunk, where bug 1749775 (private browser telemetry for the dismiss button) has not yet landed.

Assignee: nobody → andrei.br92
Severity: -- → S4
Priority: -- → P1

This will also certainly end up being a DUP of bug 1754546.

Blocks: 1754536
Assignee: andrei.br92 → dmosedale
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.