Skip to content

refactor(changeprovider): Read Phabricator diffs through platform/conduit - #1014

Merged
roychying merged 3 commits into
mainfrom
chenghan.ying/changeprovider-phab-conduit
Nov 14, 2026
Merged

roychying merged 3 commits into
mainfrom
chenghan.ying/changeprovider-phab-conduit

Conversation

@roychying

@roychying roychying commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Why?

The Phabricator change provider hand-rolls its Conduit call: flat ids[]= fields in the URL query, its own envelope type, Conduit errors as plain strings, and a token transport in the orchestrator wiring. Moving it onto platform/conduit makes it the first consumer of the shared client.

What?

  • Params.HTTPClient becomes Params.Conduit *conduit.Client. differential.querydiffs is now one Call with {"ids": [...]}, and a diff missing from the result is still an error.
  • A Conduit error_code surfaces as *conduit.Error instead of a formatted string; HTTP failures stay platform/http.StatusError, so classification is unchanged.
  • The orchestrator wiring builds the client in conduitClient, next to githubClient, and drops apiTokenTransport.
  • platform/README.md describes the protocol, endpoint and wiring layers that GitHub and Phabricator callers share.

Test Plan

bazel test //submitqueue/extension/changeprovider/phabricator/... //service/submitqueue/orchestrator/server/...

Issue

@roychying
roychying added this pull request to stack #1015 November 5, 2026 05:53
@roychying
roychying force-pushed the chenghan.ying/changeprovider-phab-conduit branch from 0b15719 to 0b516ed Compare November 7, 2026 02:19
@roychying
roychying force-pushed the chenghan.ying/changeprovider-phab-conduit branch from 0b516ed to 7621a1b Compare November 14, 2026 04:32
@roychying
roychying marked this pull request as ready for review November 14, 2026 04:33
Base automatically changed from chenghan.ying/platform-conduit to main November 14, 2026 04:56
@roychying
roychying force-pushed the chenghan.ying/changeprovider-phab-conduit branch from 7621a1b to a5db8e9 Compare November 14, 2026 04:56
@roychying
roychying enabled stacked auto-merge November 14, 2026 04:57
@roychying
roychying added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 3b94c33 Nov 14, 2026
21 checks passed
@roychying
roychying deleted the chenghan.ying/changeprovider-phab-conduit branch November 14, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants