Bug 1264381 - Add comment explaining lack of SQLite forward-compatibility r=mcomella
authorAndrzej Hunt <ahunt@mozilla.com>
Wed, 13 Apr 2016 11:16:51 -0700
changeset 331932 19954943888496006f660e90b3eee0c2482f5fca
parent 331931 e9088179190a3129cc705ea795e40669c97327d0
child 331933 0e6c5c8b6993f7a66f9d7fbb6355fb58b931428d
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs1264381
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1264381 - Add comment explaining lack of SQLite forward-compatibility r=mcomella MozReview-Commit-ID: J84s62BsoPJ
mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testBrowserDatabaseHelperUpgrades.java
--- a/mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testBrowserDatabaseHelperUpgrades.java
+++ b/mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testBrowserDatabaseHelperUpgrades.java
@@ -42,16 +42,21 @@ import java.util.ArrayList;
  *   * Copy the current version of the database into (robocop-assets)/browser_db_upgrade/v##.db database. You can do
  * this via Margaret's copy profile addon - take browser.db from the profile directory. This db copy should contain a
  * used profile - e.g. history items, bookmarks. A good way to get a used profile is to sign into sync.
  *   * MAKE SURE YOU COPY YOUR DB FIRST. Then make your changes to the DB schema code.
  *   * Test!
  *   * Note: when the application starts for testing, it may need to upgrade the database from your existing version. If
  * this fails, the application will crash and the test may fail to start.
  *
+ * IMPORTANT:
+ * Test DBs must be created on the oldest version of Android that is currently supported. SQLite
+ * is not forwards compatible. E.g. uploading a DB created on a 6.0 device will cause failures
+ * when robocop tests running on 4.3 are unable to load it.
+ *
  * Implementation inspired by:
  *   http://riggaroo.co.za/automated-testing-sqlite-database-upgrades-android/
  */
 public class testBrowserDatabaseHelperUpgrades extends UITest {
     private static final int TEST_FROM_VERSION = 27; // We only started testing on this version.
 
     private ArrayList<File> temporaryDbFiles;