INNER CODE UNIT · Python

requestNonce

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

def requestNonce(prNumber, headSHA, baseSHA, catalogRevision):
    return e2eSelector.requestNonce(prNumber, headSHA, baseSHA, catalogRevision)


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),
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…