Closed Bug 1556831 Opened 6 years ago Closed 6 years ago

Safe mode doesn't need to write out an invalid compatibility version

Categories

(Toolkit :: Startup and Profile System, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: mossop, Assigned: mossop)

Details

Attachments

(1 file)

When running safe mode we write out a compatibility.ini that contains "Safe Mode" as the compatibility version in order to force the next startup to flush the caches. This is unnecessary since we already have a mechanism for telling the next startup to flush the caches.

When launching into safe mode we write out a compatibility.ini with an invalid
compatibility version in it. This is to ensure that on the next startup we flush
the caches. This is unnecessary though, we already have a flag we can set in
compatibility.ini in order to request a flush on next startup. This patch
switches to doing that so the version check on startup continues to work.

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task
Pushed by dtownsend@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/fc21b0bcbf12 Have safe mode write out the normal compatibility version. r=froydnj
Backout by rgurzau@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f4fe0d9e5130 Backed out changeset fc21b0bcbf12 for reftest failures on a CLOSED TREE.

Backed out changeset fc21b0bcbf12 (bug 1556831) for multiple reftest failures on a CLOSED TREE.

Backout link: https://hg.mozilla.org/integration/mozilla-inbound/rev/f4fe0d9e5130598febfb2ce89c96692e6d08efeb

Push with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&resultStatus=testfailed%2Cbusted%2Cexception&revision=fc21b0bcbf127471f27c92a10554ba27eba01d95&selectedJob=250441466

Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=250441466&repo=mozilla-inbound&lineNumber=1182

Log snippet:

19:14:57 INFO - REFTEST SUITE-START | Running 3761 tests
19:14:57 INFO - REFTEST TEST-START | data:text/html,
19:14:57 INFO - REFTEST TEST-LOAD | data:text/html, | 0 / 3761 (0%)
19:14:57 INFO - [Child 760, Main Thread] WARNING: No active window: file z:/build/build/src/js/xpconnect/src/XPCJSContext.cpp, line 662
19:14:57 INFO - ++DOMWINDOW == 7 (08ABB400) [pid = 760] [serial = 7] [outer = 012734C0]
19:14:57 INFO - [Parent 3856, StreamTrans #5] WARNING: 'NS_FAILED(rv)', file z:/build/build/src/modules/libjar/nsJARChannel.cpp, line 371
19:14:57 INFO - [Parent 3856, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file z:/build/build/src/modules/libjar/nsJARChannel.cpp, line 994
19:14:57 INFO - REFTEST TEST-PASS | data:text/html, | (LOAD ONLY)
19:14:57 INFO - REFTEST TEST-END | data:text/html,
19:14:57 INFO - ++DOMWINDOW == 8 (08ABA400) [pid = 760] [serial = 8] [outer = 012734C0]
19:14:57 INFO - REFTEST TEST-UNEXPECTED-FAIL | data:text/html, | assertion count 1 is more than expected 0 assertions

Flags: needinfo?(dtownsend)
Pushed by dtownsend@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/7ca8fe32a5d9 Have safe mode write out the normal compatibility version. r=froydnj
Flags: needinfo?(dtownsend)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69

Comment on attachment 9069767 [details]
Bug 1556831: Have safe mode write out the normal compatibility version. r=froydnj

Beta/Release Uplift Approval Request

  • User impact if declined: We may miss some profile downgrade cases if a newer profile is launched immediately after safe mode.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This essentially just changes the mechanism by which we invalidate the startup caches.
  • String changes made/needed: None
Attachment #9069767 - Flags: approval-mozilla-beta?

Comment on attachment 9069767 [details]
Bug 1556831: Have safe mode write out the normal compatibility version. r=froydnj

I think I'd rather let this ride the trains. Missing a downgrade case is not the end of the world, it's not something we would have detected before anyway.

Attachment #9069767 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: