Skip to content

fix(ui): send the service's runner when testing a connection from the service page - #38132

Merged
sonika-shah merged 2 commits into
mainfrom
fix/test-connection-service-runner
Nov 19, 2026
Merged

sonika-shah merged 2 commits into
mainfrom
fix/test-connection-service-runner

Conversation

@sonika-shah

@sonika-shah sonika-shah commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • Classic service page: the runner was computed before the runner list had loaded and never recomputed. It is now resolved after getExtraInfo() finishes.
  • Connections (AI mode) service page: never passed the runner to <TestConnection>. It now does, the same way.
  • Both pages: Test Connection stays disabled until the runner list has loaded, so a click can't send the test before the runner is known.

A companion Collate change makes the server fall back to the service's runner when a request names none.

Type of change:

  • Bug fix

Tests:

Use cases covered

  • Classic service page, runner list loads after the service: the test request carries the service's runner.
  • Connections service page: the test request carries the service's runner.

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 /ingestionRunners delayed 3s. The runner the server resolved was read from its log.

  • This branch: 24/24 correct. On a delayed list the button is disabled until the list loads, then the request carries the service's runner.
  • Current main UI, delayed list: the quick test sends no runner for SaaS and hybrid services in both modes, so the server runs it on SaaS.

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.
  • Both page suites plus TestConnection: 5 suites, 233 tests pass. The disabled-until-loaded tests fail without the change.
Details
  • extraInfoData was a useMemo over [serviceDetails] only, while the runner list it reads is filled by an un-awaited getExtraInfo(). If the service request finished first, the memo returned null and nothing re-ran it. Reproduced in a browser by delaying GET /api/v1/ingestionRunners: 3/3 test requests went out with no ingestionRunner. Without the delay it was sent 5/5.
  • The fix gates the memo on an isExtraInfoLoaded flag set in getExtraInfo().finally(...).
  • getExtraInfo() is a no-op promise in OSS, so there's no behaviour change outside Collate.

RetriggerView in GreptileConfidence 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.

  • Service-page connection tests now use the service's runner.

Reviews (6) · Last reviewed commit: "Keep Test Connection disabled until the ..." · Reviewed by Greptile

… 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.
@sonika-shah
sonika-shah requested a review from a team as a code owner November 18, 2026 14:19
@sonika-shah
sonika-shah requested review from chirag-madlani and a balanced review from Copilot November 18, 2026 14:19
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

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.
Copilot AI balanced review requested due to automatic review settings November 18, 2026 17:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@gitar-bot

gitar-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Passing 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.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonika-shah
sonika-shah merged commit ae47f66 into main Nov 19, 2026
54 of 61 checks passed
@sonika-shah
sonika-shah deleted the fix/test-connection-service-runner branch November 19, 2026 09:27
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.

3 participants