Commit Graph
315 Commits
Author SHA1 Message Date
Ralph Giles 0207fcff0f Bug 1391427 - Package upstream rust in taskcluster. r=glandium
Add a toolchain job description which calls the
repack_rust.py script to package the requested
upstream build of Rust and its standard libraries
for use in gecko builds.

Links are added to these new toolchains for various build
and analysis tasks as appropriate. The base-toolchain
tasks use an explicitly-versioned toolchain since those
can be different from the current release used for most builds.

The corresponding tooltool manifest entries are removed
now that taskcluster artifact versions are available.
This simplifies the update process since new toolchains
can be packaged and used automatically by just updating
the versions in the task descriptions.

A 'linux64-rust' toolchain can be added to other tasks
as a dependency and artifact. It supports linux64-
hosted builds of Rust code targeting linux64 or linux32.

A 'linux64-rust-macos' toolchain targets linux64-hosted
builds of Rust code targeting macOS on x86_64.

A 'linux64-rust-android' toolchain targets linux64-hosted
builds of Rust code targeting various Android architectures.

Two 'win64-rust' and 'win32-rust' toolchain tasks create
similar entries for Windows-hosted builds. All our automation
builds are hosted on win64, so we could use one artifact
with support for both targets, but currently this doesn't
work because of cross-compilation issues in some crates.
This patch maintains the previous separation between
win32 and win64 rust toolchains until that can be addressed.

MozReview-Commit-ID: GRiJml8CtzO
2017-09-12 16:30:19 -07:00
Makoto Kato ecaa924183 Bug 1350822 - Remove --with-android-gnu-compiler-version. r=glandium
gcc 4.9 is the last version in Android NDK and our minimum requirement of gcc is 4.9+.  --with-android-gnu-compiler-version is unnecessary option because gcc version of Android is always 4.9.

MozReview-Commit-ID: 1sutqlvbQU5
2017-09-20 20:34:18 +09:00
Makoto Kato 23092777f6 Bug 1401448 - Remove libstdc++ support from Android buildconfig. r=froydnj
libstdc++ support is broken after moving to moz.configure.  No one uses this option and NDK will remove GCC, so we should remove this and --with-android-cxx-stl option.

MozReview-Commit-ID: 3mqyHoRCE00
2017-09-20 16:38:48 +09:00
Nathan Froyd 657de43ba1 Bug 1396098 - part 3 - move android builds to new docker image; r=glandium
Now that we have a Docker image with newer library versions on it, we
can move our builds over.  The new images differ from the old
CentOS-based images in two important ways, though:

1) The system compilers in the new image are new enough to be used as
   host compilers; additionally, our CentOS-built GCC compilers will not
   work.  We need to change the Android mozconfigs to reflect that.  We
   also need to change the Android tasks to not depend on the GCC
   toolchain builds.

2) In a similar fashion, we can use the system JDK; we no longer need to
   use the JDK from the Android NDK, which we had packaged up via the
   Android dependencies task.

Both of these changes come with caveats: our l10n repack jobs continue
to run on the CentOS-based images; l10n repacks have not been completely
converted to Taskcluster.  So we need to:

1) Retain the use of our custom GCC toolchain for HOST_CC/HOST_CXX on
   the CentOS-based images.

2) Retain the JDK packages in the tooltool manifests, and referencing
   them when we build on the CentOS-based images.
2017-09-15 15:31:16 -04:00
Gregory Szorc 7495229000 Backed out changesets ef813898b5d3, ce228388aaf6, and c798f482b2c5 (bug 1396098) for violating TC cache constraints
CLOSED TREE
2017-09-18 13:30:43 -07:00
Nathan Froyd 2d2e956178 Bug 1396098 - part 3 - move android builds to new docker image; r=glandium
Now that we have a Docker image with newer library versions on it, we
can move our builds over.  The new images differ from the old
CentOS-based images in two important ways, though:

1) The system compilers in the new image are new enough to be used as
   host compilers; additionally, our CentOS-built GCC compilers will not
   work.  We need to change the Android mozconfigs to reflect that.  We
   also need to change the Android tasks to not depend on the GCC
   toolchain builds.

2) In a similar fashion, we can use the system JDK; we no longer need to
   use the JDK from the Android NDK, which we had packaged up via the
   Android dependencies task.

