Skip to content

Implement broker-listener WebSocket connectivity probes. - #4753

Merged
TingluoHuang merged 1 commit into
mainfrom
users/tihuang/sockettest
Oct 1, 2026
Merged

TingluoHuang merged 1 commit into
mainfrom
users/tihuang/sockettest

Conversation

@TingluoHuang

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings October 1, 2026 18:11
@TingluoHuang
TingluoHuang requested a review from a team as a code owner October 1, 2026 18:11

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 review overview

🟡 Changes recommended

The probe has an endpoint-scheme incompatibility plus retry and close-path correctness issues.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Adds a broker-listener WebSocket connectivity probe with telemetry and proxy support.

Changes:

  • Adds authenticated WebSocket connection and retry handling.
  • Starts probes from job variables and records results as job telemetry.
  • Extends runner proxy handling for ws/wss.
File Description
src/​Sdk/​WebApi/​WebApi/​BrokerHttpClient.cs Adds WebSocket connection support.
src/​Sdk/​DTWebApi/​WebApi/​WellKnownDistributedTaskVariables.cs Defines the probe URL variable.
src/​Sdk/​DTWebApi/​WebApi/​BrokerWebSocketProbeResult.cs Adds the telemetry result model.
src/​Runner.Worker/​JobExtension.cs Manages probe lifecycle and telemetry.
src/​Runner.Sdk/​Util/​VssUtil.cs Configures proxy support for raw HTTP handlers.
src/​Runner.Sdk/​RunnerWebProxy.cs Routes WebSocket schemes through configured proxies.
src/​Runner.Common/​BrokerServer.cs Implements the WebSocket probe loop.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Runner.Worker/JobExtension.cs
Comment thread src/Runner.Common/BrokerServer.cs
Comment thread src/Runner.Common/BrokerServer.cs
@TingluoHuang
TingluoHuang merged commit cac9b56 into main Oct 1, 2026
13 checks passed
@TingluoHuang
TingluoHuang deleted the users/tihuang/sockettest branch October 1, 2026 18: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.

3 participants