Bug: Intermittent browser/components/sessionstore/test/browser_upgrade_backup.js | expected number of backups are present after removing old backups - Got 4, expected 3
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-01-30 17:23:41+00:00
Resolved: 2022-05-10 00:35:55+00:00

**Filed by:** apavel [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=328326861&repo=mozilla-central
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ITCf2wJSScerbBWaeK5Lew/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2021-01-30T16:50:11.186Z] 16:50:11     INFO - TEST-START | browser/components/sessionstore/test/browser_upgrade_backup.js
[task 2021-01-30T16:50:11.261Z] 16:50:11     INFO - TEST-INFO | started process screenshot
[task 2021-01-30T16:50:11.321Z] 16:50:11     INFO - TEST-INFO | screenshot: exit 0
[task 2021-01-30T16:50:11.321Z] 16:50:11     INFO - Buffered messages logged at 16:50:11
[task 2021-01-30T16:50:11.321Z] 16:50:11     INFO - Entering test bound init
[task 2021-01-30T16:50:11.322Z] 16:50:11     INFO - Leaving test bound init
[task 2021-01-30T16:50:11.322Z] 16:50:11     INFO - Entering test bound test_upgrade_backup
[task 2021-01-30T16:50:11.322Z] 16:50:11     INFO - Let's check if we create an upgrade backup
[task 2021-01-30T16:50:11.322Z] 16:50:11     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup should be set - 
[task 2021-01-30T16:50:11.322Z] 16:50:11     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup file has been created - 
[task 2021-01-30T16:50:11.322Z] 16:50:11     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup contains the expected contents - 
[task 2021-01-30T16:50:11.322Z] 16:50:11     INFO - Let's check that we don't overwrite this upgrade backup
[task 2021-01-30T16:50:11.322Z] 16:50:11     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup hasn't changed - 
[task 2021-01-30T16:50:11.323Z] 16:50:11     INFO - Leaving test bound test_upgrade_backup
[task 2021-01-30T16:50:11.323Z] 16:50:11     INFO - Entering test bound test_upgrade_backup_removal
[task 2021-01-30T16:50:11.323Z] 16:50:11     INFO - Let's see if we remove backups if there are too many
[task 2021-01-30T16:50:11.323Z] 16:50:11     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup should be set - 
[task 2021-01-30T16:50:11.323Z] 16:50:11     INFO - TEST-PASS | browser/components/sessionstore/test/browser_upgrade_backup.js | upgrade backup file has been created - 
[task 2021-01-30T16:50:11.323Z] 16:50:11     INFO - Buffered messages finished
[task 2021-01-30T16:50:11.323Z] 16:50:11     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_upgrade_backup.js | expected number of backups are present after removing old backups - Got 4, expected 3
[task 2021-01-30T16:50:11.323Z] 16:50:11     INFO - Stack trace:
[task 2021-01-30T16:50:11.323Z] 16:50:11     INFO - chrome://mochikit/content/browser-test.js:test_is:1351
[task 2021-01-30T16:50:11.323Z] 16:50:11     INFO - chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_upgrade_backup.js:test_upgrade_backup_removal:174
[task 2021-01-30T16:50:11.324Z] 16:50:11     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-01-30T16:50:11.324Z] 16:50:11     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 2021-01-30T16:50:11.324Z] 16:50:11     INFO - Stack trace:
[task 2021-01-30T16:50:11.324Z] 16:50:11     INFO - chrome://mochikit/content/browser-test.js:test_is:1351
[task 2021-01-30T16:50:11.324Z] 16:50:11     INFO - chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_upgrade_backup.js:test_upgrade_backup_removal:187
[task 2021-01-30T16:50:11.324Z] 16:50:11     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-01-30T16:50:11.324Z] 16:50:11     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 4, expected 3
[task 2021-01-30T16:50:11.324Z] 16:50:11     INFO - Stack trace:
[task 2021-01-30T16:50:11.324Z] 16:50:11     INFO - chrome://mochikit/content/browser-test.js:test_is:1351
[task 2021-01-30T16:50:11.324Z] 16:50:11     INFO - chrome://mochitests/content/browser/browser/components/sessionstore/test/browser_upgrade_backup.js:test_upgrade_backup_removal:192
[task 2021-01-30T16:50:11.324Z] 16:50:11     INFO - Leaving test bound test_upgrade_backup_removal
[task 2021-01-30T16:50:11.324Z] 16:50:11     INFO - GECKO(5636) | MEMORY STAT | vsize 1150MB | vsizeMaxContiguous 342MB | residentFast 422MB | heapAllocated 184MB
[task 2021-01-30T16:50:11.325Z] 16:50:11     INFO - TEST-OK | browser/components/sessionstore/test/browser_upgrade_backup.js | took 108ms
[task 2021-01-30T16:50:11.325Z] 16:50:11     INFO - checking window state```