Example #1
0
    def __init__(self, args):
        output_basedir = ProjectUtils.get_output_basedir(PROJECT_NAME)
        self.operation_mode = args.operation_mode
        self.validate_operation_mode()

        if self.operation_mode == OperationMode.GSHEET:
            self.gsheet_wrapper_normal = GSheetWrapper(args.gsheet_options)
            gsheet_options = copy.copy(args.gsheet_options)
            gsheet_options.worksheet = gsheet_options.worksheet + "_aggregated"
            self.gsheet_wrapper_aggregated = GSheetWrapper(gsheet_options)

        # Reuse UNIT_TEST_RESULT_AGGREGATOR's project name as we need the same credentials
        self.authorizer = GoogleApiAuthorizer(
            ServiceType.GMAIL,
            project_name=f"{UNIT_TEST_RESULT_AGGREGATOR}",
            secret_basedir=SECRET_PROJECTS_DIR,
            account_email="*****@*****.**")
        self.gmail_wrapper = GmailWrapper(self.authorizer,
                                          output_basedir=output_basedir)
Example #2
0
 def setup_dirs():
     ProjectUtils.get_output_basedir(PROJECT_NAME)
     ProjectUtils.get_logs_dir()
 def setup_dirs(self):
     self.project_out_root = ProjectUtils.get_output_basedir(PROJECT_NAME)
     self.search_basedir = self.options.search_basedir
     FileUtils.ensure_dir_created(self.search_basedir)
Example #4
0
 def setup_dirs(self):
     self.project_out_root = ProjectUtils.get_output_basedir(PROJECT_NAME)
     self.yarn_patch_dir = ProjectUtils.get_output_child_dir(YARN_TASKS)