Closed Bug 2081496 Opened 1 month ago Closed 1 month ago

Intermittent browser/components/sessionstore/test/unit/test_write_outcome.js | single tracking bug

Categories

(Firefox :: Session Restore, defect, P5)

defect

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: alexyuehan)

Details

(Keywords: intermittent-failure, intermittent-testcase, Whiteboard: [collect_confirm_failure])

Attachments

(1 external file)

Filed by: asilaghi [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=599561930&repo=autoland&task=EyHxrABOTJ-l-34U-sUuyg.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/EyHxrABOTJ-l-34U-sUuyg/runs/0/artifacts/public/logs/live_backing.log


[task 2026-10-13T21:56:29.700+00:00] 21:56:29     INFO - TEST-PASS | toolkit/components/backgroundtasks/tests/xpcshell/test_backgroundtask_experiments.js | took 56956ms
[task 2026-10-13T21:56:29.715+00:00] 21:56:29     INFO - TEST-START | browser/components/sessionstore/test/unit/test_write_outcome.js
[task 2026-10-13T21:56:29.952+00:00] 21:56:29     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/unit/test_write_outcome.js | xpcshell return code: 0
[task 2026-10-13T21:56:29.952+00:00] 21:56:29     INFO - TEST-INFO took 238ms
[task 2026-10-13T21:56:29.955+00:00] 21:56:29     INFO - >>>>>>> Begin of full log for browser/components/sessionstore/test/unit/test_write_outcome.js
[task 2026-10-13T21:56:29.956+00:00] 21:56:29     INFO - (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2026-10-13T21:56:29.956+00:00] 21:56:29     INFO - (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2026-10-13T21:56:29.956+00:00] 21:56:29     INFO - (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2026-10-13T21:56:29.956+00:00] 21:56:29     INFO - running event loop
[task 2026-10-13T21:56:29.957+00:00] 21:56:29     INFO - browser/components/sessionstore/test/unit/test_write_outcome.js | Starting setup 
[task 2026-10-13T21:56:29.957+00:00] 21:56:29     INFO - (xpcshell/head.js) | test pending (2)
[task 2026-10-13T21:56:29.957+00:00] 21:56:29     INFO - (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2026-10-13T21:56:29.957+00:00] 21:56:29     INFO - (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2026-10-13T21:56:29.958+00:00] 21:56:29     INFO - (xpcshell/head.js) | test finished (2)
[task 2026-10-13T21:56:29.958+00:00] 21:56:29     INFO - browser/components/sessionstore/test/unit/test_write_outcome.js | Starting test_success
[task 2026-10-13T21:56:29.958+00:00] 21:56:29     INFO - (xpcshell/head.js) | test test_success pending (2)
[task 2026-10-13T21:56:29.958+00:00] 21:56:29     INFO - (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2026-10-13T21:56:29.959+00:00] 21:56:29     INFO - TEST-PASS | browser/components/sessionstore/test/unit/test_write_outcome.js | test_success - [test_success : 132] a successful write is counted - {"attempts":1,"success":1,"failed":0,"backupFailed":0} deepEqual {"attempts":1,"success":1,"failed":0,"backupFailed":0}
[task 2026-10-13T21:56:29.959+00:00] 21:56:29     INFO - TEST-PASS | browser/components/sessionstore/test/unit/test_write_outcome.js | test_success - [test_success : 137] file_size_bytes is recorded on success - 1 > 0

The tasks deliberately make session file writes fail, so SessionLogger
flushes an error log into the profile's sessionstore-logs directory from
an idle callback. The cleanup function removed every profile entry whose
name starts with "sessionstore", including that directory, so the flush
could add a file while it was being removed, failing the test with
NS_ERROR_FILE_DIR_NOT_EMPTY (seen on Windows). sessionstore-logs is not a
session file, so leave it out of the entries the cleanup saves and
restores.

Assignee: nobody → alexyuehan
Status: NEW → ASSIGNED
Pushed by sfoster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ca2af271f075 https://hg.mozilla.org/integration/autoland/rev/491a7af73960 Leave sessionstore-logs alone in test_write_outcome.js cleanup. r=sessionstore-reviewers,nsharpley
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: