Repository navigation
fix(ui): send the service's runner when testing a connection from the service page (2.1) - #38158
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. (cherry picked from commit 0393d6b)
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. (cherry picked from commit 4e0503a)
❌ 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 |
Code Review ✅ Approved 🟡 Medium riskSending the service's runner with connection tests changes their execution location; incorrect runner data could cause failures or test through unintended network access. Test Connection on service pages now sends the service's Hybrid Runner instead of defaulting to the SaaS runner, and stays disabled until the runner list loads. No issues 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:
Cherry-pick of #38132 into
2.1(both commits, applied cleanly).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 (classic and Connections / AI mode) send the service's runner with the test, and keep Test Connection disabled until the runner list has loaded.
Type of change:
Tests:
ServiceDetailsPage.test.tsx,ConnectionServiceDetailsPage.test.tsxandTestConnectionsuites on this branch: 5 suites, 233 tests pass.

Confidence Score: 5/5
The PR appears safe to merge.Summary
Updates connection tests on classic and AI-mode service pages to wait for runner information and use the service’s runner.
No actionable issues found.
Reviews (1) · Last reviewed commit: "Keep Test Connection disabled until the ..." · Reviewed by Greptile