INNER CODE UNIT · Python

key

wolfSSL/wolfssl-examples · .github/scripts/ci_triage.py:202

    def key(r):
        return (r["id"], r.get("ref", ""), r.get("target", ""))

    first = {key(r): r for r in fetch_results(run_id, 1)}
    if attempt >= 2:
        for r in fetch_results(run_id, attempt):
            first[key(r)] = r
    return list(first.values())


def classify(run_id, attempt, retry_note):
    """Fold per-target results into a per-dir observation."""
    a1 = defaultdict(list)
    for r in fetch_results(run_id, 1):
        a1[r["id"]].append(r["status"])
    final = defaultdict(list)
    for r in merged_results(run_id, attempt):
        final[r["id"]].append(r["status"])

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…