Bug: Intermittent browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-02-01 22:26:14+00:00
Resolved: 2023-09-18 12:03:04+00:00

**Filed by:** smolnar [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=404251091&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/dRM40bkASn-XB-Xzbg9t0g/runs/0/artifacts/public/logs/live_backing.log

---
```
INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Should have saved the page into the database - "https://example.com/" == "https://example.com/" - 
[task 2023-02-01T20:20:00.711Z] 20:20:00     INFO - Buffered messages finished
[task 2023-02-01T20:20:00.712Z] 20:20:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Should have stored the interaction time - 11 >= 10000 - JS frame :: chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js :: assertDatabaseValues :: line 95
[task 2023-02-01T20:20:00.712Z] 20:20:00     INFO - Stack trace:
[task 2023-02-01T20:20:00.712Z] 20:20:00     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js:assertDatabaseValues:95
[task 2023-02-01T20:20:00.712Z] 20:20:00     INFO - Switch back to first tab
[task 2023-02-01T20:20:00.713Z] 20:20:00     INFO - GECKO(2277) | console.debug: InteractionsManager: "Tab switched"
[task 2023-02-01T20:20:00.713Z] 20:20:00     INFO - GECKO(2277) | console.debug: InteractionsManager: "Not updating interaction as there is no active window"
[task 2023-02-01T20:20:00.716Z] 20:20:00     INFO - Found 1 interactions:
[task 2023-02-01T20:20:00.716Z] 20:20:00     INFO -  [{"url":"https://example.com/","referrerUrl":null,"keypresses":0,"typingTime":0,"totalViewTime":11,"scrollingTime":0,"scrollingDistance":0}]
[task 2023-02-01T20:20:00.716Z] 20:20:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-01T20:20:00.717Z] 20:20:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Found the expected number of entries - 1 == 2 - JS frame :: chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js :: assertDatabaseValues :: line 75
[task 2023-02-01T20:20:00.717Z] 20:20:00     INFO - Stack trace:
[task 2023-02-01T20:20:00.717Z] 20:20:00     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js:assertDatabaseValues:75
[task 2023-02-01T20:20:00.718Z] 20:20:00     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Should have saved the page into the database - "https://example.com/" == "https://example.com/" - 
[task 2023-02-01T20:20:00.719Z] 20:20:00     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Should have kept the exact time. - 11 == 11 - 
[task 2023-02-01T20:20:00.719Z] 20:20:00     INFO - Switch to second tab again
[task 2023-02-01T20:20:00.719Z] 20:20:00     INFO - GECKO(2277) | console.debug: InteractionsManager: "Tab switched"
[task 2023-02-01T20:20:00.720Z] 20:20:00     INFO - GECKO(2277) | console.debug: InteractionsManager: "Not updating interaction as there is no active window"
[task 2023-02-01T20:20:00.721Z] 20:20:00     INFO - Found 1 interactions:
[task 2023-02-01T20:20:00.721Z] 20:20:00     INFO -  [{"url":"https://example.com/","referrerUrl":null,"keypresses":0,"typingTime":0,"totalViewTime":11,"scrollingTime":0,"scrollingDistance":0}]
[task 2023-02-01T20:20:00.721Z] 20:20:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-01T20:20:00.722Z] 20:20:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Found the expected number of entries - 1 == 2 - JS frame :: chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js :: assertDatabaseValues :: line 75
[task 2023-02-01T20:20:00.722Z] 20:20:00     INFO - Stack trace:
[task 2023-02-01T20:20:00.722Z] 20:20:00     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js:assertDatabaseValues:75
[task 2023-02-01T20:20:00.723Z] 20:20:00     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Should have saved the page into the database - "https://example.com/" == "https://example.com/" - 
[task 2023-02-01T20:20:00.724Z] 20:20:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-01T20:20:00.725Z] 20:20:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Should have stored the interaction time - 11 >= 30011 - JS frame :: chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js :: assertDatabaseValues :: line 95
[task 2023-02-01T20:20:00.725Z] 20:20:00     INFO - Stack trace:
[task 2023-02-01T20:20:00.725Z] 20:20:00     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js:assertDatabaseValues:95
[task 2023-02-01T20:20:00.727Z] 20:20:00     INFO - GECKO(2277) | console.debug: InteractionsManager: "Tab switched"
[task 2023-02-01T20:20:00.727Z] 20:20:00     INFO - GECKO(2277) | console.debug: InteractionsManager: "Not updating interaction as there is no active window"
[task 2023-02-01T20:20:00.727Z] 20:20:00     INFO - Leaving test bound test_interactions_switch_tabs
[task 2023-02-01T20:20:00.727Z] 20:20:00     INFO - Entering test bound test_interactions_switch_windows
[task 2023-02-01T20:20:00.727Z] 20:20:00     INFO - GECKO(2277) | console.debug: InteractionsManager: "Database reset"
```