Closed Bug 1725615 Opened 4 years ago Closed 2 years ago

Replace OS.File with IOUtils in the crash reporter code

Categories

(Toolkit :: Crash Reporting, task)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: gsvelto, Assigned: beth)

References

Details

Attachments

(3 files)

As per title, the affected files are the following (they're mostly tests):

  • toolkit/components/crashes/tests/xpcshell/test_crash_service.js
  • toolkit/components/crashes/CrashManagerTest.jsm
  • toolkit/components/crashmonitor/test/unit/test_valid_file.js
  • toolkit/components/crashmonitor/test/unit/test_invalid_json.js
  • toolkit/components/crashmonitor/test/unit/test_invalid_file.js
  • toolkit/crashreporter/CrashSubmit.jsm
  • toolkit/crashreporter/content/crashes.js
  • toolkit/crashreporter/test/unit/test_crash_exc_guard.js
  • toolkit/crashreporter/test/unit/head_win64cfi.js
  • toolkit/crashreporter/test/unit/head_crashreporter.js
  • toolkit/crashreporter/test/unit/test_crash_modules.js
  • toolkit/crashreporter/test/unit/test_crash_heap_corruption.js
  • toolkit/crashreporter/test/unit/test_crash_AsyncShutdown.js
Blocks: 1737308
Blocks: 1772262
No longer blocks: 1737308
Assignee: nobody → brennie
Depends on: 1803216
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1625d713bf28 Port osfile.jsm usage to IOUtils in toolkit/components/crashes r=gsvelto https://hg.mozilla.org/integration/autoland/rev/0678f083099a Port osfile.jsm usage to IOUtils in toolkit/components/crashmonitor r=gsvelto https://hg.mozilla.org/integration/autoland/rev/4a94ba555fc5 Port osfile.jsm usage to IOUtils in toolkit/crashreporter/ r=gsvelto

Backed out for causing failures on browser_clearReports.js

[task 2022-12-02T15:44:14.024Z] 15:44:14     INFO - TEST-PASS | toolkit/crashreporter/test/browser/browser_clearReports.js | Submitted report list is visible - "block" != "none" - 
[task 2022-12-02T15:44:14.025Z] 15:44:14     INFO - Console message: [JavaScript Error: "NotFoundError: Could not stat file(/tmp/tmpouqgccli.mozrunner/UAppData/Crash Reports/InstallTimeOld) because it does not exist"]
[task 2022-12-02T15:44:14.027Z] 15:44:14     INFO - Buffered messages finished
[task 2022-12-02T15:44:14.027Z] 15:44:14     INFO - TEST-UNEXPECTED-FAIL | toolkit/crashreporter/test/browser/browser_clearReports.js | Uncaught exception in test - undefined - timed out after 50 tries.
[task 2022-12-02T15:44:14.027Z] 15:44:14     INFO - Leaving test bound test
[task 2022-12-02T15:44:14.028Z] 15:44:14     INFO - GECKO(7984) | cleanup_fake_appdir: dirSvc.undefine failed: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.undefine]
[task 2022-12-02T15:44:14.029Z] 15:44:14     INFO - GECKO(7984) | MEMORY STAT | vsize 11226MB | residentFast 447MB | heapAllocated 188MB
[task 2022-12-02T15:44:14.032Z] 15:44:14     INFO - TEST-OK | toolkit/crashreporter/test/browser/browser_clearReports.js | took 5584ms
[task 2022-12-02T15:44:14.033Z] 15:44:14     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-12-02T15:44:14.034Z] 15:44:14     INFO - TEST-UNEXPECTED-FAIL | toolkit/crashreporter/test/browser/browser_clearReports.js | Found an unexpected tab at the end of test run: about:crashes - 
Flags: needinfo?(brennie)

There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:barret, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.

Flags: needinfo?(gsvelto)
Flags: needinfo?(brennie)

Barret do you have time to look into the failures and try to re-land this?

Flags: needinfo?(gsvelto)
Status: NEW → ASSIGNED

Yeah, this is in my backlog to fix soon.

Flags: needinfo?(brennie)
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/be82dc9f684f Port osfile.jsm usage to IOUtils in toolkit/components/crashes r=gsvelto https://hg.mozilla.org/integration/autoland/rev/aba8e190afdd Port osfile.jsm usage to IOUtils in toolkit/components/crashmonitor r=gsvelto https://hg.mozilla.org/integration/autoland/rev/f1cdc5b4f15f Port osfile.jsm usage to IOUtils in toolkit/crashreporter/ r=gsvelto
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: