INNER CODE UNIT · Python

main

varunsalian/debrify · tool/webdav_memory_stress/run.py:215

def main():
    runner_sha256 = hashlib.sha256(pathlib.Path(__file__).read_bytes()).hexdigest()
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("--case", action="append", choices=[c[0] for c in CASES])
    parser.add_argument("--skip-build", action="store_true", help="Reuse an image you just built")
    parser.add_argument("--allow-probe-oom", action="store_true",
                        help="Exploratory run: record probe OOMs without failing the suite")
    parser.add_argument("--timeout", type=int, default=900, help="Per-case timeout in seconds")
    parser.add_argument("--report", type=pathlib.Path, required=True, help="New JSONL result file")
    args = parser.parse_args()
    # Never overwrite an existing run, even if setup fails.
    args.report.parent.mkdir(parents=True, exist_ok=True)
    with args.report.open("x"):
        pass
    # Resolve the mutable tag only once for --skip-build. A new build instead
    # returns its own immutable ID, so concurrent retagging cannot select it.
    selected_image = inspect_image(IMAGE if args.skip_build else build())
    fingerprint = verified_fingerprint(selected_image)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…