Closed Bug 1083253 Opened 10 years ago Closed 6 years ago

Add support for upgrade testing

Categories

(Testing Graveyard :: JSMarionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: kgrandon, Unassigned)

References

Details

(Whiteboard: [systemsfe])

We need to be able to tests upgrades to ensure testing for things that could result in data-loss for users.
Kyle, Gareth - do you guys know what would be needed to support this? Do we have any open bugs related to this yet?
Flags: needinfo?(kyle)
Flags: needinfo?(gaye)
Upgrades in this context mean going from one profile version to another correct?
oops meaning something like 2.0 -> master
(In reply to James Lal [:lightsofapollo] from comment #3)
> oops meaning something like 2.0 -> master

Yeah, we support up to two versions, so 2.0 -> 2.1 and 2.0 -> 2.2.
Depends on: 1069064
Blocks: 1061804
Seems pretty difficult given the way things are currently wired. For starters, all of the profile/client state gets blown away every test execution. We do allow individual calls to marionette.client to specify custom profiles though so perhaps you could

1) create a 2.0 client and input some data
2) close the 2.0 client and grab the profile
3) create a 2.2 client and modify the previous profile to point to the 2.2 apps
4) confirm that upgrades went ok

That being said, I'm not 100% sure about this and even if it worked, it would probably have to be spread over two test blocks, fetch multiple gaia revs, etc. Maybe James or Kyle have better ideas..
Flags: needinfo?(gaye)
Waaaay back in January I wrote a thing called "extracts" that allows you to copy certain directories into a profile from elsewhere, which allows you to do things like copy in prepopulated database directories. However, it never really got used anywhere and I never had time to write tests for it. It's pretty much what you need for the case in Comment 5 though.

That came in with bug 962913, but unfortunately bug 1001680 to actually document the thing never got finished.
Flags: needinfo?(kyle)
Bulk closed as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1422750
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.