Backed out changeset a63caceffcee (bug 1403548) for liniting failure on builds/worker/checkouts/gecko/taskcluster/taskgraph/transforms/beetmover_repackage.py. CLOSED TREE

This commit is contained in:
Dorel Luca 2018-04-26 00:07:21 +03:00
Родитель a8def10cc3
Коммит b78d790273
13 изменённых файлов: 10 добавлений и 65 удалений

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

@ -1,8 +1,6 @@
# We still need to build with debug symbols
ac_add_options --disable-debug
ac_add_options --enable-optimize="-O2 -gline-tables-only"
ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
MOZ_AUTOMATION_UPDATE_PACKAGING=${MOZ_AUTOMATION_UPDATE_PACKAGING-1}
. $topsrcdir/build/mozconfig.stylo
@ -17,7 +15,4 @@ ac_add_options --enable-address-sanitizer-reporter
# Need this to prevent name conflicts with the normal nightly build packages
export MOZ_PKG_SPECIAL=asan-reporter
# Need this to add source information into platform.ini
export MOZILLA_OFFICIAL=1
. "$topsrcdir/build/mozconfig.common.override"

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

@ -53,12 +53,6 @@ else
ACCEPTED_MAR_CHANNEL_IDS=firefox-mozilla-central
MAR_CHANNEL_ID=firefox-mozilla-central
fi
# ASan reporter builds should have different channel ids
if [ "${MOZ_ASAN_REPORTER}" = "1" ]; then
ACCEPTED_MAR_CHANNEL_IDS="${ACCEPTED_MAR_CHANNEL_IDS}-asan"
MAR_CHANNEL_ID="${MAR_CHANNEL_ID}-asan"
fi
MOZ_PROFILE_MIGRATOR=1
# Enable checking that add-ons are signed by the trusted root

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

@ -26,7 +26,6 @@ only-for-build-platforms:
- macosx64-devedition-nightly/opt
- win32-devedition-nightly/opt
- win64-devedition-nightly/opt
- linux64-asan-reporter-nightly/opt
job-template:
shipping-phase: promote

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

@ -27,4 +27,3 @@ not-for-build-platforms:
- macosx64-devedition-nightly/opt
- win32-devedition-nightly/opt
- win64-devedition-nightly/opt
- linux64-asan-reporter-nightly/opt

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

@ -526,16 +526,13 @@ linux64-asan-fuzzing/opt:
- linux64-rust
- linux64-sccache
linux64-asan-reporter-nightly/opt:
linux64-asan-reporter/opt:
description: "Linux64 Opt ASAN Reporter Nightly"
attributes:
nightly: true
index:
product: firefox
job-name: linux64-asan-reporter-opt
type: nightly
treeherder:
platform: linux64-asan-reporter/opt
platform: linux64/asan
symbol: BoR
worker-type: aws-provisioner-v1/gecko-{level}-b-linux
worker:
@ -548,7 +545,6 @@ linux64-asan-reporter-nightly/opt:
config:
- builds/releng_base_firefox.py
- builds/releng_base_linux_64_builds.py
- taskcluster_nightly.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: asan-reporter-tc

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

@ -26,7 +26,6 @@ only-for-build-platforms:
- linux-devedition-nightly/opt
- linux64-nightly/opt
- linux64-devedition-nightly/opt
- linux64-asan-reporter-nightly/opt
job-template:
shipping-phase: promote

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

@ -20,7 +20,6 @@ only-for-build-platforms:
- linux-devedition-nightly/opt
- linux64-nightly/opt
- linux64-devedition-nightly/opt
- linux64-asan-reporter-nightly/opt
- macosx64-nightly/opt
- macosx64-devedition-nightly/opt
- win32-nightly/opt

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

@ -21,7 +21,6 @@ only-for-build-platforms:
- linux-devedition-nightly/opt
- linux64-nightly/opt
- linux64-devedition-nightly/opt
- linux64-asan-reporter-nightly/opt
- macosx64-nightly/opt
- macosx64-devedition-nightly/opt
- win32-nightly/opt

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

@ -603,15 +603,6 @@ def target_tasks_nightly_win64(full_task_graph, parameters, graph_config):
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t, parameters)]
@_target_task('nightly_asan')
def target_tasks_nightly_asan(full_task_graph, parameters, graph_config):
"""Select the set of tasks required for a nightly build of asan. The
nightly build process involves a pipeline of builds, signing,
and, eventually, uploading the tasks to balrog."""
filter = make_nightly_filter({'linux64-asan-reporter-nightly'})
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t, parameters)]
@_target_task('nightly_desktop')
def target_tasks_nightly_desktop(full_task_graph, parameters, graph_config):
"""Select the set of tasks required for a nightly build of linux, mac,
@ -622,7 +613,6 @@ def target_tasks_nightly_desktop(full_task_graph, parameters, graph_config):
| set(target_tasks_nightly_win64(full_task_graph, parameters, graph_config))
| set(target_tasks_nightly_macosx(full_task_graph, parameters, graph_config))
| set(target_tasks_nightly_linux(full_task_graph, parameters, graph_config))
| set(target_tasks_nightly_asan(full_task_graph, parameters, graph_config))
)

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

@ -136,14 +136,6 @@ UPSTREAM_ARTIFACT_UNSIGNED_PATHS = {
"host/bin/mar",
"host/bin/mbsdiff",
],
'linux64-asan-reporter-nightly':
# ASan reporter builds don't generate the regular crashreporter symbol
# packages, so we shouldn't try to beetmove them
filter(lambda a: a != 'target.crashreporter-symbols.zip',
_DESKTOP_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US + [
"host/bin/mar",
"host/bin/mbsdiff",
]),
'linux64-source': [
],
'linux64-devedition-source': [
@ -213,10 +205,6 @@ UPSTREAM_ARTIFACT_SIGNED_PATHS = {
"target.tar.bz2",
"target.tar.bz2.asc",
],
'linux64-asan-reporter-nightly': _DESKTOP_UPSTREAM_ARTIFACTS_SIGNED_EN_US + [
"target.tar.bz2",
"target.tar.bz2.asc",
],
'linux64-source': [
"source.tar.xz",
"source.tar.xz.asc",

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

@ -75,12 +75,6 @@ UPSTREAM_ARTIFACT_UNSIGNED_PATHS = {
# TODO Bug 1453033: Sign devedition langpacks
'target.langpack.xpi',
],
r'^linux64-asan-reporter-nightly$':
filter(lambda a: a not in ('target.crashreporter-symbols.zip', 'target.jsshell.zip'),
_DESKTOP_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US + [
"host/bin/mar",
"host/bin/mbsdiff",
]),
r'^win(32|64)-nightly$':
_DESKTOP_UPSTREAM_ARTIFACTS_UNSIGNED_EN_US + [
'host/bin/mar.exe',
@ -106,8 +100,7 @@ UPSTREAM_ARTIFACT_UNSIGNED_PATHS = {
# with a beetmover patch in https://github.com/mozilla-releng/beetmoverscript/.
# See example in bug 1348286
UPSTREAM_ARTIFACT_SIGNED_PATHS = {
r'^linux(|64)(|-devedition|-asan-reporter)-nightly(|-l10n)$':
['target.tar.bz2', 'target.tar.bz2.asc'],
r'^linux(|64)(|-devedition)-nightly(|-l10n)$': ['target.tar.bz2', 'target.tar.bz2.asc'],
r'^win(32|64)(|-devedition)-nightly(|-l10n)$': ['target.zip'],
}
@ -123,8 +116,7 @@ UPSTREAM_ARTIFACT_REPACKAGE_PATHS = {
# with a beetmover patch in https://github.com/mozilla-releng/beetmoverscript/.
# See example in bug 1348286
UPSTREAM_ARTIFACT_SIGNED_REPACKAGE_PATHS = {
r'^(linux(|64)|macosx64)(|-devedition|-asan-reporter)-nightly(|-l10n)$':
['target.complete.mar'],
r'^(linux(|64)|macosx64)(|-devedition)-nightly(|-l10n)$': ['target.complete.mar'],
r'^win64(|-devedition)-nightly(|-l10n)$': ['target.complete.mar', 'target.installer.exe'],
r'^win32(|-devedition)-nightly(|-l10n)$': [
'target.complete.mar',
@ -299,11 +291,11 @@ def generate_upstream_artifacts(job, build_task_ref, build_signing_task_ref,
]
for ref, tasktype, mapping in zip(task_refs, tasktypes, mapping):
platform_was_previously_matched_by_regex = None
plarform_was_previously_matched_by_regex = None
for platform_regex, paths in mapping.iteritems():
if platform_regex.match(platform) is not None:
_check_platform_matched_only_one_regex(
tasktype, platform, platform_was_previously_matched_by_regex, platform_regex
tasktype, platform, plarform_was_previously_matched_by_regex, platform_regex
)
if paths:
upstream_artifacts.append({
@ -312,7 +304,7 @@ def generate_upstream_artifacts(job, build_task_ref, build_signing_task_ref,
"paths": ["{}/{}".format(artifact_prefix, path) for path in paths],
"locale": locale or "en-US",
})
platform_was_previously_matched_by_regex = platform_regex
plarform_was_previously_matched_by_regex = platform_regex
return upstream_artifacts
@ -334,14 +326,14 @@ def generate_partials_upstream_artifacts(job, artifacts, platform, locale=None):
def _check_platform_matched_only_one_regex(
task_type, platform, platform_was_previously_matched_by_regex, platform_regex
task_type, platform, plarform_was_previously_matched_by_regex, platform_regex
):
if platform_was_previously_matched_by_regex is not None:
if plarform_was_previously_matched_by_regex is not None:
raise Exception('In task type "{task_type}", platform "{platform}" matches at \
least 2 regular expressions. First matched: "{first_matched}". Second matched: \
"{second_matched}"'.format(
task_type=task_type, platform=platform,
first_matched=platform_was_previously_matched_by_regex.pattern,
first_matched=plarform_was_previously_matched_by_regex.pattern,
second_matched=platform_regex.pattern
))

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

@ -28,9 +28,6 @@ BALROG_PLATFORM_MAP = {
"linux64": [
"Linux_x86_64-gcc3"
],
"linux64-asan-reporter": [
"Linux_x86_64-gcc3-asan"
],
"macosx64": [
"Darwin_x86_64-gcc3-u-i386-x86_64",
"Darwin_x86-gcc3-u-i386-x86_64",
@ -55,7 +52,6 @@ FTP_PLATFORM_MAP = {
"Darwin_x86_64-gcc3-u-i386-x86_64": "mac",
"Linux_x86-gcc3": "linux-i686",
"Linux_x86_64-gcc3": "linux-x86_64",
"Linux_x86_64-gcc3-asan": "linux-x86_64-asan-reporter",
"WINNT_x86-msvc": "win32",
"WINNT_x86-msvc-x64": "win32",
"WINNT_x86-msvc-x86": "win32",

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

@ -1159,7 +1159,6 @@ def enable_asan_reporter(value):
set_config('MOZ_ASAN_REPORTER', enable_asan_reporter)
set_define('MOZ_ASAN_REPORTER', enable_asan_reporter)
add_old_configure_assignment('MOZ_ASAN_REPORTER', enable_asan_reporter)
# Elfhack
# ==============================================================