Commit Graph
37 Commits
Author SHA1 Message Date
Wander Lairson Costa e94d53d7f2 Bug 1223950: Fix branch name for balrog publishing. r=nthomas 2015-11-11 21:58:15 -02:00
Alexandre Lissy c45b63e8df Bug 1201540 - Add support for multiple OTA/FOTA types. r=catlee
B2G updates can be of multiple types:
 - OTA, applied without rebooting the device,
 - FOTA with only Gecko/Gaia,
 - FOTA with whole system partition files,
 - FOTA dumping partitions images.

Each type of updates has its advantages and drawbacks. There is an
extensive documentation maintained on MDN about each and the options:
https://developer.mozilla.org/en-US/Firefox_OS/Building_and_installing_Firefox_OS/Firefox_OS_update_packages

All those updates are being packaged as a MAR file that gets injected
into the classical Firefox update mechanism, submitted to Balrog and
downloaded by the client. The content of the MAR will however depend on
the type of update: an OTA update will packate a Gecko and Gaia set of
files to update those parts; while any FOTA package is just an
update.zip that will get applied in recovery mode on the device.

So one fundamental difference is that OTA will not reboot your device
(just Gecko) while FOTA requires a working recovery mode and will reboot
your device. But OTA needs more system partition space to get applied,
and it can only update files that are within the /system/b2g/ directory.
FOTA on the other hand can update anything since the payload will
contain an update script written in Edify (Android recovery update
scripting language).

For each device we might need to produce several types of updates that
will be pushed to users depending on the context: for some users we want
to push just a Gecko/Gaia update, for some we know that we need to
update more content and thus we need to send some partitions.
Previously, the b2g_build.py script would only allow one kind of update
payload to be produced for each device available: we would need to have
a device "flame-kk-ota" and "flame-kk-fota" just to produce the OTA and
FOTA packages for the same device, thus resulting in a waste of
computing power and storage.

This commit introduces a new field "update_types" that can take an array
of values:
 - ota, to produce an OTA package as before
 - fota, to produce a FOTA package with only Gecko/Gaia
 - fota:full, to produce a FOTA package of all files of the system
   partition
 - fota:fullimg, to produce a FOTA package dumping partitions

The old "update_type" will be used in the absence of "update_types". And
if none are present, we will keep defaulting to generating OTA as
previously.
2015-11-03 10:25:00 +01:00
Alexandre Lissy 3bb3d42877 Bug 1221645 - Make Nexus 4 KK and Nexus 5 L full images public. r=wcosta 2015-11-04 11:51:00 +01:00
Wander Lairson Costa 5631a7aebf Backout "Bug 1144808 part 2: Harden phone-builder image."
Things just got too hard for B2G people to change build scripts, so we
are backing out this.
2015-10-28 11:17:58 -02:00
Wander Lairson Costa df1634ab75 Bug 1144808 part 2: Harden phone-builder image. r=garndt
We don't run free commands from tasks, we now allow only scripts shipped
in the phone-builder image.

We also added support to an allowed whitelist of github and bitbucket
users to run tasks from their respective private repositories.
2015-10-22 11:40:22 -02:00
Wander Lairson Costa babc28b546 Bug 1210467: Exit script if aws fails to list backup file. r=garndt
Make a dummy call to aws client to make sure credentials are ok.
2015-10-02 11:30:08 -03:00
Wander Lairson Costa 184b2f8c45 Backed out changeset 19db5133d27c 2015-10-01 16:10:16 -03:00
Wander Lairson Costa 4118b78e67 Bug 1210467: Exit script if aws fails to list backup file. r=garndt
As the aws command line tool call is piped, its status is lost, but the
net result is an empty variable assigment. We take advantage of this to
detect errors in the aws tool.
2015-10-01 15:29:46 -03:00
Wander Lairson Costa fdfc878160 backout 9ea9e4a8a729 because it breaks nexus builds. 2015-09-29 09:10:20 -03:00
Wander Lairson Costa 3327815dc9 Bug 1207986 part 3: Exit script if aws fails to list backup file. r=garndt
As the aws command line tool call is piped, its status is lost, but the
net result is an empty variable assigment. We take advantage of this to
detect errors in the aws tool.
2015-09-29 07:28:04 -03:00
Alexandre Lissy d15dab7a90 Bug 1206379 - Fix blobfree distribution collect for nexus-5-l. r=wcosta 2015-09-22 04:13:00 +02:00
Edgar Chen d0273fe58b Bug 1205934 - Switch Taskcluster Dolphin builds to in-tree mozharness. r=wcosta 2015-09-18 10:44:51 +08:00
Wander Lairson Costa ae3de59727 Bug 1201179: Use custom branch gecko objdir for emulator and phone builds. r=garndt
Messing up with shared cached object directories for different branches
often triggers build bustage. Make the object directory unique for each
branch.
2015-09-10 11:40:21 -03:00
Carsten "Tomcat" Book 201b7ecb33 Backed out 1 changesets (bug 1201179) for bustage on a CLOSED TREE
Backed out changeset aa3cbda42b11 (bug 1201179)
2015-09-10 14:25:24 +02:00
Wander Lairson Costa 440d5e105e Bug 1201179: Use custom branch gecko objdir for emulator and phone builds. r=garndt
Messing up with shared cached object directories for different branches
often triggers build bustage. Make the object directory unique for each
branch.
2015-09-09 11:28:06 -03:00
Wander Lairson Costa 396c77e24d Bug 1175934 part 2: Support blobfree images.
When we ./build.sh blobfree, we have a new zip file called
<target>.blobfree-dist.zip which contains a blobfree image. We copy this
file to public artifact.

We also refactor the build scripts a little bit to deduplicate the post
build code.
2015-07-31 17:24:46 -03:00
Wander Lairson Costa 3bfcc89b28 Bug 1187706 part 3: Small optimization on repo cloning. r=garndt
checkout-gecko already clones gecko, tell mozharness to clone from it.
2015-07-26 15:58:57 -03:00
Wander Lairson Costa 53a3ebf680 Bug 1187706 part 1: Switch B2G builds to in tree mozharness. r=garndt
Mozharness now lives inside gecko tree, so switch B2G builds to use it.
2015-07-26 15:58:57 -03:00
Wander Lairson Costa ad08941a6b Bug 1173507: Avoid cache bustage. r=garndt
As we cache binaries, this might end up resulting wildcard copies
expanding to more than one file, causing the task to fail.
2015-06-11 06:04:25 -03:00
Wander Lairson Costa 83fbf9b86f Bug 1173328: Dogfood builds always have "aries" as the platform name. r=garndt a=garndt
For dogfood builds, the variant doesn't play a role in the platform
name.
2015-06-10 10:38:37 -03:00
Wander Lairson Costa 2a252ac40c Bug 1164194: Get rid of all spark specific files. r=garndt a=garndt
Spark now can be built from main gaia repository, so we don't need to
keep specific spark build scripts. The small differences are now handled
through environment variables.
2015-06-09 15:26:23 -03:00
Wander Lairson Costa 80987cb9df Bug 1164212: Add aries dogfood build task. r=garndt a=patch 2015-06-01 14:17:49 -03:00
Wander Lairson Costa 242f772b30 Bug 1166745: Reorganize tasks.
- Rename nightly -> ota.
- Rename lightsaber -> spark.
- Add flame kk debug tasks.
- Add aries build tasks in treeherder.
- Add aries to try.
- Add fx-team and inbound tasks.
- Only run OTA build on m-c.
2015-05-28 15:21:40 -03:00
Wander Lairson Costa f8d34371b9 Bug 1167266: Test if the symbol file exists before moving to artifacts. CLOSED TREE
For some reason mozharness is not moving symbols file to upload dir.
This makes the task fail. We test for the file existence.
2015-05-22 10:20:26 -03:00
Wander Lairson Costa f4cd4bcb9a Bug 1148630: Add support for upload symbols from docker image. 2015-05-20 18:18:13 -03:00
Wander Lairson Costa aea290bec7 Bug 1164939: Use flame instead of flame-kk for platform name. CLOSED TREE
We (I) broke flame OTA updates because we used the target name as the
platform name. flame and flame-kk must use "flame" as the platform name.
2015-05-18 21:01:41 -03:00
Wander Lairson Costa ba2663485d Bug 1164939: Provide flame-kk user, userdebug and eng builds. 2015-05-17 10:14:08 -03:00
Aus Lacroix 15334ff500 bug 1156816 - Fix scopes for aws-provisioner. Switch nightly builds to production balrog. r=garndt 2015-05-07 16:02:29 -07:00
Wander Lairson Costa e5bd564bfc Bug 1154947 part 3: Add aries nightly user, userdebug and eng builds. 2015-04-30 16:26:38 -03:00
Kai-Zhen Li 9dbfbf3020 Bug 1144463 - Correct execute permission of build-dolphin and update the cache path. r=wcosta 2015-04-24 00:18:40 +08:00
Wander Lairson Costa cd67ef338c Bug 1134226: Add lightsaber nightly builds. 2015-04-14 20:16:01 -03:00
Kai-Zhen Li 0beb0bb17e Bug 1144463 - Add dolphin-512 and update docker. r=jlal,wcosta 2015-04-01 00:09:01 +08:00
Wander Lairson Costa 8c9567c2a0 Bug 1119387 part 3: Add option to specify mozharness branch.
Allow the user to specify the mozharness branch to use
through the option --mozharness-ref.
2015-03-25 14:25:27 -03:00
Wander Lairson Costa 2647207e38 Bug 1119387 part 2: Add flame nightly build script.
This will build flame and upload the results to ftp, balrog and symbol
server.
2015-03-25 14:25:27 -03:00
Wander Lairson Costa ed6ec62417 Bug 1119387 part 1: Move basic build setup to a separate script.
In order to avoid code duplication for additional builds, we move the
basic build setup to a common script.
2015-03-25 14:25:27 -03:00
Gregory Arndt f5b3d54c9b Bug 1143059 - Update artifact location r=lightsofapollo 2015-03-16 17:32:17 -07:00
Wander Lairson Costa 19b02aaecd Bug 1137820 part 3: Move phone builder scripts to gecko tree.
This avoids we have to generate a new image each time the build scripts
change.
2015-03-12 07:13:54 -03:00