Bug 1466222 - Cleanup handling of en_us_binary_url. r=catlee

for "Cleanup l10n mozharness config files." (Batch 2)

Differential Revision: https://phabricator.services.mozilla.com/D1549

--HG--
extra : rebase_source : c8dc28990e0511caf0b8c19476c30139efaf28da
This commit is contained in:
Justin Wood 2018-06-04 20:52:46 -04:00
Родитель 8f16d8aa86
Коммит 87fb0d08fb
27 изменённых файлов: 20 добавлений и 92 удалений

Просмотреть файл

@ -1,27 +1,8 @@
# This configuration uses mozilla-central binaries (en-US, localized complete
# mars) and urls but it generates 'alder' artifacts. With this setup, binaries
# generated on alder are NOT overwriting mozilla-central files.
# Using this configuration, on a successful build, artifacts will be uploaded
# here:
#
# * http://dev-stage01.srv.releng.scl3.mozilla.com/pub/mozilla.org/firefox/nightly/latest-alder-l10n/
# (in staging environment)
# * https://ftp.mozilla.org/pub/firefox/nightly/latest-alder-l10n/
# (in production environment)
#
# If you really want to have localized alder builds, use the use the following
# values:
# * "en_us_binary_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/alder-%(platform)s/latest/",
# * "mar_tools_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/alder-%(platform)s/latest/",
# * "repo": "https://hg.mozilla.org/projects/alder",
#
import os
config = {
"nightly_build": True,
"branch": "alder",
"en_us_binary_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/",
"update_channel": "nightly",
# l10n

Просмотреть файл

@ -1,27 +1,8 @@
# This configuration uses mozilla-central binaries (en-US, localized complete
# mars) and urls but it generates 'ash' artifacts. With this setup, binaries
# generated on ash are NOT overwriting mozilla-central files.
# Using this configuration, on a successful build, artifacts will be uploaded
# here:
#
# * http://dev-stage01.srv.releng.scl3.mozilla.com/pub/mozilla.org/firefox/nightly/latest-ash-l10n/
# (in staging environment)
# * https://ftp.mozilla.org/pub/firefox/nightly/latest-ash-l10n/
# (in production environment)
#
# If you really want to have localized ash builds, use the use the following
# values:
# * "en_us_binary_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/ash-%(platform)s/latest/",
# * "mar_tools_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/ash-%(platform)s/latest/",
# * "repo": "https://hg.mozilla.org/projects/ash",
#
import os
config = {
"nightly_build": True,
"branch": "ash",
"en_us_binary_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/",
"update_channel": "nightly",
# l10n

Просмотреть файл

@ -1,8 +1,9 @@
import os
BRANCH = "ash"
MOZ_UPDATE_CHANNEL = "nightly"
MOZILLA_DIR = BRANCH
OBJDIR = "obj-firefox"
EN_US_BINARY_URL = "http://archive.mozilla.org/pub/mobile/nightly/latest-%s-android-api-16/en-US" % BRANCH
HG_SHARE_BASE_DIR = "/builds/hg-shared"
config = {
@ -27,7 +28,7 @@ config = {
# so ugly, bug 951238
"LD_LIBRARY_PATH": "/lib:/tools/gcc-4.7.2-0moz1/lib:/tools/gcc-4.7.2-0moz1/lib64",
"MOZ_OBJDIR": OBJDIR,
"EN_US_BINARY_URL": EN_US_BINARY_URL,
"EN_US_BINARY_URL": os.environ['EN_US_BINARY_URL'],
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
},
"upload_branch": "%s-android-api-16" % BRANCH,

Просмотреть файл

@ -3,7 +3,6 @@ import os
config = {
"nightly_build": True,
"branch": "mozilla-central",
"en_us_binary_url": "http://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central",
"update_channel": "nightly",
# l10n

Просмотреть файл

@ -4,7 +4,6 @@ BRANCH = "autoland"
MOZ_UPDATE_CHANNEL = "nightly"
MOZILLA_DIR = BRANCH
OBJDIR = "obj-firefox"
EN_US_BINARY_URL = "http://archive.mozilla.org/pub/mobile/nightly/latest-%s-android-api-16/en-US" % BRANCH
HG_SHARE_BASE_DIR = "/builds/hg-shared"
config = {
@ -29,7 +28,7 @@ config = {
# so ugly, bug 951238
"LD_LIBRARY_PATH": "/lib:/tools/gcc-4.7.2-0moz1/lib:/tools/gcc-4.7.2-0moz1/lib64",
"MOZ_OBJDIR": OBJDIR,
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
},
"upload_branch": "%s-android-api-16" % BRANCH,

Просмотреть файл

@ -3,7 +3,6 @@ import os
config = {
"nightly_build": True,
"branch": "jamun",
"en_us_binary_url": "http://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central",
"update_channel": "nightly-jamun",
# l10n

Просмотреть файл

@ -2,7 +2,6 @@ import os
BRANCH = "jamun"
MOZILLA_DIR = BRANCH
EN_US_BINARY_URL = None # No build has been uploaded to archive.m.o
config = {
"branch": BRANCH,
@ -26,7 +25,7 @@ config = {
# so ugly, bug 951238
"LD_LIBRARY_PATH": "/lib:/tools/gcc-4.7.2-0moz1/lib:/tools/gcc-4.7.2-0moz1/lib64",
"MOZ_OBJDIR": "obj-firefox",
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_UPDATE_CHANNEL": "nightly-jamun",
},
"upload_branch": "%s-android-api-16" % BRANCH,

Просмотреть файл

@ -2,8 +2,6 @@ import os
BRANCH = "maple"
MOZILLA_DIR = BRANCH
EN_US_BINARY_URL = "http://archive.mozilla.org/pub/" \
"mobile/nightly/latest-maple-android-api-16/en-US"
config = {
"branch": BRANCH,
@ -27,7 +25,7 @@ config = {
# so ugly, bug 951238
"LD_LIBRARY_PATH": "/lib:/tools/gcc-4.7.2-0moz1/lib:/tools/gcc-4.7.2-0moz1/lib64",
"MOZ_OBJDIR": "obj-firefox",
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_UPDATE_CHANNEL": "nightly-maple",
},
"upload_branch": "%s-android-api-16" % BRANCH,

Просмотреть файл

@ -3,7 +3,6 @@ import os
config = {
"nightly_build": True,
"branch": "mozilla-aurora",
"en_us_binary_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/",
"update_channel": "aurora",
# l10n

Просмотреть файл

@ -4,7 +4,6 @@ BRANCH = "mozilla-aurora"
MOZ_UPDATE_CHANNEL = "aurora"
MOZILLA_DIR = BRANCH
OBJDIR = "obj-firefox"
EN_US_BINARY_URL = "http://archive.mozilla.org/pub/mobile/nightly/latest-%s-android-api-16/en-US" % BRANCH
HG_SHARE_BASE_DIR = "/builds/hg-shared"
config = {
@ -29,7 +28,7 @@ config = {
# so ugly, bug 951238
"LD_LIBRARY_PATH": "/lib:/tools/gcc-4.7.2-0moz1/lib:/tools/gcc-4.7.2-0moz1/lib64",
"MOZ_OBJDIR": OBJDIR,
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
},
"upload_branch": "%s-android-api-16" % BRANCH,

Просмотреть файл

@ -3,7 +3,6 @@ import os
config = {
"nightly_build": True,
"branch": "mozilla-beta",
"en_us_binary_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-beta/",
"update_channel": "beta",
# l10n

Просмотреть файл

@ -29,7 +29,7 @@ config = {
"repack_env": {
# so ugly, bug 951238
"LD_LIBRARY_PATH": "/lib:/tools/gcc-4.7.2-0moz1/lib:/tools/gcc-4.7.2-0moz1/lib64",
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_OBJDIR": OBJDIR,
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
},

Просмотреть файл

@ -1,7 +1,6 @@
config = {
"nightly_build": True,
"branch": "mozilla-beta",
"en_us_binary_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-beta/",
"update_channel": "aurora", # devedition uses aurora based branding
# l10n

Просмотреть файл

@ -3,7 +3,6 @@ import os
config = {
"nightly_build": True,
"branch": "mozilla-central",
"en_us_binary_url": "http://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central",
"update_channel": "nightly",
# l10n

Просмотреть файл

@ -4,7 +4,6 @@ BRANCH = "mozilla-central"
MOZ_UPDATE_CHANNEL = "nightly"
MOZILLA_DIR = BRANCH
OBJDIR = "obj-firefox"
EN_US_BINARY_URL = "http://archive.mozilla.org/pub/mobile/nightly/latest-%s-android-api-16/en-US" % BRANCH
HG_SHARE_BASE_DIR = "/builds/hg-shared"
config = {
@ -29,7 +28,7 @@ config = {
# so ugly, bug 951238
"LD_LIBRARY_PATH": "/lib:/tools/gcc-4.7.2-0moz1/lib:/tools/gcc-4.7.2-0moz1/lib64",
"MOZ_OBJDIR": OBJDIR,
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
},
"upload_branch": "%s-android-api-16" % BRANCH,

Просмотреть файл

@ -3,7 +3,6 @@ import os
config = {
"nightly_build": True,
"branch": "mozilla-inbound",
"en_us_binary_url": "http://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central",
"update_channel": "nightly",
# l10n

Просмотреть файл

@ -4,7 +4,6 @@ BRANCH = "mozilla-inbound"
MOZ_UPDATE_CHANNEL = "default"
MOZILLA_DIR = BRANCH
OBJDIR = "obj-firefox"
EN_US_BINARY_URL = "http://archive.mozilla.org/pub/mobile/nightly/latest-%s-android-api-16/en-US" % BRANCH
HG_SHARE_BASE_DIR = "/builds/hg-shared"
config = {
@ -29,7 +28,7 @@ config = {
# so ugly, bug 951238
"LD_LIBRARY_PATH": "/lib:/tools/gcc-4.7.2-0moz1/lib:/tools/gcc-4.7.2-0moz1/lib64",
"MOZ_OBJDIR": OBJDIR,
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
},
"upload_branch": "%s-android-api-16" % BRANCH,

Просмотреть файл

@ -3,7 +3,6 @@ import os
config = {
"nightly_build": True,
"branch": "mozilla-release",
"en_us_binary_url": "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-release/",
"update_channel": "release",
# l10n

Просмотреть файл

@ -3,7 +3,6 @@ BRANCH = "mozilla-release"
MOZ_UPDATE_CHANNEL = "release"
MOZILLA_DIR = BRANCH
OBJDIR = "obj-firefox"
EN_US_BINARY_URL = None
HG_SHARE_BASE_DIR = "/builds/hg-shared"
config = {
@ -29,7 +28,7 @@ config = {
"repack_env": {
# so ugly, bug 951238
"LD_LIBRARY_PATH": "/lib:/tools/gcc-4.7.2-0moz1/lib:/tools/gcc-4.7.2-0moz1/lib64",
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_OBJDIR": OBJDIR,
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
},

Просмотреть файл

@ -1,13 +1,11 @@
import os
EN_US_BINARY_URL = "%(en_us_binary_url)s"
config = {
"locales_file": "src/browser/locales/all-locales",
"bootstrap_env": {
"NO_MERCURIAL_SETUP_CHECK": "1",
"MOZ_OBJDIR": "obj-firefox",
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_UPDATE_CHANNEL": "%(update_channel)s",
"DIST": "%(abs_objdir)s",
"L10NBASEDIR": "../../l10n",

Просмотреть файл

@ -1,13 +1,11 @@
import os
EN_US_BINARY_URL = "%(en_us_binary_url)s"
config = {
"locales_file": "src/browser/locales/all-locales",
"bootstrap_env": {
"NO_MERCURIAL_SETUP_CHECK": "1",
"MOZ_OBJDIR": "obj-firefox",
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_UPDATE_CHANNEL": "%(update_channel)s",
"DIST": "%(abs_objdir)s",
"L10NBASEDIR": "../../l10n",

Просмотреть файл

@ -1,13 +1,11 @@
import os
EN_US_BINARY_URL = "%(en_us_binary_url)s"
config = {
"locales_file": "src/browser/locales/all-locales",
"bootstrap_env": {
"NO_MERCURIAL_SETUP_CHECK": "1",
"MOZ_OBJDIR": "obj-firefox",
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_UPDATE_CHANNEL": "%(update_channel)s",
"DIST": "%(abs_objdir)s",
"L10NBASEDIR": "../../l10n",

Просмотреть файл

@ -1,18 +1,15 @@
import os
EN_US_BINARY_URL = "%(en_us_binary_url)s"
config = {
"locales_file": "src/browser/locales/all-locales",
'vcs_share_base': os.path.join('y:', os.sep, 'hg-shared'),
"bootstrap_env": {
"NO_MERCURIAL_SETUP_CHECK": "1",
"MOZ_OBJDIR": "obj-firefox",
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
# EN_US_INSTALLER_BINARY_URL falls back on EN_US_BINARY_URL
"EN_US_INSTALLER_BINARY_URL": os.environ.get(
"EN_US_INSTALLER_BINARY_URL", os.environ.get(
"EN_US_BINARY_URL", EN_US_BINARY_URL)),
"EN_US_INSTALLER_BINARY_URL", os.environ["EN_US_BINARY_URL"]),
"MOZ_UPDATE_CHANNEL": "%(update_channel)s",
"DIST": "%(abs_objdir)s",
"L10NBASEDIR": "../../l10n",

Просмотреть файл

@ -1,18 +1,15 @@
import os
EN_US_BINARY_URL = "%(en_us_binary_url)s"
config = {
"locales_file": "src/browser/locales/all-locales",
'vcs_share_base': os.path.join('y:', os.sep, 'hg-shared'),
"bootstrap_env": {
"NO_MERCURIAL_SETUP_CHECK": "1",
"MOZ_OBJDIR": "obj-firefox",
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
# EN_US_INSTALLER_BINARY_URL falls back on EN_US_BINARY_URL
"EN_US_INSTALLER_BINARY_URL": os.environ.get(
"EN_US_INSTALLER_BINARY_URL", os.environ.get(
"EN_US_BINARY_URL", EN_US_BINARY_URL)),
"EN_US_INSTALLER_BINARY_URL", os.environ["EN_US_BINARY_URL"]),
"MOZ_UPDATE_CHANNEL": "%(update_channel)s",
"DIST": "%(abs_objdir)s",
"L10NBASEDIR": "../../l10n",

Просмотреть файл

@ -3,7 +3,6 @@ import os
config = {
"nightly_build": False,
"branch": "try",
"en_us_binary_url": "http://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central",
"update_channel": "nightly-try",
# l10n

Просмотреть файл

@ -2,8 +2,6 @@ import os
BRANCH = "try"
MOZILLA_DIR = BRANCH
EN_US_BINARY_URL = "http://archive.mozilla.org/pub/" \
"mobile/nightly/latest-mozilla-central-android-api-16/en-US"
config = {
"branch": "try",
@ -27,7 +25,7 @@ config = {
# so ugly, bug 951238
"LD_LIBRARY_PATH": "/lib:/tools/gcc-4.7.2-0moz1/lib:/tools/gcc-4.7.2-0moz1/lib64",
"MOZ_OBJDIR": "obj-firefox",
"EN_US_BINARY_URL": os.environ.get("EN_US_BINARY_URL", EN_US_BINARY_URL),
"EN_US_BINARY_URL": os.environ["EN_US_BINARY_URL"],
"MOZ_UPDATE_CHANNEL": "try", # XXX Invalid
},
"upload_branch": "%s-android-api-16" % BRANCH,

Просмотреть файл

@ -53,8 +53,7 @@ configuration_tokens = ('branch',
# are defined at run time and they cannot be enforced in the _pre_config_lock
# phase
runtime_config_tokens = ('version', 'locale', 'abs_objdir', 'revision',
'en_us_binary_url', 'en_us_installer_binary_url',
'mar_tools_url')
'en_us_installer_binary_url', 'mar_tools_url')
# DesktopSingleLocale {{{1
@ -256,9 +255,6 @@ class DesktopSingleLocale(LocalesMixin, AutomationMixin,
config = self.config
replace_dict = self.query_abs_dirs()
replace_dict['en_us_binary_url'] = config.get('en_us_binary_url')
# Override en_us_binary_url if packageUrl is passed as a property from
# the en-US build
bootstrap_env = self.query_env(partial_env=config.get("bootstrap_env"),
replace_dict=replace_dict)
for binary in self._mar_binaries():