Both of these changes come with caveats: our l10n repack jobs continue
to run on the CentOS-based images; l10n repacks have not been completely
converted to Taskcluster.  So we need to:

1) Retain the use of our custom GCC toolchain for HOST_CC/HOST_CXX on
   the CentOS-based images.

2) Retain the JDK packages in the tooltool manifests, and referencing
   them when we build on the CentOS-based images.
2017-09-15 15:31:16 -04:00
Jim Chen 0c8cd845b9 Bug 1395688 - Update jsshell for minifying Fennec JS code; r=nalexander
Update the host jsshell, which is used for minifying Fennec JS code, to
the one from the 56 release, so minification works again.

MozReview-Commit-ID: K87XQrAbC9p
2017-09-14 20:46:34 -04:00
Sebastian Hengst f29dffb91c Backed out changeset 6f1782b58101 (bug 1396884) for OS X bustage. r=backout on a CLOSED TREE 2017-09-06 18:27:03 +02:00
Ralph Giles fbc4f5b2c8 Bug 1396884 - Update builders to rust 1.20.0. r=mshal
New upstream stable release.

MozReview-Commit-ID: CTKcQeoNdtv
2017-09-05 08:59:59 -07:00
Johan Lorenzo 9d82d58d34 Bug 1384482 - Rename android-api-15 into android-api-16 r=mtabara
MozReview-Commit-ID: 4j66pTZEJzq
2017-08-09 16:18:15 +02:00
Wander Lairson Costa 6b7f9ef0d1 Bug 1338651 part 1: Change docker image home dir to /build. r=dustin,mshal
Using /home/worker is the build directory has a 30% talos performance
loss, because test machines has a /home mount directory.

MozReview-Commit-ID: 554IPMRWgzK
2017-08-28 08:44:51 -03:00
Ted Mielczarek 0fa55723f7 bug 1259832 - package generated sources and upload them along with other build artifacts. r=gps
This change makes us upload an `$(PKG_BASENAME).generated-files.tar.gz` archive
alongside other build artifacts which contains all the generated source files
from the build. A change after this will introduce an `upload-generated-sources`
task to take this artifact and upload the individual files to an S3 bucket.

This will be used to provide links to generated source files when they appear
in stack traces in crash reports.

MozReview-Commit-ID: 6yQAdlZ5q3O
2017-07-31 12:47:08 -04:00
Chenxia Liu ec314ff769 Bug 1389257 - Set MOZ_ANDROID_POCKET only for nightly, beta, release builds. r=chmanchester
MozReview-Commit-ID: JRgBimDVRa6
2017-08-10 15:36:58 -07:00
Chenxia Liu 9294046c22 Bug 1386906 - Add Pocket keys to build system. r=chmanchester
MozReview-Commit-ID: 8fjcSkn1P7P
2017-08-09 12:11:10 -07:00
Wes Kocher 2d9a484cfa Backed out changeset 59bc932c44ea (bug 1386906) for breaking single locale fennec builds a=bustage
MozReview-Commit-ID: 4z1nq8Z9gnV
2017-08-11 12:30:22 -07:00
Chenxia Liu f294cef014 Bug 1386906 - Add Pocket keys to build system. r=chmanchester
MozReview-Commit-ID: 8fjcSkn1P7P
2017-08-09 12:11:10 -07:00
Carsten "Tomcat" Book 04bf41e22c Backed out changeset ebb30b6d6184 (bug 1380639) on request from sebastian 2017-08-07 13:23:57 +02:00
Sebastian Kaspari b1a2048372 Bug 1380639 - Use Android SDK that includes constraint-layout. r=mcomella
MozReview-Commit-ID: 8V87AMSDoot
2017-08-03 16:36:17 +02:00
Gian-Carlo Pascutto 0c63334040 Bug 1370753 - Add Google API key to Android builds. r=glandium
MozReview-Commit-ID: KDgbZr7ygpk
2017-07-26 12:46:02 +02:00
Nick Alexander 5165bf5c30 Bug 1384695 - Use jcenter and maven.google.com Gradle tooltool archives. r=sebastian
These archives were produced by
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b6d8156b5e765b1a9087ff27902268968ae36df6&selectedJob=118204985,
which will of course expire shortly.

MozReview-Commit-ID: 1op5wdp81vZ
2017-07-26 15:36:54 -07:00
Nick Alexander b9f50cce8a Bug 1384695 - Fetch Android Gradle dependencies from jcenter and maven.google.com. r=sebastian
I took the time to change jcentral (which is just wrong) to jcenter,
which is the tag used in the nexus.xml.

