LSP fix all in workspace test time out on 5 seconds #59780
Labels
analyzer-dartfix
Issues with the dartfix package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
While working on https://dart-review.googlesource.com/c/sdk/+/401865 I added a test to
pkg\analysis_server\test\lsp\commands\fix_all_in_workspace_test.dart
as suggested by @DanTup at https://dart-review.googlesource.com/c/sdk/+/401840 for better debugging than thedart fix
tests since they should work the same way.While testing I added
@soloTest
to the newly added testAbstractLspAnalysisServerTest.test_partFile_issue59572
. And gave a try to addargument: ['./lib/part.dart']
to theCommand
constructor on it. That can reliably reproduce the failure for the 5-second timeout on my machine. The stack trace:The place where it is failing
pkg\analysis_server\test\lsp\server_abstract.dart
, line 1139, insideLspAnalysisServerTestMixin.expectRequest
. TheexpectRequest
contains atimeout
that defaults to that value but the method that calls it (LspAnalysisServerTestMixin.handleExpectedRequest
) also has atimeout
parameter that is not passing through (in this case not even in use).After a talk with @DanTup on Discord about this, we think it may be safe to increase that value. We'll also take a look at the timings here and why adding these (
@soloTest
andparameters
) slows down the execution. Creating this issue to track this work.As a note, if we increase it a lot (tested with 5 min) the tests themselves fail at 30 seconds. The take from @DanTup was that this was intended to give some indication as to where would it be taking a long time to answer.
The text was updated successfully, but these errors were encountered: