Skip to content

BUG-09: The GitHub adapter has never been exercised #61

Closed

Description

@ephico2real2

Part of #18

What is wrong: cmapi/src/cmapi/core/git/github.py is written to the documented REST endpoints and has no test and no host. Needs a fake-transport test at least, and a run against a real repository before any site uses it. Raised by Opus (C10) and Codex.

Where: cmapi/src/cmapi/core/git/github.py. The file exists at ecc5cb3.

How to prove it: Run the adapter against a real GitHub repository: open a pull request, read its status, and merge it. A new test in cmapi/tests/service/ shows the fake-transport part, not written yet.

Measured or inferred: Measured by reading the code when filed. Since then, cmapi/tests/service/test_third_pass_converged.py and test_third_pass_fixes.py call GitHubProvider.contains() on a fake transport. This sweep did not check the other methods. No run against GitHub exists (HANDOVER-AND-RESUME.md, "Not proven anywhere yet").

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

What must hold after the fix: Each method of the adapter has a test on a fake transport. One run against a real repository passes, with its output saved.

Research: Not done yet.

Solution: Not written. Wave 3 builds the GitHub adapter and opens a real pull request on cluster-configs-nonprod.

Class: TDT. The adapter has no test, which is a weak test left by an earlier shortcut.

Activity

  1. added
    Backlog
    bug
    class:TDT
    sev:low
    status:open
    on Nov 13, 2026
  2. changed the title [-]Open: the GitHub adapter has never been exercised[/-] [+]BUG-09: The GitHub adapter has never been exercised[/+] on Nov 13, 2026
  3. ephico2real2 commented on Nov 16, 2026

    @ephico2real2
    OwnerAuthor

    Exercised live on CRC (OpenShift Local), 2026-11-15/16, by the GitHub adapter of #286 (PR #288, core/git/github.py): open PR, read state, merge pinned to a sha, branch delete, on ephico2real2/cmapi-cluster-configs PRs #5, #6 (OB1 run 11), #7 (Git over SSH, coordinator), #8, #9 (portal, OB1 run 13), #10, #11 (portal quota changes, OB1 run 15); each request reached synced. Evidence: workbench/cmapi/ob1-run11, ob1-run13, ob1-run15 logs/live.

  4. added 2 commits that reference this issue on Nov 16, 2026
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

    Backlogbugclass:TDTsev:lowstatus:open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions