INNER CODE UNIT · Python

build_test_matrix

trinodb/trino · .github/bin/build-matrix-schedule-aware.py:365

def build_test_matrix(args: argparse.Namespace, _: list[str]):
    logging.basicConfig(level=args.loglevel)

    with open(args.schedule_config, "r") as config_file:
        configs = load_schedule_configs(config_file)

    try:
        with open(args.impacted, "r") as impacted_file:
            impacted = {
                line.strip()
                for line in impacted_file.readlines()
                if len(line.strip()) > 0
            }
        logging.info("Read impacted: %s", impacted)
    except FileNotFoundError:
        logging.warning("impacted file %s not found, using empty set", args.impacted)
        impacted = set()
    except OSError as e:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…