INNER CODE UNIT · Python
scrub
wolfSSL/wolfssl-examples · .github/scripts/issue_store.py:45
def scrub(text):
if not text:
return text
for pat, repl in SCRUB:
text = pat.sub(repl, text)
return text
# --- failure signature -----------------------------------------------------
#
# Deterministic, derived from the log -- never from the AI's prose, which wobbles
# run to run and would produce a "changed" comment every night.
ERR_RE = re.compile(
r"^.*?(?:\berror\b|undefined reference|Assertion .* failed|"
r"Segmentation fault|No rule to make target|identity gate).*$",
re.M | re.I,
)