Order matters!  Gradle resolves dependencies in the order given.  That
is, jcenter is preferred to google.

MozReview-Commit-ID: CcWBukhiHa4
2017-07-26 12:03:45 -07:00
Nick Alexander 5f3fb95299 Bug 1376306 - Use new Android SDK and Java 1.8 tooltool toolchains. r=sebastian
MozReview-Commit-ID: 8xwg3bgkBqD
2017-07-27 11:23:30 -07:00
Nick Alexander 70b7340f0a Bug 1376306 - Bootstrap and upload java_home.tar.xz; bump Java to 1.8. r=dustin,sebastian
MozReview-Commit-ID: 3EOsrOp924f
2017-07-25 20:43:14 -07:00
Nick Alexander a714a5922d Bug 1255227 - Part 2: Bootstrap and upload android-sdk-linux.tar.xz. r=dustin,sebastian
Before this patch, we used the Gradle sdk-manager-plugin to download
and install Android SDKs and other dependencies.  This plugin is now
deprecated; the main dependency downloading functionality has been
incorporated into the Android-Gradle build plugin.  Unfortunately,
it's been incorporated into newer versions that in turn require newer
toolchains than we currently support, so we can't use the new
functionality immediately.

Rather than replace sdk-manager-plugin with equivalent Gradle-based
functionality, this ticket uses recently added bootstrap functionality
to bootstrap the Android SDK during the dependencies task.  It then
_uses_ that SDK to run the dependency fetching task, _produces_ an
android-sdk-linux.tar.xz, and then _uploads_ the new artifact as a
private artifact, ready to be pushed into tooltool.  This avoids
engineers building this critical part of the toolchain locally
themselves, and will also feed into ongoing work to push toolchain
artifacts into build jobs in Task Cluster.


MozReview-Commit-ID: B6FC0ugaCef
2017-07-19 15:45:31 -07:00
Nick Alexander 634a14a2ac Bug 1384680 - Generalize GRADLE_MAVEN_REPOSITORY to GRADLE_MAVEN_REPOSITORIES. r=gps,sebastian
I'm confident nobody is configuring this locally, so there's no reason
to keep the existing name (and grow the new semantics) nor to
deprecate the existing name explicitly.

MozReview-Commit-ID: HW3epgwZFpO
2017-07-26 11:28:07 -07:00
Wes Kocher 6ff906b925 Merge inbound to central, a=merge
MozReview-Commit-ID: LIvzHYZ1ar8
2017-07-27 15:44:09 -07:00
Mike Hommey de4d66a6ee No bug - Use l10n tooltool manifest for osx repacks and disable compile environment for android l10n. r=Callek,a=bustage
This should fix the repacks bustage from bugs 1384418, 1384419 and 1384420.
2017-07-28 06:59:30 +09:00
Mike Hommey ee0d1b578e Bug 1384418 - Remove gcc entries from tooltool manifests. r=gps 2017-07-26 15:28:29 +09:00
Mike Hommey 92727f3a46 Bug 1384417 - Remove sccache entries from tooltool manifests. r=gps 2017-07-26 15:05:13 +09:00
maliu c72bb6f3d9 Bug 1316462 - Increase minsdk to 16 and remove EOL notification. r=sebastian, r=snorp, r=rnewman
MozReview-Commit-ID: 7o1xqIqVWC6
2017-07-27 08:27:08 -04:00
Mike Hommey 99fbfae27c Bug 1382502 - Include mozconfig.cache in most cases. r=ted
We want most builds to be actually using sccache, so we include
mozconfig.cache from mozconfig.common. However, since the --with-ccache
configure option doesn't exist on non-compile jobs (e.g. artifact
builds), we move to using the CCACHE environment variable instead, which
allows us to unset it in mozconfig.no-compile.

And since mozconfig.no-compile is always included where no_sccache is
set, we can remove that variable.
2017-07-20 11:07:53 +09:00
Ralph Giles 1741f46105 Bug 1382743 - Update builders to rust 1.19.0. r=mshal
New upstream stable release.

Unions (untagged enums) for (unsafe) interoperability with C.
The `break` keyword can yield an expression value from a `loop`.
Non-capturing closures coerce to function pointers.
Numeric initializers for tuple structs.

