Repository navigation
fix(ui): send the service's runner when testing a connection from the service page - #38132
Conversation
… service page The service page's Test Connection read the service's ingestion runner from a runner list that loads asynchronously. When the service loaded first, the runner resolved to nothing and was never recomputed, so the test ran on the default runner. The Connections (AI mode) service page never passed the runner at all. Both pages now resolve it once getExtraInfo() has loaded the runner list.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
A test started before the extra info loaded still went out without the service's runner. Both service pages now keep the button disabled until getExtraInfo() settles.
Code Review ✅ Approved 🟡 Medium riskPassing the service runner changes connection-test routing; stale runner data could send tests to the wrong environment and produce misleading failures. Test Connection on service pages now sends the service's Hybrid Runner, so connections whose secrets only that runner can read no longer fail on the default SaaS runner. Both the classic and Connections service pages pass the runner, and no issues were found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Issue: to be linked (tracking issue pending).
Problem: for a service bound to a Hybrid Runner, Test Connection on the service page can run on the default (SaaS) runner instead of the service's runner. A connection whose secret only that runner can read then fails, while Edit Connection → Test Connection passes.
Fix: both service pages now send the service's runner with the test.
getExtraInfo()finishes.<TestConnection>. It now does, the same way.A companion Collate change makes the server fall back to the service's runner when a request names none.
Type of change:
Tests:
Use cases covered
Live check (local Collate stack, Hybrid pipeline client, real Chrome, production build of this branch)
Classic and AI mode × services with no runner / SaaS runner / hybrid runner × quick test and Edit Connection, with a normal load and with
GET /ingestionRunnersdelayed 3s. The runner the server resolved was read from its log.Backports
Unit tests
ServiceDetailsPage.test.tsx: fails without the fix (runner stays empty), passes with it.ConnectionServiceDetailsPage.test.tsx: fails without the fix, passes with it.TestConnection: 5 suites, 233 tests pass. The disabled-until-loaded tests fail without the change.Details
extraInfoDatawas auseMemoover[serviceDetails]only, while the runner list it reads is filled by an un-awaitedgetExtraInfo(). If the service request finished first, the memo returnednulland nothing re-ran it. Reproduced in a browser by delayingGET /api/v1/ingestionRunners: 3/3 test requests went out with noingestionRunner. Without the delay it was sent 5/5.isExtraInfoLoadedflag set ingetExtraInfo().finally(...).getExtraInfo()is a no-op promise in OSS, so there's no behaviour change outside Collate.

Confidence Score: 5/5
The PR appears safe to merge; no new actionable issues were found.Summary
Both service pages now wait for runner information before allowing connection tests and pass the service's runner to the test.
Reviews (6) · Last reviewed commit: "Keep Test Connection disabled until the ..." · Reviewed by Greptile