Bug: Intermittent browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Should have saved the keypresses into the database - 43 == 44 - JS frame :: chrome://mochitests/content/browser/browser/components/places/tests/bro
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2021-10-17 03:38:32+00:00
Resolved: 2022-02-28 06:32:37+00:00

**Filed by:** mlaza [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=355055483&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/bJ4QlmqRSu-uMy-LdUgBuQ/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2021-10-17T02:25:53.396Z] 02:25:53     INFO - TEST-START | browser/components/places/tests/browser/interactions/browser_interactions_typing.js
[task 2021-10-17T02:25:53.431Z] 02:25:53     INFO - GECKO(5785) | console.debug: InteractionsManager: "Database reset"
[task 2021-10-17T02:25:53.447Z] 02:25:53     INFO - GECKO(5785) | console.debug: InteractionsManager: "Database reset"
[task 2021-10-17T02:25:53.505Z] 02:25:53     INFO - GECKO(5785) | console.debug: InteractionsManager: "Tab switched"
[task 2021-10-17T02:25:53.509Z] 02:25:53     INFO - GECKO(5785) | console.debug: InteractionsManager: "No interaction to update"
[task 2021-10-17T02:25:54.083Z] 02:25:54     INFO - GECKO(5785) | console.debug: InteractionsManager: "Tracking a new interaction" ({isActive:true, url:"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html", referrer:(void 0)})
[task 2021-10-17T02:25:54.334Z] 02:25:54     INFO - GECKO(5785) | console.debug: InteractionsManager: "Saw the end of an interaction"
[task 2021-10-17T02:25:54.397Z] 02:25:54     INFO - GECKO(5785) | console.debug: InteractionsManager: "Add to store: " ({url:"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html", referrer:(void 0), totalViewTime:255.3468770000036, typingTime:0, keypresses:0, scrollingTime:0, scrollingDistance:0, created_at:1634437554081, updated_at:1634437554393})
[task 2021-10-17T02:25:54.399Z] 02:25:54     INFO - GECKO(5785) | console.debug: InteractionsManager: "Preparing interaction for storage" ({url:"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html", referrer:(void 0), totalViewTime:255.3468770000036, typingTime:0, keypresses:0, scrollingTime:0, scrollingDistance:0, created_at:1634437554081, updated_at:1634437554393})
[task 2021-10-17T02:25:54.414Z] 02:25:54     INFO - GECKO(5785) | -----------------------------------------------------
[task 2021-10-17T02:25:54.415Z] 02:25:54     INFO - GECKO(5785) | Suppressions used:
[task 2021-10-17T02:25:54.417Z] 02:25:54     INFO - GECKO(5785) |   count      bytes template
[task 2021-10-17T02:25:54.418Z] 02:25:54     INFO - GECKO(5785) |      13        416 nsComponentManagerImpl
[task 2021-10-17T02:25:54.419Z] 02:25:54     INFO - GECKO(5785) |       2        288 libfontconfig.so
[task 2021-10-17T02:25:54.420Z] 02:25:54     INFO - GECKO(5785) | -----------------------------------------------------
[task 2021-10-17T02:25:54.608Z] 02:25:54     INFO - GECKO(5785) | console.debug: InteractionsManager: "Tracking a new interaction" ({isActive:true, url:"https://example.com/browser", referrer:(void 0)})
[task 2021-10-17T02:25:54.610Z] 02:25:54     INFO - GECKO(5785) | console.debug: InteractionsManager: "Storing 1 entries in the database"
[task 2021-10-17T02:25:54.649Z] 02:25:54     INFO - GECKO(5785) | console.debug: SnapshotsManager: "Testing 1 potential snapshots"
[task 2021-10-17T02:25:54.661Z] 02:25:54     INFO - GECKO(5785) | console.debug: SnapshotsManager: "Inserted 0 snapshots"
[task 2021-10-17T02:25:54.775Z] 02:25:54     INFO - GECKO(5785) | console.debug: InteractionsManager: "Saw the end of an interaction"
[task 2021-10-17T02:25:54.922Z] 02:25:54     INFO - GECKO(5785) | console.debug: InteractionsManager: "Saw the end of an interaction"
[task 2021-10-17T02:25:54.925Z] 02:25:54     INFO - GECKO(5785) | console.debug: InteractionsManager: "No interaction to update"
[task 2021-10-17T02:25:55.184Z] 02:25:55     INFO - GECKO(5785) | console.debug: InteractionsManager: "Add to store: " ({url:"https://example.com/browser", referrer:(void 0), totalViewTime:166.49096599999757, typingTime:0, keypresses:0, scrollingTime:0, scrollingDistance:0, created_at:1634437554607, updated_at:1634437555183})
[task 2021-10-17T02:25:55.188Z] 02:25:55     INFO - GECKO(5785) | console.debug: InteractionsManager: "Preparing interaction for storage" ({url:"https://example.com/browser", referrer:(void 0), totalViewTime:166.49096599999757, typingTime:0, keypresses:0, scrollingTime:0, scrollingDistance:0, created_at:1634437554607, updated_at:1634437555183})
[task 2021-10-17T02:25:55.190Z] 02:25:55     INFO - GECKO(5785) | console.debug: InteractionsManager: "Storing 1 entries in the database"
[task 2021-10-17T02:25:55.192Z] 02:25:55     INFO - GECKO(5785) | console.debug: SnapshotsManager: "Testing 1 potential snapshots"
[task 2021-10-17T02:25:55.193Z] 02:25:55     INFO - GECKO(5785) | console.debug: SnapshotsManager: "Inserted 0 snapshots"
[task 2021-10-17T02:25:55.208Z] 02:25:55     INFO - GECKO(5785) | console.debug: InteractionsManager: "Tab switched"
[task 2021-10-17T02:25:55.210Z] 02:25:55     INFO - GECKO(5785) | console.debug: InteractionsManager: "No interaction to update"
[task 2021-10-17T02:25:55.263Z] 02:25:55     INFO - GECKO(5785) | console.debug: InteractionsManager: "Database reset"
[task 2021-10-17T02:25:55.352Z] 02:25:55     INFO - GECKO(5785) | console.debug: InteractionsManager: "Tab switched"
[task 2021-10-17T02:25:55.356Z] 02:25:55     INFO - GECKO(5785) | console.debug: InteractionsManager: "No interaction to update"
[task 2021-10-17T02:25:55.410Z] 02:25:55     INFO - GECKO(5785) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-10-17T02:25:55.412Z] 02:25:55     INFO - GECKO(5785) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-10-17T02:25:55.520Z] 02:25:55     INFO - GECKO(5785) | -----------------------------------------------------
[task 2021-10-17T02:25:55.522Z] 02:25:55     INFO - GECKO(5785) | Suppressions used:
[task 2021-10-17T02:25:55.522Z] 02:25:55     INFO - GECKO(5785) |   count      bytes template
[task 2021-10-17T02:25:55.523Z] 02:25:55     INFO - GECKO(5785) |      13        416 nsComponentManagerImpl
[task 2021-10-17T02:25:55.524Z] 02:25:55     INFO - GECKO(5785) |       2        288 libfontconfig.so
[task 2021-10-17T02:25:55.525Z] 02:25:55     INFO - GECKO(5785) | -----------------------------------------------------
[task 2021-10-17T02:25:55.771Z] 02:25:55     INFO - GECKO(5785) | console.debug: InteractionsManager: "Tracking a new interaction" ({isActive:true, url:"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html", referrer:(void 0)})
[task 2021-10-17T02:25:57.030Z] 02:25:57     INFO - GECKO(5785) | -----------------------------------------------------
[task 2021-10-17T02:25:57.033Z] 02:25:57     INFO - GECKO(5785) | Suppressions used:
[task 2021-10-17T02:25:57.035Z] 02:25:57     INFO - GECKO(5785) |   count      bytes template
[task 2021-10-17T02:25:57.036Z] 02:25:57     INFO - GECKO(5785) |      13        416 nsComponentManagerImpl
[task 2021-10-17T02:25:57.037Z] 02:25:57     INFO - GECKO(5785) |       2        288 libfontconfig.so
[task 2021-10-17T02:25:57.039Z] 02:25:57     INFO - GECKO(5785) | -----------------------------------------------------
[task 2021-10-17T02:25:57.639Z] 02:25:57     INFO - GECKO(5785) | console.debug: InteractionsManager: "Saw the end of an interaction"
...
[task 2021-10-17T02:26:02.456Z] 02:26:02     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Should have saved the page into the database - "https://example.com/browser/browser/components/places/tests/browser/keyword_form.html" == "https://example.com/browser/browser/components/places/tests/browser/keyword_form.html" - 
[task 2021-10-17T02:26:02.457Z] 02:26:02     INFO - Buffered messages finished
[task 2021-10-17T02:26:02.458Z] 02:26:02     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Should have saved the keypresses into the database - 43 == 44 - JS frame :: chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js :: assertDatabaseValues :: line 107
[task 2021-10-17T02:26:02.458Z] 02:26:02     INFO - Stack trace:
[task 2021-10-17T02:26:02.458Z] 02:26:02     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/interactions/head.js:assertDatabaseValues:107
[task 2021-10-17T02:26:02.459Z] 02:26:02     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Should have stored at least this amount of typing time. - 170 > 0 - 
[task 2021-10-17T02:26:02.460Z] 02:26:02     INFO - Leaving test bound test_typing_close_tab
[task 2021-10-17T02:26:02.460Z] 02:26:02     INFO - Entering test bound test_single_key_typing_and_delay
[task 2021-10-17T02:26:02.469Z] 02:26:02     INFO - GECKO(5785) | console.debug: InteractionsManager: "Database reset"
[task 2021-10-17T02:26:02.470Z] 02:26:02     INFO - GECKO(5785) | console.debug: InteractionsManager: "Tab switched"
[task 2021-10-17T02:26:02.471Z] 02:26:02     INFO - GECKO(5785) | console.debug: InteractionsManager: "No interaction to update"
[task 2021-10-17T02:26:02.471Z] 02:26:02     INFO - GECKO(5785) | console.debug: InteractionsManager: "Tracking a new interaction" ({isActive:true, url:"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html", referrer:(void 0)})
[task 2021-10-17T02:26:03.392Z] 02:26:03     INFO - GECKO(5785) | -----------------------------------------------------
[task 2021-10-17T02:26:03.392Z] 02:26:03     INFO - GECKO(5785) | Suppressions used:
[task 2021-10-17T02:26:03.393Z] 02:26:03     INFO - GECKO(5785) |   count      bytes template
[task 2021-10-17T02:26:03.393Z] 02:26:03     INFO - GECKO(5785) |      13        416 nsComponentManagerImpl
[task 2021-10-17T02:26:03.393Z] 02:26:03     INFO - GECKO(5785) |       2        288 libfontconfig.so
[task 2021-10-17T02:26:03.393Z] 02:26:03     INFO - GECKO(5785) | -----------------------------------------------------
[task 2021-10-17T02:26:04.347Z] 02:26:04     INFO - GECKO(5785) | console.debug: InteractionsManager: "Tab switched"
[task 2021-10-17T02:26:04.435Z] 02:26:04     INFO - GECKO(5785) | console.debug: InteractionsManager: "Add to store: " ({url:"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html", referrer:(void 0), totalViewTime:2138.3769399999946, typingTime:0, keypresses:0, scrollingTime:0, scrollingDistance:0, created_at:1634437562208, updated_at:1634437564433})
[task 2021-10-17T02:26:04.437Z] 02:26:04     INFO - GECKO(5785) | console.debug: InteractionsManager: "Preparing interaction for storage" ({url:"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html", referrer:(void 0), totalViewTime:2138.3769399999946, typingTime:0, keypresses:0, scrollingTime:0, scrollingDistance:0, created_at:1634437562208, updated_at:1634437564433})
[task 2021-10-17T02:26:04.439Z] 02:26:04     INFO - GECKO(5785) | console.debug: InteractionsManager: "Storing 1 entries in the database"
[task 2021-10-17T02:26:04.445Z] 02:26:04     INFO - GECKO(5785) | console.debug: SnapshotsManager: "Testing 1 potential snapshots"
[task 2021-10-17T02:26:04.454Z] 02:26:04     INFO - GECKO(5785) | console.debug: SnapshotsManager: "Inserted 0 snapshots"
[task 2021-10-17T02:26:04.459Z] 02:26:04     INFO - Found 1 interactions:
[task 2021-10-17T02:26:04.459Z] 02:26:04     INFO -  [{"url":"https://example.com/browser/browser/components/places/tests/browser/keyword_form.html","referrerUrl":null,"keypresses":0,"typingTime":0,"totalViewTime":2138,"scrollingTime":0,"scrollingDistance":0}]
[task 2021-10-17T02:26:04.460Z] 02:26:04     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_typing.js | Found the expected number of entries - 1 == 1 - 
```