MozReview-Commit-ID: 6TMjzXZuBKg
2017-07-20 11:38:13 -07:00
Nick Alexander fe922e4c65 Bug 1382774 - Configure android-gradle-dependencies to use jcenter instead of central. r=sebastian
The nexus.xml included in this patch is the result of starting Nexus
and manually adding the jcenter proxy repository using the Nexus web
administration interface (all in a Docker container).  I know of no
way to do this configuration incrementally without the web interface.
The diff between new and the default generated configuration is a
single new <repository>..</repository> element.

MozReview-Commit-ID: 2Bg5qX41pHB
2017-07-18 17:59:57 -07:00
Sebastian Hengst b5271ea865 Backed out changeset 2bec8580742b (bug 1370753) for breaking Android L10n nightlies. r=backout a=backout
MozReview-Commit-ID: JpJRsrL0r9B
2017-07-14 15:04:53 +02:00
Gian-Carlo Pascutto 5bda835fa6 Bug 1370753 - Add Google API key to Android builds. r=glandium
MozReview-Commit-ID: KDgbZr7ygpk
2017-07-10 16:53:12 +02:00
Ted Mielczarek 80b81a17bb bug 1376593 - update sccache to 69334a26ba65fc88e3934271a2ce6781c51b445e to fix a regression. r=froydnj
MozReview-Commit-ID: E1WQIZ7RLIF
2017-07-05 15:41:45 -04:00
Mike Hommey 01641b3ed9 Bug 1375859 - Build fennec with in-tree zlib. r=snorp 2017-06-28 04:00:41 +09:00
Ted Mielczarek 391dd01036 bug 1357825 - Update sccache to 9155425cfc038d6a60deb50816055f4e93b93ad1. r=mshal
MozReview-Commit-ID: 73YTvhIAKYZ
2017-05-26 12:43:18 -04:00
Justin Wood 91e810dd06 Bug 1372541 - explicitly disable MOZ_INSTALL_TRACKING for l10n, to avoid failures from missing sdk keys, which will all be inherited from en-US anyway. r=ted
MozReview-Commit-ID: 8Iec6BWnPnj
2017-06-13 09:24:26 -04:00
Ralph Giles fc9f5b3594 Bug 1371406 - Update builders to rust 1.18.0. r=mshal
New stable release.

Slightly faster build times, finer-grained 'pub' and better
struct packing.

MozReview-Commit-ID: 5A62HcWbT1S
2017-06-08 13:28:52 -07:00
Nick Thomas 4804471bed Bug 1369551 - Remove unused release mozconfigs for fennec, r=mtabara
* removes old files mobile/android/config/mozconfigs/*/{release,l10n-release}
* updates merge day scripts (did some config dumping to verify, but didn't run migration)
* updates testing/mozharness/configs/single_locale/{staging_,}mozilla-{beta,release}_android-api-15.py to remove bogus mozconfig definition, which now comes from single_locale/tc_android-api-15.py

I could go on and look at configs/multi_locale, which appear to be unused, but I've got to draw a line somewhere.

MozReview-Commit-ID: 2zLYlMj0B9t
2017-06-02 12:20:57 +12:00
Nevin Chen a110ffbac7 Bug 1361664 - Part2. Create MVP Triggers and Deeplinks for Mobile Marketing Automatin. r=maliu
This patch do 6 things. They are related so I put them in the same patch.
1. Extract MmaEvent Name
2. If MMA is diabled, don't send event.
3. Add check before sending 'Set Default Borwser' deep link
4. Add user attribute for delay messaging focus install status.
5. If the user pref off at runtime, we ask Leanplum to stop and prevent our app sending event to Leanplum.
6. Fix proguard. Only keep necceary files.

MozReview-Commit-ID: APEmr1JXBLH
2017-05-17 01:25:45 +08:00
Nick Alexander b1183ef36c Bug 1365089 - Follow-up: Don't require Leanplum SDK secrets for repacks. r=nthomas
The l10n builders don't have the access to secrets that the regular
builders do, so don't expect Leanplum SDK secrets in l10n repacks.

Since MOZ_ANDROID_MMA requires a Leanplum SDK token file, we'd also
need to opt-out of MOZ_ANDROID_MMA in this case.  I interpret this to
show that the update channel is not the right mechanism with which to
enable the Nightly-only MOZ_ANDROID_MMA feature; it's better to just
opt-in for Nightly builds.  This patch does that.

MozReview-Commit-ID: 81WTFjsT7br
2017-05-29 09:48:32 -07:00
Nick Alexander 3d68644fd2 Bug 1365089 - Add MOZ_ANDROID_MMA and --with-leanplum-sdk-keyfile to configure. r=chmanchester
This is the equivalent of MOZ_INSTALL_TRACKING, but for MMA (Mobile
Marketing Automation) using the Leanplum SDK.

To test this locally, add lines like:

export MOZ_ANDROID_MMA=1
ac_add_options --with-adjust-sdk-keyfile=/path/to/adjust-sdk-developer.token

MOZ_ANDROID_MMA depends on MOZ_NATIVE_DEVICES and MOZ_ANDROID_GCM,
since Leanplum requires Google Play Services library that those flags
are a proxy for and enable, respectiviely.

We want to enable MOZ_ANDROID_MMA in Nightly, but only for
MOZILLA_OFFICIAL builds.  Since MOZILLA_OFFICIAL is still defined in
old-configure.in, we can't interrogate it in
mobile/android/moz.configure, and therefore we enable using the
automation mozconfigs.

MozReview-Commit-ID: 1tiToeyH5Hx
2017-05-26 12:31:20 -07:00
Sebastian Hengst 112c0f0b5a Backed out changeset 9c7688e54e92 (bug 1365089) for breaking Android L10n nightlies. r=backout a=backout
MozReview-Commit-ID: FxH7nBskSNj
2017-05-28 16:53:10 +02:00
Nick Alexander abe08b75ec Bug 1365089 - Add MOZ_ANDROID_MMA and --with-leanplum-sdk-keyfile to configure. r=chmanchester
This is the equivalent of MOZ_INSTALL_TRACKING, but for MMA (Mobile
Marketing Automation) using the Leanplum SDK.

To test this locally, add lines like:

export MOZ_ANDROID_MMA=1
ac_add_options --with-adjust-sdk-keyfile=/path/to/adjust-sdk-developer.token

MOZ_ANDROID_MMA depends on MOZ_NATIVE_DEVICES and MOZ_ANDROID_GCM,
since Leanplum requires Google Play Services library that those flags
are a proxy for and enable, respectiviely.

We want to enable MOZ_ANDROID_MMA in Nightly, but only for
MOZILLA_OFFICIAL builds.  Since MOZILLA_OFFICIAL is still defined in
old-configure.in, we can't interrogate it in
mobile/android/moz.configure, and therefore we enable using the
automation mozconfigs.

MozReview-Commit-ID: 1tiToeyH5Hx
2017-05-26 12:31:20 -07:00
Jim Chen c51f50cf3a Bug 1366404 - Add AArch64 Nightly build; r=nalexander r=dustin
Add configurations for building and uploading AArch64 Nightly builds, in
tier 1 and without artifact support for now.

As for not denoting AArch64 builds as "api-21", I don't really think we
will split AArch64 the way we split ARMv7 before.  Originally, we split
into API 9 and API 11+ because of lots of "constrained" devices that
were stuck with API 9. We made an API 9 APK in order to lower our
footprint on those devices. That probably will not be a problem for
AArch64, because devices with API 21+ and AArch64 support are usually
more than capable for running Fennec. Secondly, it was a big change for
Android going from API 9 to API 11+, so we saved quite a bit of
code/resources when we stripped out API 11+.  I don't see such drastic
changes going from API 21 to upcoming versions, so even if we did split,
I don't think it'll get us much benefit.

MozReview-Commit-ID: 7N7Slv1pPgb
2017-05-25 16:53:33 -04:00
Ben Hearsum 49c4a92bff bug 1357808: switch mozilla-central fennec builds to org.mozilla.fennec_aurora id and add new builds for org.mozilla.fennec. r=aki,sylvestre,jlorenzo a=dawn 2017-05-24 15:27:40 -04:00
Ben Hearsum 37825844b8 Backout bug 1357808 for android mochitest bustage. 2017-05-24 12:32:03 -04:00
Ben Hearsum 29c15d74d2 bug 1357808: switch mozilla-central fennec builds to org.mozilla.fennec_aurora id and add new builds for org.mozilla.fennec. r=aki,sylvestre,jlorenzo a=dawn 2017-05-24 10:40:07 -04:00