Skip to content

test(client-azure-end-to-end): fix Azure connect timeouts#25781

Merged
jason-ha merged 2 commits intomicrosoft:mainfrom
jason-ha:test/presence/azure-connect-timeout-increase
Oct 31, 2025
Merged

test(client-azure-end-to-end): fix Azure connect timeouts#25781
jason-ha merged 2 commits intomicrosoft:mainfrom
jason-ha:test/presence/azure-connect-timeout-increase

Conversation

@jason-ha
Copy link
Contributor

@jason-ha jason-ha commented Oct 30, 2025

allow more time for connecting to real AFR service in Presence tests.

Change from a fixed 10s to dynamic time based on number of clients.

Additionally changes:

  • fix beforeEach cross contamination from different client counts by injected a describe block within loop body
  • output beforeEach completion time (otherwise untracked from mocha output)
  • output timestamp under verbose logging
  • send along or request and show log if connect times out

allow more time for connecting to real AFR service in Presence tests.

Change from a fixed 10s to dynamic time based on number of clients.

Additionally changes:
- output timestamp under verbose logging
- send along or request and show log if connect times out
@github-actions github-actions bot added the base: main PRs targeted against main branch label Oct 30, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves timeout handling and debugging capabilities in multiprocess end-to-end tests for Azure client presence functionality. The changes address test reliability issues by adjusting timeout values and adding better error context when connections fail.

  • Increased Azure timeout multiplier from 3 to 5
  • Added explicit test case timeouts based on child connection timeout expectations
  • Enhanced error messages with diagnostic information (logs) when connection failures occur

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
presenceTest.spec.ts Increased Azure timeout multiplier to 5 and added explicit test case timeouts for two test suites
orchestratorUtils.ts Added connectTimeoutMs parameter to connection messages and debug reporting on first child connection failure
messageTypes.ts Made connectTimeoutMs a required field in the ConnectCommand interface
childClient.tool.ts Removed hardcoded timeout constant, improved logging with timestamps, and enhanced error messages with diagnostic logs

and allow even more time for connecting to real AFR service in Presence tests.

Output beforeEach completion time
@jason-ha jason-ha merged commit e5d2d0b into microsoft:main Oct 31, 2025
35 checks passed
@jason-ha jason-ha deleted the test/presence/azure-connect-timeout-increase branch October 31, 2025 15:58
anthony-murphy-agent pushed a commit to anthony-murphy-agent/FluidFramework that referenced this pull request Jan 14, 2026
…25781)

allow more time for connecting to real AFR service in Presence tests.

Change from a fixed 10s to dynamic time based on number of clients.

Additionally changes:
- fix `beforeEach` cross contamination from different client counts by
injected a `describe` block within loop body
- output `beforeEach` completion time (otherwise untracked from mocha
output)
- output timestamp under verbose logging
- send along or request and show log if connect times out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

base: main PRs targeted against main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants