# 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 import sys from system import console from validation_workflow.validation_args import ValidationArgs from validation_workflow.validation_test_runner import ValidationTestRunner # type: ignore def main() -> int: args = ValidationArgs() console.configure(level=args.logging_level) logging.getLogger("urllib3").setLevel(logging.WARNING) test_result = ValidationTestRunner.dispatch(args, args.distribution).run() logging.info(f'final test_result = {test_result}') return 0 if test_result else 1 # type: ignore if __name__ == "__main__": sys.exit(main())