Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
bug 1357808: switch mozilla-central fennec builds to org.mozilla.fenn…
Browse files Browse the repository at this point in the history
…ec_aurora id and add new builds for org.mozilla.fennec. r=aki,sylvestre,jlorenzo a=dawn
  • Loading branch information
bhearsum committed May 24, 2017
1 parent e07d9b0 commit f3aa77f
Show file tree
Hide file tree
Showing 41 changed files with 222 additions and 22 deletions.
8 changes: 6 additions & 2 deletions mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -1110,10 +1110,14 @@ public void onBackPressed() {

@Override
public void onAttachedToWindow() {
final SafeIntent intent = new SafeIntent(getIntent());

// We can't show the first run experience until Gecko has finished initialization (bug 1077583).
checkFirstrun(this, new SafeIntent(getIntent()));
checkFirstrun(this, intent);

DawnHelper.conditionallyNotifyDawn(this);
if (!IntentUtils.getIsInAutomationFromEnvironment(intent)) {
DawnHelper.conditionallyNotifyDawn(this);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

MOZ_APP_DISPLAYNAME="Firefox Nightly"
ANDROID_PACKAGE_NAME=org.mozilla.fennec_aurora
MOZ_APP_DISPLAYNAME=Nightly
ANDROID_PACKAGE_NAME=org.mozilla.fennec
MOZ_UPDATER=1
MOZ_ANDROID_ANR_REPORTER=1
MOZ_ANDROID_SHARED_ID=org.mozilla.fennec.sharedID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!ENTITY brandShortName "Firefox Nightly">
<!ENTITY brandFullName "Mozilla Firefox Nightly">
<!ENTITY vendorShortName "Mozilla">
<!ENTITY brandShortName "Nightly">
<!ENTITY brandFullName "Mozilla Nightly">
<!ENTITY vendorShortName "Mozilla">
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
. "$topsrcdir/mobile/android/config/mozconfigs/common"

ac_add_options --enable-profiling


# Android
ac_add_options --with-android-min-sdk=15
ac_add_options --target=arm-linux-androideabi

ac_add_options --with-branding=mobile/android/branding/aurora
ac_add_options --with-branding=mobile/android/branding/nightly-old-id

# This will overwrite the default of stripping everything and keep the symbol table.
# This is useful for profiling with eideticker. See bug 788680
Expand Down
17 changes: 17 additions & 0 deletions mobile/android/config/mozconfigs/android-x86/nightly-old-id
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
. "$topsrcdir/mobile/android/config/mozconfigs/common"

ac_add_options --target=i386-linux-android
ac_add_options --with-android-min-sdk=15



ac_add_options --with-branding=mobile/android/branding/nightly-old-id

# This will overwrite the default of stripping everything and keep the symbol table.
# This is useful for profiling with eideticker. See bug 788680
STRIP_FLAGS="--strip-debug"

export MOZILLA_OFFICIAL=1
export MOZ_TELEMETRY_REPORTING=1

. "$topsrcdir/mobile/android/config/mozconfigs/common.override"
15 changes: 14 additions & 1 deletion old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -5087,7 +5087,20 @@ if test -z "$MOZ_APP_VERSION_DISPLAY"; then
fi

if test -z "$ANDROID_PACKAGE_NAME" ; then
ANDROID_PACKAGE_NAME="org.mozilla.$MOZ_APP_NAME"
# When we got rid of the Aurora channel we decided to replace the old
# Nightly ANDROID_PACKAGE_NAME with Aurora. To make sure this is inherited
# by all mozilla-central based branches we make this the new "default"
# for Fennec. Non mozilla-central based branches set ANDROID_PACKAGE_NAME
# in their mozconfig, so they will never get this. If there are ever
# non-Fennec builds for Android, they will fall into the else block
# and use their own default name.
# https://bugzilla.mozilla.org/show_bug.cgi?id=1357808 has additional
# background on this.
if test "$MOZ_APP_NAME" = "fennec"; then
ANDROID_PACKAGE_NAME="org.mozilla.fennec_aurora"
else
ANDROID_PACKAGE_NAME="org.mozilla.$MOZ_APP_NAME"
fi
fi

# Mozilla released Firefox for Android {Release,Beta} and {Aurora,Nightly} to
Expand Down
108 changes: 108 additions & 0 deletions taskcluster/ci/build/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,114 @@ android-api-15-nightly/opt:
custom-build-variant-cfg: api-15
tooltool-downloads: internal

android-x86-old-id/opt:
description: "Android 4.2 x86 Opt OldId"
index:
product: mobile
job-name: android-x86-old-id-opt
treeherder:
platform: android-4-2-x86-old-id/opt
symbol: tc(B)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
implementation: docker-worker
max-run-time: 7200
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: x86-old-id
tooltool-downloads: internal
run-on-projects: [ 'mozilla-central' ]

android-x86-old-id-nightly/opt:
description: "Android 4.2 x86 OldId Nightly"
attributes:
nightly: true
index:
product: mobile
job-name: android-x86-old-id-opt
type: nightly
treeherder:
platform: android-4-2-x86-old-id/opt
symbol: tc(N)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
implementation: docker-worker
max-run-time: 7200
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
- taskcluster_nightly.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: x86-old-id
tooltool-downloads: internal
run-on-projects: [ 'mozilla-central' ]

android-api-15-old-id/opt:
description: "Android 4.0 API15+ Opt OldId"
index:
product: mobile
job-name: android-api-15-old-id-opt
treeherder:
platform: android-4-0-armv7-api15-old-id/opt
symbol: tc(B)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
implementation: docker-worker
max-run-time: 7200
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: api-15-old-id
tooltool-downloads: internal
run-on-projects: [ 'mozilla-central' ]

android-api-15-old-id-nightly/opt:
description: "Android 4.0 API15+ OldId Nightly"
attributes:
nightly: true
index:
product: mobile
job-name: android-api-15-old-id-opt
type: nightly-with-multi-l10n
treeherder:
platform: android-4-0-armv7-api15-old-id/opt
symbol: tc(N)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
implementation: docker-worker
max-run-time: 7200
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
- taskcluster_nightly.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: api-15-old-id
tooltool-downloads: internal
run-on-projects: [ 'mozilla-central' ]

android-api-15-gradle/opt:
description: "Android 4.0 API15+ (Gradle) Opt"
index:
Expand Down
1 change: 1 addition & 0 deletions taskcluster/ci/push-apk-breakpoint/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
tier: 2
kind: other
run-on-projects:
- mozilla-central
- mozilla-beta
- mozilla-release
deadline-after: 5 days
1 change: 1 addition & 0 deletions taskcluster/ci/push-apk/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
tier: 2
kind: other
run-on-projects:
- mozilla-central
- mozilla-beta
- mozilla-release
deadline-after: 5 days
2 changes: 2 additions & 0 deletions taskcluster/ci/upload-symbols/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ only-for-build-platforms:
- linux-nightly/opt
- android-api-15/opt
- android-api-15-nightly/opt
- android-api-15-old-id-nightly/opt
- android-x86-nightly/opt
- android-x86-old-id-nightly/opt
- macosx64-nightly/opt
- win64-nightly/opt

Expand Down
5 changes: 4 additions & 1 deletion taskcluster/taskgraph/loader/push_apk.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def get_dependent_loaded_tasks(config, loaded_tasks):
)
android_tasks = [
task for task in tasks_with_matching_kind
if task.attributes.get('build_platform', '').startswith('android')
# old-id builds are not shipped through the Play store, so we don't
# want them as dependencies.
if task.attributes.get('build_platform', '').startswith('android') \
and 'old-id' not in task.attributes.get('build_platform', '')
]

return android_tasks
3 changes: 2 additions & 1 deletion taskcluster/taskgraph/target_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ def target_tasks_nightly_fennec(full_task_graph, parameters):
and, eventually, uploading the tasks to balrog."""
def filter(task):
platform = task.attributes.get('build_platform')
if platform in ('android-api-15-nightly', 'android-x86-nightly', 'android-nightly'):
if platform in ('android-api-15-nightly', 'android-x86-nightly', 'android-nightly',
'android-api-15-old-id-nightly', 'android-x86-old-id-nightly'):
if not task.attributes.get('nightly', False):
return False
return filter_for_project(task, parameters)
Expand Down
9 changes: 9 additions & 0 deletions taskcluster/taskgraph/transforms/beetmover.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@
'linux-devedition-nightly': _DESKTOP_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US,
'android-x86-nightly': _MOBILE_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US,
'android-api-15-nightly': _MOBILE_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US,
'android-x86-old-id-nightly': _MOBILE_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US,
'android-api-15-old-id-nightly': _MOBILE_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US,
'macosx64-nightly': _DESKTOP_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US,

'linux64-nightly-l10n': _DESKTOP_UPSTREAM_ARTIFACTS_UNSIGNED_L10N,
'linux-nightly-l10n': _DESKTOP_UPSTREAM_ARTIFACTS_UNSIGNED_L10N,
'android-x86-nightly-multi': _MOBILE_UPSTREAM_ARTIFACTS_UNSIGNED_MULTI,
'android-x86-old-id-nightly-multi': _MOBILE_UPSTREAM_ARTIFACTS_UNSIGNED_MULTI,
'android-api-15-nightly-l10n': ["balrog_props.json"],
'android-api-15-nightly-multi': _MOBILE_UPSTREAM_ARTIFACTS_UNSIGNED_MULTI,
'android-api-15-old-id-nightly-multi': _MOBILE_UPSTREAM_ARTIFACTS_UNSIGNED_MULTI,
'macosx64-nightly-l10n': _DESKTOP_UPSTREAM_ARTIFACTS_UNSIGNED_L10N,
}
UPSTREAM_ARTIFACT_SIGNED_PATHS = {
Expand All @@ -135,6 +139,8 @@
],
'android-x86-nightly': ["en-US/target.apk"],
'android-api-15-nightly': ["en-US/target.apk"],
'android-x86-old-id-nightly': ["en-US/target.apk"],
'android-api-15-old-id-nightly': ["en-US/target.apk"],
'macosx64-nightly': _DESKTOP_UPSTREAM_ARTIFACTS_SIGNED_EN_US + [
"target.dmg",
"target.dmg.asc",
Expand All @@ -149,12 +155,15 @@
"target.tar.bz2.asc",
],
'android-x86-nightly-multi': ["target.apk"],
'android-x86-old-id-nightly-multi': ["target.apk"],
'android-api-15-nightly-l10n': ["target.apk"],
'android-api-15-nightly-multi': ["target.apk"],
'android-api-15-old-id-nightly-multi': ["target.apk"],
'macosx64-nightly-l10n': _DESKTOP_UPSTREAM_ARTIFACTS_SIGNED_L10N + [
"target.dmg",
"target.dmg.asc",
],

}

# Voluptuous uses marker objects as dictionary *keys*, but they are not
Expand Down
2 changes: 2 additions & 0 deletions taskcluster/taskgraph/transforms/gecko_v2_whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
'android-api-15-gradle-dependencies-opt',
'android-api-15-gradle-opt',
'android-api-15-opt',
'android-api-15-old-id-opt',
'android-x86-opt',
'android-x86-old-id-opt',
'browser-haz-debug',
'linux-debug',
'linux-devedition',
Expand Down
23 changes: 13 additions & 10 deletions taskcluster/taskgraph/util/scriptworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@
"""
BALROG_CHANNEL_SCOPES = {
'nightly': [
'project:releng:balrog:channel:nightly'
'project:releng:balrog:channel:nightly',
'project:releng:balrog:channel:nightly-old-id',
'project:releng:balrog:channel:aurora'
],
'aurora': [
'project:releng:balrog:channel:aurora'
Expand All @@ -190,14 +192,15 @@
'project:releng:balrog:channel:esr-cdntest'
],
'default': [
'project:releng:balrog:channel:nightly'
'project:releng:balrog:channel:nightly',
'project:releng:balrog:channel:nightly-old-id',
'project:releng:balrog:channel:aurora'
'project:releng:balrog:channel:beta',
'project:releng:balrog:channel:beta-localtest',
'project:releng:balrog:channel:beta-cdntest'
'project:releng:balrog:channel:beta-cdntest',
'project:releng:balrog:channel:release',
'project:releng:balrog:channel:release-localtest',
'project:releng:balrog:channel:release-cdntest'
'project:releng:balrog:channel:release-cdntest',
'project:releng:balrog:channel:esr',
'project:releng:balrog:channel:esr-localtest',
'project:releng:balrog:channel:esr-cdntest'
Expand All @@ -206,8 +209,8 @@


PUSH_APK_SCOPE_ALIAS_TO_PROJECT = [[
'aurora', set([
'mozilla-aurora',
'central', set([
'mozilla-central',
])
], [
'beta', set([
Expand All @@ -221,29 +224,29 @@


PUSH_APK_SCOPES = {
'aurora': 'project:releng:googleplay:aurora',
'central': 'project:releng:googleplay:aurora',
'beta': 'project:releng:googleplay:beta',
'release': 'project:releng:googleplay:release',
'default': 'project:releng:googleplay:invalid',
}

# See https://github.com/mozilla-releng/pushapkscript#aurora-beta-release-vs-alpha-beta-production
PUSH_APK_GOOGLE_PLAY_TRACT = {
'aurora': 'beta',
'central': 'alpha',
'beta': 'rollout',
'release': 'rollout',
'default': 'invalid',
}

PUSH_APK_BREAKPOINT_WORKER_TYPE = {
'aurora': 'aws-provisioner-v1/taskcluster-generic',
'central': 'aws-provisioner-v1/taskcluster-generic',
'beta': 'null-provisioner/human-breakpoint',
'release': 'null-provisioner/human-breakpoint',
'default': 'invalid/invalid',
}

PUSH_APK_DRY_RUN_OPTION = {
'aurora': False,
'central': True,
'beta': False,
'release': False,
'default': True,
Expand Down
Loading

0 comments on commit f3aa77f

Please sign in to comment.