#!/usr/bin/env python3 # SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 import argparse import re import sys from typing import Dict, Tuple from benchmarks.utils.workflow import run_benchmark_workflow def validate_inputs(inputs: Dict[str, str]) -> None: """Validate that all inputs are HTTP endpoints""" for label, value in inputs.items(): if not value.lower().startswith(("http://", "https://")): raise ValueError( f"Input '{label}' must be an HTTP endpoint (starting with http:// or https://). Got: {value}" ) # Validate reserved labels if label.lower() == "plots": raise ValueError( "Label 'plots' is reserved and cannot be used. Please choose a different label." ) def parse_input(input_str: str) -> Tuple[str, str]: """Parse input string in format key=value with additional validation""" if "=" not in input_str: raise ValueError( f"Invalid input format. Expected: