コード例 #1
0
    def __init__(self):
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            # other stuff
            all_actions=[
                "purge",
                "checkout-tools",
                # First, build an optimized JS shell for running the analysis
                "checkout-source",
                "get-blobs",
                "clobber-shell",
                "configure-shell",
                "build-shell",
                # Next, build a tree with the analysis plugin
                # active. Note that we are using the same
                # checkout for the JS shell build and the build
                # of the source to be analyzed, which is a
                # little unnecessary (no need to rebuild the JS
                # shell all the time). (Different objdir,
                # though.)
                "clobber-analysis",
                "setup-analysis",
                "run-analysis",
                "collect-analysis-output",
                "upload-analysis",
                "check-expectations",
            ],
            default_actions=[
                "purge",
                "checkout-tools",
                "checkout-source",
                "get-blobs",
                "clobber-shell",
                "configure-shell",
                "build-shell",
                "clobber-analysis",
                "setup-analysis",
                "run-analysis",
                "collect-analysis-output",
                # Temporary - see bug 1211402
                #'upload-analysis',
                "check-expectations",
            ],
            config={
                "default_vcs": "hgtool",
                "vcs_share_base": os.environ.get("HG_SHARE_BASE_DIR"),
                "ccache": True,
                "buildbot_json_path": os.environ.get("PROPERTIES_FILE"),
                "tools_repo": "https://hg.mozilla.org/build/tools",
                "upload_ssh_server": None,
                "upload_remote_basepath": None,
                "enable_try_uploads": True,
                "source": None,
                "stage_product": "firefox",
            },
        )

        self.buildid = None
        self.analysis = HazardAnalysis()
コード例 #2
0
ファイル: antivirus.py プロジェクト: AlexxNica/gecko
 def __init__(self):
     BaseScript.__init__(
         self,
         config_options=self.config_options,
         require_config_file=False,
         config={
             "virtualenv_modules": [
                 "boto",
                 "redo",
                 "mar",
             ],
             "virtualenv_path": "venv",
         },
         all_actions=[
             "create-virtualenv",
             "activate-virtualenv",
             "get-extract-script",
             "get-files",
             "scan-files",
             "cleanup-cache",
         ],
         default_actions=[
             "create-virtualenv",
             "activate-virtualenv",
             "get-extract-script",
             "get-files",
             "scan-files",
             "cleanup-cache",
         ],
     )
     self.excludes = self.config.get('excludes', self.DEFAULT_EXCLUDES)
     self.dest_dir = self.CACHE_DIR
コード例 #3
0
    def __init__(self):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': DesktopPartnerRepacks.actions,
            'default_actions': DesktopPartnerRepacks.actions,
            'config': {
                'buildbot_json_path': os.environ.get('PROPERTIES_FILE'),
                "log_name": "partner-repacks",
                "hashType": "sha512",
                'virtualenv_modules': [
                    'requests==2.2.1',
                    'PyHawk-with-a-single-extra-commit==0.1.5',
                    'taskcluster==0.0.15',
                    's3cmd==1.6.0',
                ],
                'virtualenv_path': 'venv',
                'workdir': 'partner-repacks',
            },
        }
        #

        BaseScript.__init__(
            self,
            config_options=self.config_options,
            **buildscript_kwargs
        )

        if 'version' not in self.config:
            self.fatal("Version (-v) not supplied.")
        if 'buildnumber' not in self.config:
            self.fatal("Build number (-n) not supplied.")
        if 'repo_file' not in self.config:
            self.fatal("repo_file not supplied.")
        if 'repack_manifests_url' not in self.config:
            self.fatal("repack_manifests_url not supplied.")
コード例 #4
0
    def __init__(self):
        BaseScript.__init__(self,
                            config_options=self.config_options,
                            # other stuff
                            all_actions=[
                                'purge',
                                'checkout-tools',

                                # First, build an optimized JS shell for running the analysis
                                'checkout-source',
                                'get-blobs',
                                'clobber-shell',
                                'configure-shell',
                                'build-shell',

                                # Next, build a tree with the analysis plugin
                                # active. Note that we are using the same
                                # checkout for the JS shell build and the build
                                # of the source to be analyzed, which is a
                                # little unnecessary (no need to rebuild the JS
                                # shell all the time). (Different objdir,
                                # though.)
                                'clobber-analysis',
                                'setup-analysis',
                                'run-analysis',
                                'collect-analysis-output',
                                'upload-analysis',
                                'check-expectations',
                            ],
                            default_actions=[
                                'purge',
                                'checkout-tools',
                                'checkout-source',
                                'get-blobs',
                                'clobber-shell',
                                'configure-shell',
                                'build-shell',
                                'clobber-analysis',
                                'setup-analysis',
                                'run-analysis',
                                'collect-analysis-output',
                                'upload-analysis',
                                'check-expectations',
                            ],
                            config={
                                'default_vcs': 'hgtool',
                                'vcs_share_base': os.environ.get('HG_SHARE_BASE_DIR'),
                                'ccache': True,
                                'buildbot_json_path': os.environ.get('PROPERTIES_FILE'),
                                'tools_repo': 'https://hg.mozilla.org/build/tools',

                                'upload_ssh_server': None,
                                'upload_remote_basepath': None,
                                'enable_try_uploads': True,
                                'source': None,
                            },
        )

        self.buildid = None
        self.analysis = HazardAnalysis()
コード例 #5
0
    def __init__(self):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': DesktopPartnerRepacks.actions,
            'default_actions': DesktopPartnerRepacks.actions,
            'config': {
                'buildbot_json_path': 'buildprops.json',
                "log_name": "partner-repacks",
                "hashType": "sha512",
                'virtualenv_modules': [
                    'requests==2.2.1',
                    'PyHawk-with-a-single-extra-commit==0.1.5',
                    'taskcluster==0.0.15',
                    's3cmd==1.6.0',
                ],
                'virtualenv_path': 'venv',
                'workdir': 'partner-repacks',
            },
        }
        #

        BaseScript.__init__(
            self,
            config_options=self.config_options,
            **buildscript_kwargs
        )
コード例 #6
0
 def __init__(self):
     BaseScript.__init__(self,
                         config_options=self.config_options,
                         # other stuff
                         all_actions=[
                             'setup-mock',
                             'checkout-servo',
                             'clobber-obj',
                             'configure',
                             'build',
                             'check',
                         ],
                         default_actions=[
                             'checkout-servo',
                             'clobber-obj',
                             'configure',
                             'build',
                             'check',
                         ],
                         config={
                             'default_vcs': 'gittool',
                             'backup_rust': True,
                             'concurrency': 1,
                         },
                         )
コード例 #7
0
    def __init__(self):
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=False,
            config={
                "virtualenv_modules": [
                    "boto",
                    "redo",
                ],
                "virtualenv_path": "venv",
            },
            all_actions=[
                "create-virtualenv",
                "activate-virtualenv",
                "collect-individual-checksums",
                "create-big-checksums",
                "sign",
                "get-upload-script",
                "upload",
            ],
            default_actions=[
                "create-virtualenv",
                "activate-virtualenv",
                "collect-individual-checksums",
                "create-big-checksums",
                "sign",
                "get-upload-script",
                "upload",
            ],
        )

        self.checksums = {}
コード例 #8
0
    def __init__(self):
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            # other stuff
            all_actions=[
                "setup-mock",
                "reuse-mock",
                "checkout-tools",
                # First, build an optimized JS shell for running the analysis
                "checkout-source",
                "clobber-shell",
                "configure-shell",
                "build-shell",
                # Next, build a tree with the analysis plugin
                # active. Note that we are using the same
                # checkout for the JS shell build and the build
                # of the source to be analyzed, which is a
                # little unnecessary (no need to rebuild the JS
                # shell all the time). (Different objdir,
                # though.)
                "clobber-analysis",
                "setup-analysis",
                "run-analysis",
                "collect-analysis-output",
                "upload-analysis",
                "check-expectations",
            ],
            default_actions=[
                #'reuse-mock',
                "setup-mock",
                "checkout-tools",
                "checkout-source",
                "clobber-shell",
                "configure-shell",
                "build-shell",
                "clobber-analysis",
                "setup-analysis",
                "run-analysis",
                "collect-analysis-output",
                "upload-analysis",
                "check-expectations",
            ],
            config={
                "default_vcs": "hgtool",
                "vcs_share_base": os.environ.get("HG_SHARE_BASE_DIR"),
                "ccache": True,
                "buildbot_json_path": os.environ.get("PROPERTIES_FILE"),
                "tooltool_servers": None,
                "tools_repo": "http://hg.mozilla.org/build/tools",
                "upload_ssh_server": None,
                "upload_remote_basepath": None,
                "enable_try_uploads": True,
            },
        )

        self.nonmock_env = self.query_env(purge_env=nuisance_env_vars)
        self.env = self.nonmock_env

        self.buildtime = None
コード例 #9
0
    def __init__(self):
        BaseScript.__init__(self,
            config_options=self.config_options,
            require_config_file=False,
            config={
                "virtualenv_modules": [
                    "boto",
                    "redo",
                ],
                "virtualenv_path": "venv",
            },
            all_actions=[
                "create-virtualenv",
                "activate-virtualenv",
                "push-to-releases",
            ],
            default_actions=[
                "create-virtualenv",
                "activate-virtualenv",
                "push-to-releases",
            ],
        )

        # set the env var for boto to read our special config file
        # rather than anything else we have at ~/.boto
        os.environ["BOTO_CONFIG"] = os.path.abspath(self.config["credentials"])
コード例 #10
0
    def __init__(self):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': DesktopPartnerRepacks.actions,
            'default_actions': DesktopPartnerRepacks.actions,
            'config': {
                'buildbot_json_path':
                os.environ.get('PROPERTIES_FILE'),
                "log_name":
                "partner-repacks",
                "hashType":
                "sha512",
                'virtualenv_modules': [
                    'requests==2.2.1',
                    'PyHawk-with-a-single-extra-commit==0.1.5',
                    'taskcluster==0.0.15',
                    's3cmd==1.6.0',
                ],
                'virtualenv_path':
                'venv',
                'workdir':
                'partner-repacks',
            },
        }
        #

        BaseScript.__init__(self,
                            config_options=self.config_options,
                            **buildscript_kwargs)

        if 'repo_file' not in self.config:
            self.fatal("repo_file not supplied.")
        if 'repack_manifests_url' not in self.config:
            self.fatal("repack_manifests_url not supplied.")
コード例 #11
0
    def __init__(self, require_config_file=True):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': [
                "clobber",
                "pull",
                "list-locales",
                "setup",
                "repack",
                "taskcluster-upload",
                "funsize-props",
                "submit-to-balrog",
                "summary",
            ],
            'config': {
                "buildbot_json_path": "buildprops.json",
                "ignore_locales": ["en-US"],
                "locales_dir": "browser/locales",
                "update_mar_dir": "dist/update",
                "buildid_section": "App",
                "buildid_option": "BuildID",
                "application_ini": "application.ini",
                "log_name": "single_locale",
                "clobber_file": 'CLOBBER',
                "appName": "Firefox",
                "hashType": "sha512",
                "taskcluster_credentials_file": "oauth.txt",
                'virtualenv_modules': [
                    'requests==2.2.1',
                    'PyHawk-with-a-single-extra-commit==0.1.5',
                    'taskcluster==0.0.15',
                ],
                'virtualenv_path': 'venv',
            },
        }
        #

        LocalesMixin.__init__(self)
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=require_config_file,
            **buildscript_kwargs
        )

        self.buildid = None
        self.make_ident_output = None
        self.bootstrap_env = None
        self.upload_env = None
        self.revision = None
        self.version = None
        self.upload_urls = {}
        self.locales_property = {}
        self.package_urls = {}
        self.pushdate = None
        # upload_files is a dictionary of files to upload, keyed by locale.
        self.upload_files = {}

        if 'mock_target' in self.config:
            self.enable_mock()
コード例 #12
0
    def __init__(self, require_config_file=False, config={},
                 all_actions=all_actions,
                 default_actions=default_actions):

        # Default configuration
        default_config = {
            'debug_build': False,
            'pip_index': True,
            # this will pip install it automajically when we call the
            # create-virtualenv action
            'virtualenv_modules': ['google-api-python-client'],
            "find_links": [
                "http://pypi.pvt.build.mozilla.org/pub",
                "http://pypi.pub.build.mozilla.org/pub",
            ],
            'virtualenv_path': 'venv',
        }
        default_config.update(config)

        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=require_config_file,
            config=default_config,
            all_actions=all_actions,
            default_actions=default_actions,
        )

        self.all_locales_url = self.config['l10n_api_url'] + "api/?done&channel={channel}"
        self.locale_url = self.config['l10n_api_url'] + "api/?locale={locale}&channel={channel}"
        self.mapping_url = self.config['l10n_api_url'] + "api/?locale_mapping&reverse"
コード例 #13
0
    def __init__(self,
                 require_config_file=False,
                 config={},
                 all_actions=all_actions,
                 default_actions=default_actions):

        # Default configuration
        default_config = {
            'debug_build':
            False,
            'pip_index':
            True,
            # this will pip install it automajically when we call the create-virtualenv action
            'virtualenv_modules': ['google-api-python-client'],
            "find_links":
            [  # so mozharness knows where to look for the package
                "http://pypi.pvt.build.mozilla.org/pub",
                "http://pypi.pub.build.mozilla.org/pub",
            ],
            # the path inside the work_dir ('build') of where we will install the env.
            # pretty sure it's the default and not needed.
            'virtualenv_path':
            'venv',
        }
        default_config.update(config)

        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=require_config_file,
            config=default_config,
            all_actions=all_actions,
            default_actions=default_actions,
        )
コード例 #14
0
    def __init__(self):
        BaseScript.__init__(self,
            config_options=self.config_options,
            require_config_file=False,
            config={
                "virtualenv_modules": [
                    "boto",
                ],
                "virtualenv_path": "venv",
                'buildbot_json_path': 'buildprops.json',
            },
            all_actions=[
                "create-virtualenv",
                "collect-individual-checksums",
                "create-big-checksums",
                "sign",
                "upload",
                "copy-info-files",
            ],
            default_actions=[
                "create-virtualenv",
                "collect-individual-checksums",
                "create-big-checksums",
                "sign",
                "upload",
            ],
        )

        self.checksums = {}
        self.bucket = None
        self.bucket_name = self._get_bucket_name()
        self.file_prefix = self._get_file_prefix()
        # set the env var for boto to read our special config file
        # rather than anything else we have at ~/.boto
        os.environ["BOTO_CONFIG"] = os.path.abspath(self.config["credentials"])
コード例 #15
0
    def __init__(self):
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=False,
            config={
                "virtualenv_modules": [
                    "boto",
                ],
                "virtualenv_path": "venv",
            },
            all_actions=[
                "create-virtualenv",
                "collect-individual-checksums",
                "create-big-checksums",
                "create-summary",
            ],
            default_actions=[
                "create-virtualenv",
                "collect-individual-checksums",
                "create-big-checksums",
                "create-summary",
            ],
        )

        self.checksums = {}
        self.file_prefix = self._get_file_prefix()
コード例 #16
0
ファイル: talos.py プロジェクト: Callek/mozharness
    def __init__(self, **kwargs):
        kwargs.setdefault('config_options', self.config_options)
        kwargs.setdefault('all_actions', ['clobber',
                                          'read-buildbot-config',
                                          'download-and-extract',
                                          'create-virtualenv',
                                          'install',
                                          'generate-config',
                                          'run-tests',
                                         ])
        kwargs.setdefault('default_actions', ['clobber',
                                              'download-and-extract',
                                              'create-virtualenv',
                                              'install',
                                              'generate-config',
                                              'run-tests',
                                             ])
        kwargs.setdefault('config', {})
        kwargs['config'].setdefault('virtualenv_modules', ["talos", "mozinstall"])
        BaseScript.__init__(self, **kwargs)

        self.workdir = self.query_abs_dirs()['abs_work_dir'] # convenience

        # results output
        self.results_url = self.config.get('results_url')
        if self.results_url is None:
            # use a results_url by default based on the class name in the working directory
            self.results_url = 'file://%s' % os.path.join(self.workdir, self.__class__.__name__.lower() + '.txt')
        self.installer_url = self.config.get("installer_url")
コード例 #17
0
ファイル: desktop_l10n.py プロジェクト: sean93park/gecko-dev
    def __init__(self, require_config_file=True):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': [
                "clobber",
                "pull",
                "list-locales",
                "setup",
                "repack",
                "taskcluster-upload",
                "funsize-props",
                "submit-to-balrog",
                "summary",
            ],
            'config': {
                "buildbot_json_path": "buildprops.json",
                "ignore_locales": ["en-US"],
                "locales_dir": "browser/locales",
                "update_mar_dir": "dist/update",
                "buildid_section": "App",
                "buildid_option": "BuildID",
                "application_ini": "application.ini",
                "log_name": "single_locale",
                "clobber_file": 'CLOBBER',
                "appName": "Firefox",
                "hashType": "sha512",
                "taskcluster_credentials_file": "oauth.txt",
                'virtualenv_modules': [
                    'requests==2.8.1',
                    'PyHawk-with-a-single-extra-commit==0.1.5',
                    'taskcluster==0.0.26',
                ],
                'virtualenv_path': 'venv',
            },
        }
        #

        LocalesMixin.__init__(self)
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=require_config_file,
            **buildscript_kwargs
        )

        self.buildid = None
        self.make_ident_output = None
        self.bootstrap_env = None
        self.upload_env = None
        self.revision = None
        self.version = None
        self.upload_urls = {}
        self.locales_property = {}
        self.package_urls = {}
        self.pushdate = None
        # upload_files is a dictionary of files to upload, keyed by locale.
        self.upload_files = {}

        if 'mock_target' in self.config:
            self.enable_mock()
コード例 #18
0
ファイル: antivirus.py プロジェクト: Engineer-Zhou/gecko-dev
 def __init__(self):
     BaseScript.__init__(self,
         config_options=self.config_options,
         require_config_file=False,
         config={
             "virtualenv_modules": [
                 "boto",
                 "redo",
                 "mar",
             ],
             "virtualenv_path": "venv",
         },
         all_actions=[
             "create-virtualenv",
             "activate-virtualenv",
             "get-extract-script",
             "get-files",
             "scan-files",
             "cleanup-cache",
         ],
         default_actions=[
             "create-virtualenv",
             "activate-virtualenv",
             "get-extract-script",
             "get-files",
             "scan-files",
             "cleanup-cache",
         ],
     )
     self.excludes = self.config.get('excludes', self.DEFAULT_EXCLUDES)
     self.dest_dir = self.CACHE_DIR
コード例 #19
0
    def __init__(self):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': DesktopPartnerRepacks.actions,
            'default_actions': DesktopPartnerRepacks.actions,
            'config': {
                'buildbot_json_path': 'buildprops.json',
                "log_name": "partner-repacks",
                "hashType": "sha512",
                'virtualenv_modules': [
                    'requests==2.2.1',
                    'PyHawk-with-a-single-extra-commit==0.1.5',
                    'taskcluster==0.0.15',
                    's3cmd==1.6.0',
                ],
                'virtualenv_path': 'venv',
                'workdir': 'partner-repacks',
            },
        }
        #

        BaseScript.__init__(
            self,
            config_options=self.config_options,
            **buildscript_kwargs
        )
コード例 #20
0
 def __init__(self):
     BaseScript.__init__(
         self,
         config_options=self.config_options,
         # other stuff
         all_actions=[
             'setup-mock',
             'checkout-servo',
             'clobber-obj',
             'configure',
             'build',
             'check',
         ],
         default_actions=[
             'checkout-servo',
             'clobber-obj',
             'configure',
             'build',
             'check',
         ],
         config={
             'default_vcs': 'gittool',
             'backup_rust': True,
             'concurrency': 1,
         },
     )
コード例 #21
0
ファイル: desktop_l10n.py プロジェクト: hop11/gecko-dev
    def __init__(self, require_config_file=True):
        # fxbuild style:
        buildscript_kwargs = {
            "all_actions": [
                "clone-locales",
                "list-locales",
                "setup",
                "repack",
                "summary",
            ],
            "config": {
                "ignore_locales": ["en-US"],
                "locales_dir": "browser/locales",
                "log_name": "single_locale",
                "hg_l10n_base": "https://hg.mozilla.org/l10n-central",
            },
        }

        LocalesMixin.__init__(self)
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=require_config_file,
            **buildscript_kwargs
        )

        self.bootstrap_env = None
        self.upload_env = None
        self.upload_urls = {}
        self.pushdate = None
        # upload_files is a dictionary of files to upload, keyed by locale.
        self.upload_files = {}
コード例 #22
0
ファイル: push_apk.py プロジェクト: MekliCZ/positron
    def __init__(self, require_config_file=False, config={},
                 all_actions=all_actions,
                 default_actions=default_actions):

        # Default configuration
        default_config = {
            'debug_build': False,
            'pip_index': True,
            # this will pip install it automajically when we call the create-virtualenv action
            'virtualenv_modules': ['google-api-python-client'],
            "find_links": [   # so mozharness knows where to look for the package
                "http://pypi.pvt.build.mozilla.org/pub",
                "http://pypi.pub.build.mozilla.org/pub",
            ],
            # the path inside the work_dir ('build') of where we will install the env.
            # pretty sure it's the default and not needed.
            'virtualenv_path': 'venv',
        }
        default_config.update(config)

        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=require_config_file,
            config=default_config,
            all_actions=all_actions,
            default_actions=default_actions,
        )
コード例 #23
0
    def __init__(self):
        BaseScript.__init__(self,
                            config_options=self.config_options,
                            # other stuff
                            all_actions=[
                                'purge',
                                'checkout-tools',

                                # First, build an optimized JS shell for running the analysis
                                'checkout-source',
                                'get-blobs',
                                'clobber-shell',
                                'configure-shell',
                                'build-shell',

                                # Next, build a tree with the analysis plugin
                                # active. Note that we are using the same
                                # checkout for the JS shell build and the build
                                # of the source to be analyzed, which is a
                                # little unnecessary (no need to rebuild the JS
                                # shell all the time). (Different objdir,
                                # though.)
                                'clobber-analysis',
                                'setup-analysis',
                                'run-analysis',
                                'collect-analysis-output',
                                'upload-analysis',
                                'check-expectations',
                            ],
                            default_actions=[
                                'purge',
                                'checkout-tools',
                                'checkout-source',
                                'get-blobs',
                                'clobber-shell',
                                'configure-shell',
                                'build-shell',
                                'clobber-analysis',
                                'setup-analysis',
                                'run-analysis',
                                'collect-analysis-output',
                                'upload-analysis',
                                'check-expectations',
                            ],
                            config={
                                'default_vcs': 'hgtool',
                                'vcs_share_base': os.environ.get('HG_SHARE_BASE_DIR'),
                                'ccache': True,
                                'buildbot_json_path': os.environ.get('PROPERTIES_FILE'),
                                'tools_repo': 'https://hg.mozilla.org/build/tools',

                                'upload_ssh_server': None,
                                'upload_remote_basepath': None,
                                'enable_try_uploads': True,
                                'source': None,
                            },
        )

        self.buildid = None
        self.analysis = HazardAnalysis()
コード例 #24
0
 def __init__(self):
     BaseScript.__init__(
         self,
         config_options=self.config_options,
         config={
             "virtualenv_modules": [
                 "mozrelease",
             ],
             "virtualenv_path": "venv",
         },
         all_actions=[
             "create-virtualenv",
             "activate-virtualenv",
             "gather-info",
             "create-config",
             "write-config",
         ],
         default_actions=[
             "create-virtualenv",
             "activate-virtualenv",
             "gather-info",
             "create-config",
             "write-config",
         ],
     )
コード例 #25
0
    def __init__(self):
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=False,
            config={
                "virtualenv_modules": [
                    "boto",
                    "redo",
                ],
                "virtualenv_path": "venv",
            },
            all_actions=[
                "create-virtualenv",
                "activate-virtualenv",
                "push-to-releases",
            ],
            default_actions=[
                "create-virtualenv",
                "activate-virtualenv",
                "push-to-releases",
            ],
        )

        # set the env var for boto to read our special config file
        # rather than anything else we have at ~/.boto
        os.environ["BOTO_CONFIG"] = os.path.abspath(self.config["credentials"])
コード例 #26
0
    def __init__(self, require_config_file=True):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': [
                "clone-locales",
                "list-locales",
                "setup",
                "repack",
                "summary",
            ],
            'config': {
                "ignore_locales": ["en-US"],
                "locales_dir": "browser/locales",
                "log_name": "single_locale",
            },
        }

        LocalesMixin.__init__(self)
        BaseScript.__init__(self,
                            config_options=self.config_options,
                            require_config_file=require_config_file,
                            **buildscript_kwargs)

        self.bootstrap_env = None
        self.upload_env = None
        self.revision = None
        self.version = None
        self.upload_urls = {}
        self.locales_property = {}
        self.pushdate = None
        # upload_files is a dictionary of files to upload, keyed by locale.
        self.upload_files = {}
コード例 #27
0
    def __init__(self, require_config_file=False):
        LocalesMixin.__init__(self)
        BaseScript.__init__(self,
                            config_options=self.config_options,
                            all_actions=[
                                'pull',
                                'build',
                                'summary',
                            ],
                            require_config_file=require_config_file,

                            # Default configuration
                            config={
                                'gaia_l10n_vcs': 'hg',
                                'vcs_share_base': os.environ.get('HG_SHARE_BASE_DIR'),
                                'locales_dir': 'b2g/locales',
                                'l10n_dir': 'gecko-l10n',
                                # I forget what this was for.  Copied from the Android multilocale stuff
                                'ignore_locales': ["en-US", "multi"],
                                # This only has 2 locales in it.  We probably need files that mirror gaia's locale lists
                                # We need 2 sets of locales files because the locale names in gaia are different than gecko, e.g. 'es' vs 'es-ES'
                                # We'll need to override this for localizer buidls
                                'locales_file': 'build/b2g/locales/all-locales',
                                'mozilla_dir': 'build',
                                'objdir': 'obj-firefox',
                                'merge_locales': True,
                                'work_dir': '.',
                            },
                            )
コード例 #28
0
    def __init__(self, require_config_file=False):
        LocalesMixin.__init__(self)
        BaseScript.__init__(self,
                            config_options=self.config_options,
                            all_actions=[
                                'pull',
                                'build',
                                'summary',
                            ],
                            require_config_file=require_config_file,

                            # Default configuration
                            config={
                                'gaia_l10n_vcs': 'hg',
                                'vcs_share_base': os.environ.get('HG_SHARE_BASE_DIR'),
                                'locales_dir': 'b2g/locales',
                                'l10n_dir': 'gecko-l10n',
                                # I forget what this was for.  Copied from the Android multilocale stuff
                                'ignore_locales': ["en-US", "multi"],
                                # This only has 2 locales in it.  We probably need files that mirror gaia's locale lists
                                # We need 2 sets of locales files because the locale names in gaia are different than gecko, e.g. 'es' vs 'es-ES'
                                # We'll need to override this for localizer buidls
                                'locales_file': 'build/b2g/locales/all-locales',
                                'mozilla_dir': 'build',
                                'objdir': 'obj-firefox',
                                'merge_locales': True,
                                'work_dir': '.',
                                'vcs_output_timeout': 600,  # 10 minutes should be enough for anyone!
                            },
                            )
コード例 #29
0
ファイル: desktop_l10n.py プロジェクト: seraphs/cssfixer
    def __init__(self, require_config_file=True):
        LocalesMixin.__init__(self)
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            all_actions=[
                "clobber",
                "pull",
                "list-locales",
                "setup",
                "repack",
                #"generate-complete-mar",
                #"generate-partials",
                "create-nightly-snippets",
                "upload-nightly-repacks",
                "upload-snippets",
                "summary",
            ],
            require_config_file=require_config_file
        )
        self.buildid = None
        self.make_ident_output = None
        self.repack_env = None
        self.revision = None
        self.version = None
        self.upload_urls = {}
        self.locales_property = {}
        self.l10n_dir = None

        if 'mock_target' in self.config:
            self.enable_mock()
コード例 #30
0
    def __init__(self):
        BaseScript.__init__(self,
            config_options=self.config_options,
            require_config_file=False,
            config={
                "virtualenv_modules": [
                    "boto",
                    "redo",
                ],
                "virtualenv_path": "venv",
            },
            all_actions=[
                "create-virtualenv",
                "activate-virtualenv",
                "collect-individual-checksums",
                "create-big-checksums",
                "sign",
                "get-upload-script",
                "upload",
            ],
            default_actions=[
                "create-virtualenv",
                "activate-virtualenv",
                "collect-individual-checksums",
                "create-big-checksums",
                "sign",
                "get-upload-script",
                "upload",
            ],
        )

        self.checksums = {}
コード例 #31
0
ファイル: desktop_l10n.py プロジェクト: MDTsai/gecko-dev
 def summary(self):
     """generates a summary"""
     BaseScript.summary(self)
     # TODO we probably want to make this configurable on/off
     locales = self.query_locales()
     for locale in locales:
         self.locales_property.setdefault(locale, "Success")
     self.set_buildbot_property("locales", json.dumps(self.locales_property), write_to_file=True)
コード例 #32
0
 def summary(self):
     """generates a summary"""
     BaseScript.summary(self)
     # TODO we probably want to make this configurable on/off
     locales = self.query_locales()
     for locale in locales:
         self.locales_property.setdefault(locale, SUCCESS_STR)
     self.set_property("locales", json.dumps(self.locales_property))
コード例 #33
0
 def __init__(self, require_config_file=False):
     BaseScript.__init__(self,
                         config_options=self.config_options,
                         all_actions=[
                             'source',
                         ],
                         usage=SOURCE_TOOL_USAGE,
                         require_config_file=require_config_file)
コード例 #34
0
 def __init__(self):
     BaseScript.__init__(
         self,
         config_options=self.config_options,
         # other stuff
         all_actions=["setup-mock", "checkout-servo", "clobber-obj", "configure", "build", "check"],
         default_actions=["checkout-servo", "clobber-obj", "configure", "build", "check"],
         config={"default_vcs": "gittool", "backup_rust": True, "concurrency": 1, "log_level": DEBUG},
     )
コード例 #35
0
ファイル: desktop_l10n.py プロジェクト: seraphs/cssfixer
 def add_failure(self, locale, message, **kwargs):
     self.locales_property[locale] = "Failed"
     prop_key = "%s_failure" % locale
     prop_value = self.query_buildbot_property(prop_key)
     if prop_value:
         prop_value = "%s  %s" % (prop_value, message)
     else:
         prop_value = message
     self.set_buildbot_property(prop_key, prop_value, write_to_file=True)
     BaseScript.add_failure(self, locale, message=message, **kwargs)
コード例 #36
0
ファイル: configtest.py プロジェクト: ctalbert/mozharness
 def __init__(self, require_config_file=False):
     self.config_files = []
     BaseScript.__init__(self, config_options=self.config_options,
                         all_actions=['list-config-files',
                                      'test-json-configs',
                                      'test-python-configs',
                                      ],
                         default_actions=['test-json-configs',
                                          'test-python-configs'],
                         require_config_file=require_config_file)
コード例 #37
0
 def summary(self):
     """generates a summary"""
     BaseScript.summary(self)
     # TODO we probably want to make this configurable on/off
     locales = self.query_locales()
     for locale in locales:
         self.locales_property.setdefault(locale, "Success")
     self.set_buildbot_property("locales",
                                json.dumps(self.locales_property),
                                write_to_file=True)
コード例 #38
0
 def __init__(self, require_config_file=False):
     script_kwargs = {
         'all_actions': [
             "setup",
             "repackage",
         ],
     }
     BaseScript.__init__(self,
                         require_config_file=require_config_file,
                         **script_kwargs)
コード例 #39
0
    def __init__(self, require_config_file=True):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': [
                "clobber",
                "pull",
                "list-locales",
                "setup",
                "repack",
                "upload-repacks",
                "submit-to-balrog",
                "summary",
            ],
            'config': {
                "buildbot_json_path": "buildprops.json",
                "ignore_locales": ["en-US"],
                "locales_dir": "browser/locales",
                "previous_mar_dir": "previous",
                "current_mar_dir": "current",
                "update_mar_dir": "dist/update",
                "previous_mar_filename": "previous.mar",
                "current_work_mar_dir": "current.work",
                "buildid_section": "App",
                "buildid_option": "BuildID",
                "application_ini": "application.ini",
                "unpack_script": "tools/update-packaging/unwrap_full_update.pl",
                "log_name": "single_locale",
                "clobber_file": 'CLOBBER',
                "appName": "Firefox",
                "hashType": "sha512",
            },
        }
        #

        LocalesMixin.__init__(self)
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=require_config_file,
            **buildscript_kwargs
        )

        self.buildid = None
        self.make_ident_output = None
        self.bootstrap_env = None
        self.upload_env = None
        self.revision = None
        self.version = None
        self.upload_urls = {}
        self.locales_property = {}
        self.l10n_dir = None
        self.package_urls = {}
        self.partials = {}
        if 'mock_target' in self.config:
            self.enable_mock()
コード例 #40
0
ファイル: desktop_l10n.py プロジェクト: gerva/mozharness
    def __init__(self, require_config_file=True):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': [
                "clobber",
                "pull",
                "list-locales",
                "setup",
                "repack",
                "upload-repacks",
                "submit-to-balrog",
                "summary",
            ],
            'config': {
                "buildbot_json_path": "buildprops.json",
                "ignore_locales": ["en-US"],
                "locales_dir": "browser/locales",
                "previous_mar_dir": "previous",
                "current_mar_dir": "current",
                "update_mar_dir": "dist/update",
                "previous_mar_filename": "previous.mar",
                "current_work_mar_dir": "current.work",
                "buildid_section": "App",
                "buildid_option": "BuildID",
                "application_ini": "application.ini",
                "unpack_script": "tools/update-packaging/unwrap_full_update.pl",
                "log_name": "single_locale",
                "clobber_file": 'CLOBBER',
                "appName": "Firefox",
                "hashType": "sha512",
            },
        }
        #

        LocalesMixin.__init__(self)
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=require_config_file,
            **buildscript_kwargs
        )

        self.buildid = None
        self.make_ident_output = None
        self.repack_env = None
        self.upload_env = None
        self.revision = None
        self.version = None
        self.upload_urls = {}
        self.locales_property = {}
        self.l10n_dir = None
        self.package_urls = {}
        self.partials = {}
        if 'mock_target' in self.config:
            self.enable_mock()
コード例 #41
0
 def _add_failure(self, locale, message, **kwargs):
     """marks current step as failed"""
     self.locales_property[locale] = "Failed"
     prop_key = "%s_failure" % locale
     prop_value = self.query_buildbot_property(prop_key)
     if prop_value:
         prop_value = "%s  %s" % (prop_value, message)
     else:
         prop_value = message
     self.set_buildbot_property(prop_key, prop_value, write_to_file=True)
     BaseScript.add_failure(self, locale, message=message, **kwargs)
コード例 #42
0
ファイル: desktop_l10n.py プロジェクト: nwgh/gecko-dev
 def _add_failure(self, locale, message, **kwargs):
     """marks current step as failed"""
     self.locales_property[locale] = FAILURE_STR
     prop_key = "%s_failure" % locale
     prop_value = self.query_buildbot_property(prop_key)
     if prop_value:
         prop_value = "%s  %s" % (prop_value, message)
     else:
         prop_value = message
     self.set_buildbot_property(prop_key, prop_value, write_to_file=True)
     BaseScript.add_failure(self, locale, message=message, **kwargs)
コード例 #43
0
ファイル: desktop_l10n.py プロジェクト: makinglong/gecko-dev
 def _add_failure(self, locale, message, **kwargs):
     """marks current step as failed"""
     self.locales_property[locale] = FAILURE_STR
     prop_key = "%s_failure" % locale
     prop_value = self.query_property(prop_key)
     if prop_value:
         prop_value = "%s  %s" % (prop_value, message)
     else:
         prop_value = message
     self.set_property(prop_key, prop_value)
     BaseScript.add_failure(self, locale, message=message, **kwargs)
コード例 #44
0
ファイル: configtest.py プロジェクト: mnoorenberghe/gecko-dev
 def __init__(self, require_config_file=False):
     self.config_files = []
     BaseScript.__init__(self, config_options=self.config_options,
                         all_actions=['list-config-files',
                                      'test-json-configs',
                                      'test-python-configs',
                                      'summary',
                                      ],
                         default_actions=['test-json-configs',
                                          'test-python-configs',
                                          'summary',
                                          ],
                         require_config_file=require_config_file)
コード例 #45
0
ファイル: repackage.py プロジェクト: luke-chang/gecko-1
 def __init__(self, require_config_file=False):
     script_kwargs = {
         'all_actions': [
             "download_input",
             "setup",
             "repackage",
         ],
     }
     BaseScript.__init__(
         self,
         require_config_file=require_config_file,
         **script_kwargs
     )
コード例 #46
0
    def __init__(self, require_config_file=True):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': [
                "clobber",
                "pull",
                "clone-locales",
                "list-locales",
                "setup",
                "repack",
                "taskcluster-upload",
                "funsize-props",
                "submit-to-balrog",
                "summary",
            ],
            'config': {
                "ignore_locales": ["en-US"],
                "locales_dir": "browser/locales",
                "buildid_section": "App",
                "buildid_option": "BuildID",
                "application_ini": "application.ini",
                "log_name": "single_locale",
                "appName": "Firefox",
                "hashType": "sha512",
                'virtualenv_modules': [
                    'requests==2.8.1',
                ],
                'virtualenv_path': 'venv',
            },
        }

        LocalesMixin.__init__(self)
        BaseScript.__init__(self,
                            config_options=self.config_options,
                            require_config_file=require_config_file,
                            **buildscript_kwargs)

        self.buildid = None
        self.make_ident_output = None
        self.bootstrap_env = None
        self.upload_env = None
        self.revision = None
        self.version = None
        self.upload_urls = {}
        self.locales_property = {}
        self.pushdate = None
        # upload_files is a dictionary of files to upload, keyed by locale.
        self.upload_files = {}
コード例 #47
0
    def query_abs_dirs(self):
        if self.abs_dirs:
            return self.abs_dirs
        abs_dirs = BaseScript.query_abs_dirs(self)

        abs_work_dir = abs_dirs['abs_work_dir']
        dirs = {
            'shell_objdir':
                os.path.join(abs_work_dir, self.config['shell-objdir']),
            'mozharness_scriptdir':
                os.path.abspath(os.path.dirname(__file__)),
            'abs_analysis_dir':
                os.path.join(abs_work_dir, self.config['analysis-dir']),
            'abs_analyzed_objdir':
                os.path.join(abs_work_dir, self.config['srcdir'], self.config['analysis-objdir']),
            'analysis_scriptdir':
                os.path.join(self.config['srcdir'], self.config['analysis-scriptdir']),
            'abs_tools_dir':
                os.path.join(abs_dirs['base_work_dir'], 'tools'),
            'gecko_src':
                os.path.join(abs_work_dir, self.config['srcdir']),
            'abs_blob_upload_dir':
                os.path.join(abs_work_dir, 'blobber_upload_dir'),
        }

        abs_dirs.update(dirs)
        self.abs_dirs = abs_dirs

        return self.abs_dirs
コード例 #48
0
    def query_abs_dirs(self):
        if self.abs_dirs:
            return self.abs_dirs
        abs_dirs = BaseScript.query_abs_dirs(self)

        abs_work_dir = abs_dirs['abs_work_dir']
        dirs = {
            'shell_objdir':
                os.path.join(abs_work_dir, self.config['shell-objdir']),
            'mozharness_scriptdir':
                os.path.abspath(os.path.dirname(__file__)),
            'abs_analysis_dir':
                os.path.join(abs_work_dir, self.config['analysis-dir']),
            'abs_analyzed_objdir':
                os.path.join(abs_work_dir, self.config['srcdir'], self.config['analysis-objdir']),
            'analysis_scriptdir':
                os.path.join(self.config['srcdir'], self.config['analysis-scriptdir']),
            'abs_tools_dir':
                os.path.join(abs_dirs['base_work_dir'], 'tools'),
            'gecko_src':
                os.path.join(abs_work_dir, self.config['srcdir']),
            'abs_blob_upload_dir':
                os.path.join(abs_work_dir, 'blobber_upload_dir'),
        }

        abs_dirs.update(dirs)
        self.abs_dirs = abs_dirs

        return self.abs_dirs
コード例 #49
0
    def __init__(self):
        # fxbuild style:
        buildscript_kwargs = {
            'all_actions': DesktopPartnerRepacks.actions,
            'default_actions': DesktopPartnerRepacks.actions,
            'config': {
                "log_name": "partner-repacks",
                "hashType": "sha512",
                'workdir': 'partner-repacks',
            },
        }
        #

        BaseScript.__init__(self,
                            config_options=self.config_options,
                            **buildscript_kwargs)
コード例 #50
0
    def __init__(self):
        # fxbuild style:
        buildscript_kwargs = {
            "all_actions": DesktopPartnerRepacks.actions,
            "default_actions": DesktopPartnerRepacks.actions,
            "config": {
                "log_name": "partner-repacks",
                "hashType": "sha512",
                "workdir": "partner-repacks",
            },
        }
        #

        BaseScript.__init__(self,
                            config_options=self.config_options,
                            **buildscript_kwargs)
コード例 #51
0
 def __init__(self):
     BaseScript.__init__(
         self,
         config_options=self.config_options,
         config={},
         all_actions=[
             "gather-info",
             "create-config",
             "write-config",
         ],
         default_actions=[
             "gather-info",
             "create-config",
             "write-config",
         ],
     )
コード例 #52
0
    def __init__(self, require_config_file=False):
        script_kwargs = {
            'all_actions': [
                "download_input",
                "setup",
                "repackage",
            ],
        }
        BaseScript.__init__(self,
                            config_options=self.config_options,
                            require_config_file=require_config_file,
                            **script_kwargs)

        # Assert we have it either passed in or in environment
        assert self.config.get('signed_input'), \
            "Must pass --signed-input or be set in the environment as SIGNED_INPUT"
コード例 #53
0
ファイル: repackage.py プロジェクト: Wafflespeanut/gecko-dev
    def __init__(self, require_config_file=False):
        script_kwargs = {
            'all_actions': [
                "download_input",
                "setup",
                "repackage",
            ],
        }
        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=require_config_file,
            **script_kwargs
        )

        # Assert we have it either passed in or in environment
        assert self.config.get('signed_input'), \
            "Must pass --signed-input or be set in the environment as SIGNED_INPUT"
コード例 #54
0
ファイル: configtest.py プロジェクト: hop11/gecko-dev
 def __init__(self, require_config_file=False):
     self.config_files = []
     BaseScript.__init__(
         self,
         config_options=self.config_options,
         all_actions=[
             "list-config-files",
             "test-json-configs",
             "test-python-configs",
             "summary",
         ],
         default_actions=[
             "test-json-configs",
             "test-python-configs",
             "summary",
         ],
         require_config_file=require_config_file,
     )
コード例 #55
0
 def __init__(self, require_config_file=True):
     BaseScript.__init__(self,
                         config_options=self.config_options,
                         require_config_file=require_config_file,
                         # other stuff
                         all_actions=[
                             'clobber',
                             'download-shipped-locales',
                             'submit',
                         ],
                         default_actions=[
                             'clobber',
                             'download-shipped-locales',
                             'submit',
                         ],
                         )
     self.locales = None
     self.credentials = None
コード例 #56
0
ファイル: get_apk.py プロジェクト: MekliCZ/positron
    def __init__(self, require_config_file=False, config={},
                 all_actions=all_actions,
                 default_actions=default_actions):
        default_config = {
            # the path inside the work_dir ('build') of where we will install the env.
            # pretty sure it's the default and not needed.
            'virtualenv_path': 'venv',
        }

        default_config.update(config)

        BaseScript.__init__(
            self,
            config_options=self.config_options,
            require_config_file=require_config_file,
            config=default_config,
            all_actions=all_actions,
        )
コード例 #57
0
    def query_abs_dirs(self):
        if self.abs_dirs:
            return self.abs_dirs
        abs_dirs = BaseScript.query_abs_dirs(self)

        dirs = {"objdir": os.path.join(abs_dirs["abs_work_dir"], "objdir")}

        abs_dirs.update(dirs)
        self.abs_dirs = abs_dirs
        return self.abs_dirs
コード例 #58
0
ファイル: submit-to-ct.py プロジェクト: luke-chang/gecko-1
    def __init__(self):
        BaseScript.__init__(self,
                            config_options=self.config_options,
                            config={
                                "virtualenv_modules": [
                                    "pem",
                                    "redo",
                                    "requests",
                                ],
                                "virtualenv_path": "venv",
                            },
                            require_config_file=False,
                            all_actions=["add-chain"],
                            default_actions=["add-chain"],
                            )

        self.chain_url = self.config["chain"]
        self.log_url = self.config["log"]
        self.sct_filename = self.config["sct"]
コード例 #59
0
    def query_abs_dirs(self):
        if self.abs_dirs:
            return self.abs_dirs
        abs_dirs = BaseScript.query_abs_dirs(self)

        dirs = {
            'objdir': os.path.join(abs_dirs['abs_work_dir'], 'objdir'),
        }

        abs_dirs.update(dirs)
        self.abs_dirs = abs_dirs
        return self.abs_dirs