Bug: Perma browser/components/backup/tests/xpcshell/test_BackupService.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2024-06-28 19:05:54+00:00
Resolved: 2024-07-01 20:04:33+00:00

**Filed by:** ctuns [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=464463261&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/bGMvj1uCQJ6FseNV_5s7nA/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/bGMvj1uCQJ6FseNV_5s7nA/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2024-06-28T18:43:01.343Z] 18:43:01     INFO -  TEST-PASS | browser/components/backup/tests/xpcshell/test_BackupService.js | test_createBackup_signed_in - [test_createBackup_signed_in : 331] Account email should be set properly. - "foxy@mozilla.org" == "foxy@mozilla.org"
[task 2024-06-28T18:43:01.344Z] 18:43:01     INFO -  (xpcshell/head.js) | test run_next_test 3 pending (2)
[task 2024-06-28T18:43:01.344Z] 18:43:01     INFO -  (xpcshell/head.js) | test test_createBackup_signed_in finished (2)
[task 2024-06-28T18:43:01.344Z] 18:43:01     INFO -  browser/components/backup/tests/xpcshell/test_BackupService.js | Starting test_createBackup_robustToFileSystemErrors
[task 2024-06-28T18:43:01.345Z] 18:43:01     INFO -  (xpcshell/head.js) | test test_createBackup_robustToFileSystemErrors pending (2)
[task 2024-06-28T18:43:01.345Z] 18:43:01     INFO -  (xpcshell/head.js) | test run_next_test 3 finished (2)
[task 2024-06-28T18:43:01.345Z] 18:43:01     INFO -  PID 4184 | console.debug: BackupService: "Instantiated"
[task 2024-06-28T18:43:01.345Z] 18:43:01     INFO -  PID 4184 | console.debug: BackupService: "Creating backup for profile at C:\\\\Users\\\\task_171959782481841\\\\AppData\\\\Local\\\\Temp\\\\xpc-profile-lzshb94t\\\\createBackupErrorInaccessible"
[task 2024-06-28T18:43:01.346Z] 18:43:01     INFO -  PID 4184 | console.debug: BackupService: "Creating backups folder"
[task 2024-06-28T18:43:01.346Z] 18:43:01     INFO -  PID 4184 | console.debug: BackupService: "Checking for pre-existing staging folder"
[task 2024-06-28T18:43:01.346Z] 18:43:01     INFO -  PID 4184 | console.debug: BackupService: "Encryption enabled: " false
[task 2024-06-28T18:43:01.347Z] 18:43:01     INFO -  PID 4184 | console.debug: BackupService: "Finalizing and renaming staging folder"
[task 2024-06-28T18:43:01.347Z] 18:43:01     INFO -  PID 4184 | console.log: BackupService: "Wrote backup to staging directory at " "C:\\\\Users\\\\task_171959782481841\\\\AppData\\\\Local\\\\Temp\\\\xpc-profile-lzshb94t\\\\createBackupErrorInaccessible\\\\backups\\\\snapshots\\\\2024-06-28T18-43-01Z"
[task 2024-06-28T18:43:01.347Z] 18:43:01     INFO -  PID 4184 | console.debug: BackupService: "total staging directory size in bytes: 1048576"
[task 2024-06-28T18:43:01.347Z] 18:43:01     INFO -  PID 4184 | console.log: BackupService: "Compressing staging folder to " "C:\\\\Users\\\\task_171959782481841\\\\AppData\\\\Local\\\\Temp\\\\xpc-profile-lzshb94t\\\\createBackupErrorInaccessible\\\\backups\\\\snapshots\\\\2024-06-28T18-43-01Z.zip"
[task 2024-06-28T18:43:01.348Z] 18:43:01     INFO -  PID 4184 | console.debug: BackupService: "Starting to write out archive file"
[task 2024-06-28T18:43:01.348Z] 18:43:01     INFO -  PID 4184 | console.log: BackupService: "Done writing archive file"
[task 2024-06-28T18:43:01.349Z] 18:43:01     INFO -  PID 4184 | console.log: BackupService: "Exporting single-file archive to " "C:\\\\Users\\\\task_171959782481841\\\\AppData\\\\Local\\\\Temp\\\\xpc-profile-lzshb94t\\\\createBackupErrorInaccessible\\\\backups\\\\snapshots\\\\archive.html"
[task 2024-06-28T18:43:01.349Z] 18:43:01  WARNING -  TEST-UNEXPECTED-FAIL | browser/components/backup/tests/xpcshell/test_BackupService.js | test_createBackup_robustToFileSystemErrors - [test_createBackup_robustToFileSystemErrors : 375] Should return null on error - {"stagingPath":"C:\\\\Users\\\\task_171959782481841\\\\AppData\\\\Local\\\\Temp\\\\xpc-profile-lzshb94t\\\\createBackupErrorInaccessible\\\\backups\\\\snapshots\\\\2024-06-28T18-43-01Z","compressedStagingPath":"C:\\\\Users\\\\task_171959782481841\\\\AppData\\\\Local\\\\Temp\\\\xpc-profile-lzshb94t\\\\createBackupErrorInaccessible\\\\backups\\\\snapshots\\\\2024-06-28T18-43-01Z.zip","archivePath":"C:\\\\Users\\\\task_171959782481841\\\\AppData\\\\Local\\\\Temp\\\\xpc-profile-lzshb94t\\\\createBackupErrorInaccessible\\\\backups\\\\snapshots\\\\archive.html"} == null
[task 2024-06-28T18:43:01.350Z] 18:43:01     INFO -  D:/task_171959782481841/build/tests/xpcshell/tests/browser/components/backup/tests/xpcshell/test_BackupService.js:test_createBackup_robustToFileSystemErrors/<:375
[task 2024-06-28T18:43:01.350Z] 18:43:01     INFO -  D:\task_171959782481841\build\tests\xpcshell\head.js:_do_main:245
[task 2024-06-28T18:43:01.351Z] 18:43:01     INFO -  D:\task_171959782481841\build\tests\xpcshell\head.js:_execute_test:596
[task 2024-06-28T18:43:01.351Z] 18:43:01     INFO -  -e:null:1
[task 2024-06-28T18:43:01.351Z] 18:43:01     INFO -  exiting test
[task 2024-06-28T18:43:01.352Z] 18:43:01  WARNING -  TEST-UNEXPECTED-FAIL | browser/components/backup/tests/xpcshell/test_BackupService.js | test_createBackup_robustToFileSystemErrors - [test_createBackup_robustToFileSystemErrors : 389] Should not have bubbled up an error - false == true
[task 2024-06-28T18:43:01.352Z] 18:43:01     INFO -  D:/task_171959782481841/build/tests/xpcshell/tests/browser/components/backup/tests/xpcshell/test_BackupService.js:test_createBackup_robustToFileSystemErrors/<:389
[task 2024-06-28T18:43:01.352Z] 18:43:01     INFO -  D:\task_171959782481841\build\tests\xpcshell\head.js:_do_main:245
[task 2024-06-28T18:43:01.352Z] 18:43:01     INFO -  D:\task_171959782481841\build\tests\xpcshell\head.js:_execute_test:596
[task 2024-06-28T18:43:01.353Z] 18:43:01     INFO -  -e:null:1
[task 2024-06-28T18:43:01.353Z] 18:43:01     INFO -  exiting test
[task 2024-06-28T18:43:01.353Z] 18:43:01     INFO -  Unexpected exception NotAllowedError: Could not remove `C:\\Users\\task_171959782481841\\AppData\\Local\\Temp\\xpc-profile-lzshb94t\\createBackupErrorInaccessible' (NS_ERROR_FILE_ACCESS_DENIED)
[task 2024-06-28T18:43:01.353Z] 18:43:01     INFO -  _execute_test@D:\task_171959782481841\build\tests\xpcshell\head.js:707:23
[task 2024-06-28T18:43:01.353Z] 18:43:01     INFO -  @-e:1:1
[task 2024-06-28T18:43:01.353Z] 18:43:01     INFO -  exiting test
[task 2024-06-28T18:43:01.354Z] 18:43:01     INFO -  <<<<<<<
[task 2024-06-28T18:43:01.366Z] 18:43:01     INFO -  TEST-START | browser/components/backup/tests/xpcshell/test_BackupService.js
[task 2024-06-28T18:43:02.045Z] 18:43:02  WARNING -  TEST-UNEXPECTED-FAIL | browser/components/backup/tests/xpcshell/test_BackupService.js | xpcshell return code: 0
[task 2024-06-28T18:43:02.054Z] 18:43:02     INFO -  TEST-INFO took 679ms
[task 2024-06-28T18:43:02.054Z] 18:43:02     INFO -  >>>>>>>
[task 2024-06-28T18:43:02.054Z] 18:43:02     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2024-06-28T18:43:02.054Z] 18:43:02     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2024-06-28T18:43:02.054Z] 18:43:02     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2024-06-28T18:43:02.055Z] 18:43:02     INFO -  running event loop
[task 2024-06-28T18:43:02.055Z] 18:43:02     INFO -  browser/components/backup/tests/xpcshell/test_BackupService.js | Starting setup
[task 2024-06-28T18:43:02.055Z] 18:43:02     INFO -  (xpcshell/head.js) | test pending (2)
[task 2024-06-28T18:43:02.055Z] 18:43:02     INFO -  TEST-PASS | browser/components/backup/tests/xpcshell/test_BackupService.js |  - Created a testing profile and set it to current. - true == true
```