INNER CODE UNIT · Python

end

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

    end = time.monotonic() + RETRY_DEADLINE_S
    seen = before
    while time.monotonic() < end:
        time.sleep(POLL_INTERVAL_S)
        try:
            run = gh(f"/repos/{REPO}/actions/runs/{run_id}")
        except Exception:
            continue
        seen = int(run.get("run_attempt", before))
        # ORDER MATTERS: right after the POST the run still reads
        # completed/attempt=1. Checking status first returns on the first poll
        # and reports attempt 1 as though the retry had run.
        if seen <= before:
            continue
        if run.get("status") == "completed":
            return seen, ""
    if seen <= before:
        return before, "retry never started; reporting first-attempt results"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…