Closed Bug 1448815 Opened 7 years ago Closed 7 years ago

XCUITest: Investigate if using preloaded DBs decreases the BB tests execution time

Categories

(Firefox for iOS :: Build & Test, enhancement)

Other
iOS
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios 13.0 ---

People

(Reporter: isabel_rios, Assigned: isabel_rios)

Details

Attachments

(1 file)

55 bytes, text/x-github-pull-request
njpark
: review+
Details | Review
It is possible to use pre-populated DBs for History and Bookmarks. And configuring the setUp now is not necessary to restart the app in each test to see and use the data. These improvements could make some tests to run faster since it is not needed to follow certain steps to have the data available and then check what the test is aimed for. Also, tests could be more robust after removing those steps where tests could fail when for example loading an url or so. So, let's investigate if we actually see some improvements in BB test execution time and if that's the case we can refactor all tests that use the pre-loaded data.
Attached file Pull Request
Please let me know your thoughts about this PR. Thanks!
Attachment #8963330 - Flags: review?(npark)
Comment on attachment 8963330 [details] [review] Pull Request I think it looks good, we might want to comment in the script that mentions about the preloaded db just for clarity.
Attachment #8963330 - Flags: review?(npark) → review+
Thanks for the review! You mean clarify what the DB contains and why we use it? Also, before merging this, we have to take into account that the pre-loaded DB patch did not land in v11.x, so this is only for master and since several tests are modified, they are going to diverge from v11.x. Knowing this, should we give it a try? Thanks!
Flags: needinfo?(npark)
Assignee: nobody → irios.mozilla
Yes, a quick comment about what that DB is about. And I think it's reasonable that it diverges from 11.x. Let's make sure we don't do any partial uplifts that fails the test suite.
Flags: needinfo?(npark)
After sometime I'm working again on this bug. It looks like now the time we save per build is not as big as before, we save around 2-3 mins per build, even though I think it would be interesting to land this on master and v12.x since it will make some tests more stable and we could try to increase the time saved using these or more DDBBs in the future. Please No-Jun, let me know your opinion on this... Thanks!
Flags: needinfo?(npark)
I think having it stable is a big plus, let's go ahead and see what happens. If it causes problems, we can always revert it.
Flags: needinfo?(npark)
Merged on master: https://github.com/mozilla-mobile/firefox-ios/commit/de55229cdff72ebf44a0f676fa23c3b275c630ee If we see it working on master, lets uplift to v12.x
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Whiteboard: [needsuplift]
Although it is working, lets add this starting on v13 when the branch is cut from master, no need to have it on 12 now
Whiteboard: [needsuplift]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: