Exemple #1
0
 def _get_multiversion_setup(self):
     if self.download_symbols_only:
         download_options = _DownloadOptions(db=False,
                                             ds=True,
                                             da=False,
                                             dv=False)
     else:
         download_options = _DownloadOptions(db=True,
                                             ds=True,
                                             da=False,
                                             dv=False)
     return SetupMultiversion(download_options=download_options,
                              ignore_failed_push=True)
Exemple #2
0
    def setUp(self):
        self.buildvariant_name = "buildvariant-name"
        self.generic_buildvariant_name = "generic-buildvariant-name"
        edition = "edition"
        platform = "platform"
        architecture = "architecture"
        raw_yaml_config = {
            "evergreen_projects": [
                "mongodb-mongo-master",
                "mongodb-mongo-v4.4",
            ],
            "evergreen_buildvariants": [
                {
                    "name": self.buildvariant_name,
                    "edition": edition,
                    "platform": platform,
                    "architecture": architecture,
                },
                {
                    "name": self.generic_buildvariant_name,
                    "edition": evergreen_conn.GENERIC_EDITION,
                    "platform": evergreen_conn.GENERIC_PLATFORM,
                    "architecture": evergreen_conn.GENERIC_ARCHITECTURE,
                },
            ]
        }

        download_options = _DownloadOptions(db=True,
                                            ds=False,
                                            da=False,
                                            dv=False)

        options = Namespace(
            install_dir="install",
            link_dir="link",
            edition=edition,
            mv_platform=platform,
            architecture=architecture,
            use_latest=False,
            versions=["4.2.1"],
            evergreen_config=None,
            github_oauth_token=None,
            download_options=download_options,
            debug=False,
        )
        with patch(
                "buildscripts.resmokelib.setup_multiversion.config.SetupMultiversionConfig"
        ) as mock_config:
            mock_config.return_value = SetupMultiversionConfig(raw_yaml_config)
            self.setup_multiversion = SetupMultiversion(**vars(options))
Exemple #3
0
 def _get_multiversion_setup():
     # Add the args we care about.
     download_options = _DownloadOptions(db=True, ds=True, da=False)
     return SetupMultiversion(download_options=download_options,
                              ignore_failed_push=True)