Bug 1638012 - commonize taskcluster-related bootstrappers for Linux; r=nalexander

This change doesn't fix all of the boilerplate involved in declaring
that certain packages should be fetched from taskcluster, but it's a
start, at least.

Differential Revision: https://phabricator.services.mozilla.com/D75330
This commit is contained in:
Nathan Froyd 2020-05-18 16:27:09 +00:00
parent b86d20d213
commit 9f876bab7a
7 changed files with 27 additions and 117 deletions

View File

@ -11,16 +11,7 @@ import subprocess
import glob
from mozboot.base import BaseBootstrapper
from mozboot.linux_common import (
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
)
from mozboot.linux_common import LinuxBootstrapper
# NOTE: This script is intended to be run with a vanilla Python install. We
# have to rely on the standard library instead of Python 2+3 helpers like
@ -30,14 +21,7 @@ if sys.version_info < (3,):
class ArchlinuxBootstrapper(
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
LinuxBootstrapper,
BaseBootstrapper):
'''Archlinux experimental bootstrapper.'''

View File

@ -7,29 +7,11 @@ from __future__ import absolute_import, print_function, unicode_literals
import platform
from mozboot.base import BaseBootstrapper
from mozboot.linux_common import (
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NasmInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
)
from mozboot.linux_common import LinuxBootstrapper
class CentOSFedoraBootstrapper(
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NasmInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
LinuxBootstrapper,
BaseBootstrapper):
def __init__(self, distro, version, dist_id, **kwargs):

View File

@ -5,17 +5,7 @@
from __future__ import absolute_import, print_function, unicode_literals
from mozboot.base import BaseBootstrapper
from mozboot.linux_common import (
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NasmInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
)
from mozboot.linux_common import LinuxBootstrapper
MERCURIAL_INSTALL_PROMPT = '''
@ -36,15 +26,7 @@ Your choice: '''
class DebianBootstrapper(
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NasmInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
LinuxBootstrapper,
BaseBootstrapper):
# These are common packages for all Debian-derived distros (such as

View File

@ -5,29 +5,11 @@
from __future__ import absolute_import, print_function, unicode_literals
from mozboot.base import BaseBootstrapper
from mozboot.linux_common import (
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NasmInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
)
from mozboot.linux_common import LinuxBootstrapper
class GentooBootstrapper(
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NasmInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
LinuxBootstrapper,
BaseBootstrapper):
def __init__(self, version, dist_id, **kwargs):

View File

@ -126,3 +126,18 @@ class MinidumpStackwalkInstall(object):
self.install_toolchain_artifact(state_dir, checkout_root,
minidump_stackwalk.LINUX_MINIDUMP_STACKWALK)
class LinuxBootstrapper(
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NasmInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall):
def __init__(self, **kwargs):
pass

View File

@ -5,30 +5,11 @@
from __future__ import absolute_import, print_function, unicode_literals
from mozboot.base import BaseBootstrapper
from mozboot.linux_common import (
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NasmInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
)
from mozboot.linux_common import LinuxBootstrapper
class OpenSUSEBootstrapper(
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NasmInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
BaseBootstrapper):
LinuxBootstrapper, BaseBootstrapper):
'''openSUSE experimental bootstrapper.'''
SYSTEM_PACKAGES = [

View File

@ -8,16 +8,7 @@ import sys
import subprocess
from mozboot.base import BaseBootstrapper
from mozboot.linux_common import (
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
)
from mozboot.linux_common import LinuxBootstrapper
# NOTE: This script is intended to be run with a vanilla Python install. We
# have to rely on the standard library instead of Python 2+3 helpers like
@ -27,14 +18,7 @@ if sys.version_info < (3,):
class SolusBootstrapper(
ClangStaticAnalysisInstall,
FixStacksInstall,
LucetcInstall,
MinidumpStackwalkInstall,
NodeInstall,
SccacheInstall,
StyloInstall,
WasiSysrootInstall,
LinuxBootstrapper,
BaseBootstrapper):
'''Solus experimental bootstrapper.'''