Skip to content

Fix flaky test_multiple_clients_subscription in CI #1754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 8, 2025

Conversation

sanity
Copy link
Collaborator

@sanity sanity commented Aug 7, 2025

Summary

Fixes the flaky test_multiple_clients_subscription test that was timing out in CI when Client 3 attempts to get a contract from Node B that was put on Node A.

Problem

The test was failing with:

Client 3: Timeout waiting for get response

Root Cause

Testing revealed that cross-node contract propagation (Node A → Gateway → Node B) takes ~5.5 seconds locally. In slower CI environments, this can exceed the 30-second timeout when combined with other test operations.

Solution

  • Increased timeout from 30s to 60s for Client 3's cross-node operations
  • Added diagnostic logging to track actual timing
  • Confirmed the propagation mechanism works correctly, just needs more time

Testing

  • Test passes locally with Client 3 GET completing in 5.527 seconds
  • 60-second timeout provides adequate margin for CI environments
  • Only targeted operations that require cross-node propagation are affected

🤖 Generated with Claude Code

@CLAassistant
Copy link

CLAassistant commented Aug 7, 2025

CLA assistant check
All committers have signed the CLA.

@sanity sanity force-pushed the fix-flaky-test-timeouts branch 3 times, most recently from dd78059 to c73437c Compare August 8, 2025 05:00
…ents_subscription

The test was failing in CI when Client 3 (on Node B) tries to get a contract
that was put on Node A. Testing shows this cross-node propagation takes ~5.5
seconds locally but can take longer in CI environments.

Increased timeouts from 30s to 60s for:
- Client 3's GET request after cross-node propagation
- Client 3's subscribe operation

Added diagnostic logging that shows Client 3's GET takes 5.527s locally,
confirming the propagation works but needs more time in slower environments.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@sanity sanity force-pushed the fix-flaky-test-timeouts branch from 833d5e6 to 54ba135 Compare August 8, 2025 06:13
@sanity sanity enabled auto-merge (squash) August 8, 2025 16:29
@sanity sanity merged commit 4b44613 into main Aug 8, 2025
6 checks passed
@sanity sanity deleted the fix-flaky-test-timeouts branch August 8, 2025 17:09
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.

2 participants