INNER CODE UNIT · Python

canonicalRequestedGroups

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

def canonicalRequestedGroups(requestedGroups, full):
    return [] if full else sorted(set(requestedGroups))


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": [],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…