INNER CODE UNIT · Python

parseCommand

kubeovn/kube-ovn · hack/e2e_control.py:25

def parseCommand(body):
    body = body.strip()
    if not body.startswith("/test e2e") and not body.startswith("/retest e2e-failed"):
        return None
    binding = rf" --head ({headPattern}) --nonce ({noncePattern})"
    match = re.fullmatch(rf"/test e2e{binding}", body)
    if match:
        return {
            "action": "dispatch",
            "requestedGroups": [],
            "full": False,
            "headSHA": match.group(1),
            "nonce": match.group(2),
        }
    match = re.fullmatch(rf"/test e2e-all{binding}", body)
    if match:
        return {
            "action": "dispatch",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…