Skip to content

fix(bridge): retry ServerCancelled requests and fix integration test readiness gate#160

Merged
bug-ops merged 1 commit into
mainfrom
127-128-servercancelled-retry
May 24, 2026
Merged

fix(bridge): retry ServerCancelled requests and fix integration test readiness gate#160
bug-ops merged 1 commit into
mainfrom
127-128-servercancelled-retry

Conversation

@bug-ops

@bug-ops bug-ops commented May 24, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • 391/391 lib/bins tests pass (cargo nextest run --workspace --all-features --lib --bins)
  • test_hover_on_std_vec passes in isolation
  • test_references_user_struct passes in isolation
  • test_diagnostics_no_errors passes in isolation
  • test_hover_on_u64_type and test_diagnostics_with_error remain pre-existing failures (tracked separately)

Closes #127, closes #128

When rust-analyzer returns error -32802 (ServerCancelled) with
retriggerRequest: true, LspClient::request() now retries up to 3 times
with exponential backoff (500ms->1s->2s) before surfacing the error.

Replaces the publishDiagnostics-based readiness signal in integration
tests with hover-probe polling: 3 consecutive successful hover responses
required before declaring RA ready. Matches the ra_e2e approach.

Closes #128, closes #127
@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes testing Test-related changes mcpls-core mcpls-core crate changes labels May 24, 2026
@bug-ops bug-ops enabled auto-merge (squash) May 24, 2026 14:38
@bug-ops bug-ops merged commit 8720e0c into main May 24, 2026
27 checks passed
@bug-ops bug-ops deleted the 127-128-servercancelled-retry branch May 24, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation mcpls-core mcpls-core crate changes rust Rust code changes testing Test-related changes

Projects

None yet

1 participant