INNER CODE UNIT · Python
parseRequestMarker
kubeovn/kube-ovn · hack/e2e_control.py:547
def parseRequestMarker(body):
match = re.search(r"<!-- x86-e2e-request (\{[^\n]*\}) -->", body)
if not match:
return None
return validateRequestMarker(json.loads(match.group(1)))
def evaluateGate(
plan,
currentHeadSHA,
runConclusion,
approved,
expectedCatalogRevision=None,
executedPlan=None,
trustedExecution=True,
):
if plan.get("headSHA") != currentHeadSHA:
return {