Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(azure-devops): report pull request checks #22555

Closedamv146(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/22555/headopened View on GitHub

Problem

Azure DevOps pull requests show no checks. The Checks panel, the pull request detail, and pull request watching always see an empty list, even when the pull request has required builds or posted statuses.

Change

The Azure DevOps provider now reads checks the way Azure's own Checks list does:

  • Branch policy evaluations (az repos pr policy list): build, status, and other policies, with required ones marked. A build that never queued shows as not run, and an expired build counts as a failure.
  • Statuses posted on the pull request (pullRequestStatuses): these name and link the checks that policies cover. Statuses no policy covers appear as optional checks, keeping only the latest per genre/name. A JMESPath --query keeps only the fields we read, which cuts the response from about 538 KB to 128 KB on a busy pull request.

getChangeRequestChecks reads the policies at the same time as the pull request, then the statuses once the repository location is known. getChangeRequest fills checks with the same mapping. If the status read fails, the policy checks still show. If the check read fails in the detail view, the list is empty rather than the whole view failing, matching how the changed-file count already behaves.

Scope and approval

No prior issue or discussion. The Azure DevOps provider already exists, and every other host fills pull request checks; Azure DevOps returned an empty list. This fills that list using the existing check shape. No client, contract, or capability changes.

Verification

  • vp test run --config ../../vite.config.ts --dir . src/server in packages/source-control-azure-devops: 158 of 159 tests pass. New tests cover policy mapping, status merging and dedupe, soft status failure, and the trimmed status query. The one failure, AzureDevOpsCli.test.ts > creates pull requests using the body file as the Azure description, is in a file this PR doesn't touch. On Windows it fails because the test hard-codes /tmp.
  • vp run typecheck in the same package: passes.
  • vp lint and vp fmt --check on the changed directory: clean.
  • Manually, against a real Azure DevOps pull request: the checks flow went from about 10 s to about 5 s (median) after the payload trim and the concurrent reads.

Claude Opus 5.5 via T3 Code (acpRegistry harness).

Closes #18728

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

      See the conflict window.

    3. Note

      🤖 Claude Opus 5.5 responding on behalf of Theo

      Closing. This PR conflicts with main in 6 files, which is more than we will review as a rebase. If the change still matters, open a fresh PR from current main.

Sign in to join this conversation.