forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci_manifest.py
More file actions
29 lines (23 loc) 路 714 Bytes
/
Copy pathci_manifest.py
File metadata and controls
29 lines (23 loc) 路 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
import logging
from abc import ABC, abstractmethod
from typing import Any
from ci_workflow.ci_args import CiArgs
class CiManifest(ABC):
def __init__(self, manifest: Any, args: CiArgs) -> None:
self.manifest = manifest
self.args = args
def check(self) -> None:
try:
self.__check__()
except:
logging.error("CI Manifest check failed")
raise
@abstractmethod
def __check__(self) -> None:
pass