INNER CODE UNIT · Python

main

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

def main():
    run = gh(f"/repos/{REPO}/actions/runs/{RUN_ID}")
    attempt = int(run.get("run_attempt", 1))
    retry_note = ""

    if AUTO_RETRY and attempt == 1:
        nonpass = [
            j for j in all_jobs(RUN_ID) if j.get("conclusion") in ("failure", "cancelled")
        ]
        if nonpass:
            print(f"{len(nonpass)} non-passing job(s); retrying once and waiting...")
            attempt, retry_note = rerun_and_wait(RUN_ID)
            if retry_note:
                print(f"note: {retry_note}", file=sys.stderr)

    try:
        report(attempt, retry_note)
    except Exception:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…