Skip to content

BUG-11: pr_status reads only commit statuses, so Actions check runs never satisfy the worker #87

Closed

Description

@ephico2real2

Part of #18

Related: #60, #61

What is wrong: pr_status reads only commit statuses, so a check run from GitHub Actions never satisfies the worker. cmapi/src/cmapi/core/git/github.py:116 calls GET /repos/{r}/commits/{sha}/status, the combined commit status. GitHub Actions reports check runs, which GitHub's REST docs say that endpoint does not include. Once ci/kubeconform and ci/kyverno come from cluster-configs-nonprod's own Actions, the worker sees neither and pr_checks waits for ever.

Where: cmapi/src/cmapi/core/git/github.py:116. The line exists at ecc5cb3 and reads /commits/{head}/status.

How to prove it: A MockTransport test: a commit with no statuses and two successful check runs under /commits/{sha}/check-runs must read as green. It fails on main today because pr_status never calls that path. Then on the real repository: a PR whose ci/* come from Actions merges. The test is cmapi/tests/service/test_github_check_runs.py::test_no_statuses_and_two_successful_check_runs_read_as_green, on branch fix-pr-status-check-runs only.

Measured or inferred: Found by reading the source; not yet run against GitHub.

Severity: Low. No site uses the GitHub adapter yet, so no code path reaches the defect. Wave 3 reaches it.

What must hold after the fix: pr_status reads both endpoints and merges by context name. pr_checks.py stops posting ci/*. The App needs Checks: read.

Research: Not complete. Reviewer 1 stopped midway with two findings that the coordinator did not check again (HANDOVER-AND-RESUME.md). C1: neutral and skipped read as failures, unlike GitHub's required checks. C3: a commit with 1,001 check suites hides a failure. The record is docs/reviews/2026-11-06-pr112/night/87/.

Solution: Commit f196902 on branch fix-pr-status-check-runs, by an Opus 5.5 implementer. It has no pull request and no complete review. It goes in the GitHub adapter PR.

Class: No class. The fix makes pr_status read what GitHub reports, which is the intended behavior, and adds no control.

Activity

  1. ephico2real2 commented on Nov 6, 2026

    @ephico2real2
    OwnerAuthor

    Fix committed on branch fix-pr-status-check-runs (f196902), by an Opus 5.5 implementer. Not reviewed, no pull request yet: parked to save tokens, at the owner's request, until Wave 1 is on CRC.

  2. added 2 commits that reference this issue on Nov 6, 2026
  3. added
    In-Progress
    bug
    sev:low
    status:open
    on Nov 13, 2026
  4. changed the title [-]pr_status reads only commit statuses, so Actions check runs never satisfy the worker[/-] [+]BUG-11: pr_status reads only commit statuses, so Actions check runs never satisfy the worker[/+] on Nov 13, 2026
  5. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    Work tag: In-Progress. Commit f196902 on branch fix-pr-status-check-runs holds a fix and its tests. The branch has no pull request. Reviewer 1 stopped midway (HANDOVER-AND-RESUME.md). Read from gh and git at 2026-11-13T09:18Z.

  6. added
    In-QA
    and removed
    In-Progress
    on Nov 13, 2026
  7. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    In-QA: the pull request above closes this issue. The review is ruled (docs/reviews/2026-11-13-issue-87/README.md on the branch). CI on its head was not read yet when this was written.

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

    In-QAbugsev:lowstatus:open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions