Bug: Intermittent browser/components/sessionstore/test/browser_upgrade_backup.js | expected number of backups are present after removing old backups - Got 7, expected 3
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2020-02-20 13:01:59+00:00
Resolved: 2022-07-25 23:05:57+00:00

**Filed by:** rmaries [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer.html#?job_id=289677320&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/L_D9xVovR3uUcNZLb9kogA/runs/0/artifacts/public/logs/live_backing.log

---

[task 2020-02-20T12:07:58.949Z] 12:07:58     INFO - TEST-START | browser/components/sessionstore/test/browser_upgrade_backup.js
[task 2020-02-20T12:07:59.038Z] 12:07:59     INFO - TEST-INFO | started process screentopng
[task 2020-02-20T12:07:59.484Z] 12:07:59     INFO - TEST-INFO | screentopng: exit 0
[task 2020-02-20T12:07:59.484Z] 12:07:59     INFO - Buffered messages logged at 12:07:58
[task 2020-02-20T12:07:59.485Z] 12:07:59     INFO - Entering test bound init
[task 2020-02-20T12:07:59.486Z] 12:07:59     INFO - Leaving test bound init
[task 2020-02-20T12:07:59.487Z] 12:07:59     INFO - Entering test bound test_upgrade_backup
[task 2020-02-20T12:07:59.487Z] 12:07:59     INFO - Let's check if we create an upgrade backup
[task 2020-02-20T12:07:59.488Z] 12:07:59     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup should be set - 
[task 2020-02-20T12:07:59.489Z] 12:07:59     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup file has been created - 
[task 2020-02-20T12:07:59.490Z] 12:07:59     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup contains the expected contents - 
[task 2020-02-20T12:07:59.490Z] 12:07:59     INFO - Let's check that we don't overwrite this upgrade backup
[task 2020-02-20T12:07:59.491Z] 12:07:59     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup hasn't changed - 
[task 2020-02-20T12:07:59.492Z] 12:07:59     INFO - Buffered messages logged at 12:07:59
[task 2020-02-20T12:07:59.493Z] 12:07:59     INFO - Leaving test bound test_upgrade_backup
[task 2020-02-20T12:07:59.493Z] 12:07:59     INFO - Entering test bound test_upgrade_backup_removal
[task 2020-02-20T12:07:59.493Z] 12:07:59     INFO - Let's see if we remove backups if there are too many
[task 2020-02-20T12:07:59.494Z] 12:07:59     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup should be set - 
[task 2020-02-20T12:07:59.495Z] 12:07:59     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup file has been created - 
[task 2020-02-20T12:07:59.496Z] 12:07:59     INFO - Buffered messages finished
[task 2020-02-20T12:07:59.497Z] 12:07:59     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_upgrade_backup.js | expected number of backups are present after removing old backups - Got 7, expected 3
[task 2020-02-20T12:07:59.497Z] 12:07:59     INFO - Stack trace:
[task 2020-02-20T12:07:59.498Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:test_is:1320
[task 2020-02-20T12:07:59.498Z] 12:07:59     INFO - chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_upgrade_backup.js:test_upgrade_backup_removal:174
[task 2020-02-20T12:07:59.499Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1062
[task 2020-02-20T12:07:59.499Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1097
[task 2020-02-20T12:07:59.499Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:925
[task 2020-02-20T12:07:59.499Z] 12:07:59     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:914
[task 2020-02-20T12:07:59.500Z] 12:07:59     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-02-20T12:07:59.500Z] 12:07:59     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_upgrade_backup.js | one new backup was created that was not removed - Got 0, expected 1
[task 2020-02-20T12:07:59.500Z] 12:07:59     INFO - Stack trace:
[task 2020-02-20T12:07:59.500Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:test_is:1320
[task 2020-02-20T12:07:59.500Z] 12:07:59     INFO - chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_upgrade_backup.js:test_upgrade_backup_removal:187
[task 2020-02-20T12:07:59.500Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1062
[task 2020-02-20T12:07:59.501Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1097
[task 2020-02-20T12:07:59.501Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:925
[task 2020-02-20T12:07:59.501Z] 12:07:59     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:914
[task 2020-02-20T12:07:59.502Z] 12:07:59     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-02-20T12:07:59.503Z] 12:07:59     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_upgrade_backup.js | second call to SessionFile.write() didn't create or remove more backups - Got 7, expected 3
[task 2020-02-20T12:07:59.503Z] 12:07:59     INFO - Stack trace:
[task 2020-02-20T12:07:59.503Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:test_is:1320
[task 2020-02-20T12:07:59.503Z] 12:07:59     INFO - chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_upgrade_backup.js:test_upgrade_backup_removal:192
[task 2020-02-20T12:07:59.504Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1062
[task 2020-02-20T12:07:59.504Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1097
[task 2020-02-20T12:07:59.504Z] 12:07:59     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:925
[task 2020-02-20T12:07:59.504Z] 12:07:59     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:914
[task 2020-02-20T12:07:59.504Z] 12:07:59     INFO - Leaving test bound test_upgrade_backup_removal
[task 2020-02-20T12:07:59.504Z] 12:07:59     INFO - GECKO(8337) | MEMORY STAT | vsize 3381MB | residentFast 545MB | heapAllocated 272MB
[task 2020-02-20T12:07:59.506Z] 12:07:59     INFO - TEST-OK | browser/components/sessionstore/test/browser_upgrade_backup.js | took 116ms
[task 2020-02-20T12:07:59.506Z] 12:07:59     INFO - checking window state