INNER CODE UNIT · Python

job_urls

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

def job_urls(run_id):
    """(unit, ref) -> the URL of the job that ran it.

    Linking the run only makes a reader hunt through 250 jobs for the red one.
    """
    out = {}
    for j in all_jobs(run_id):
        name, url = j.get("name", ""), j.get("html_url")
        m = HOST_JOB_RE.match(name)
        if m:
            out[(m.group(1), m.group(2))] = url
            continue
        t, ref = job_unit(name)
        if t:
            out[(t, ref)] = url
    return out

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…