Skip to content

fix(repos): use latest check run per name in onboard row 9 #7794

Done

Description

@dan-petty

Problem

In src/devops_cli/github/onboard/template_pr.py, _read_checks treats every completed check run on the head SHA whose conclusion is not in _PASSED_CONCLUSIONS as failed (failed = tuple(sorted(str(run["name"]) for run in runs if run.get("status") == "completed" and run.get("conclusion") not in _PASSED_CONCLUSIONS))).

Observed live on dan-petty/infra#260 during devops repos onboard dan-petty/infra --confirm:

  • When devops repos onboard opened dan-petty/infra#260 on ci/repository-template, GitHub Actions created two check runs for PR title / Semantic PR title on the same head SHA: check run 141425613840 (conclusion: "cancelled") and check run 141425615234 (conclusion: "success").
  • Because _read_checks does not deduplicate check runs by name (latest check run wins), Row 9 reported 9. Template pull request: failed (#260: failed checks PR title / Semantic PR title) and skipped Rows 10 and 11 even though PR title / Semantic PR title passed on that head.

Expected Behavior

_read_checks should evaluate each check name by its latest check run (or not mark a check name as failed when a newer completed check run of the same name passed).

Activity

  1. added
    type/bug
    source/agent
    status/new
    value/medium
    on Nov 29, 2026
  2. dan-petty commented on Nov 29, 2026

    @dan-petty
    OwnerAuthor
  3. added
    effort/low
    scope/repos
    priority/p2-medium
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 29, 2026
  4. removed
    status/in-review
    on Nov 29, 2026
  5. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-29 18:59 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/repossource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions