Skip to content
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

Failures on Message scheduler test #59615

Closed
jyameo opened this issue Nov 26, 2024 · 6 comments
Closed

Failures on Message scheduler test #59615

jyameo opened this issue Nov 26, 2024 · 6 comments
Assignees
Labels
analyzer-test 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)

Comments

@jyameo
Copy link
Contributor

jyameo commented Nov 26, 2024

There are new test failures on [Message scheduler] Implement handling one message at a time..

The tests

pkg/analysis_server/test/integration/server/message_scheduler_test RuntimeError (expected Pass)
pkg/analysis_server/test/lsp/code_actions_refactor_test RuntimeError (expected Pass)

are failing on configurations

analyzer-unittest-asserts-release-win

LOGS: https://dart-ci.appspot.com/log/any/analyzer-unittest-asserts-release-win/29285/pkg/analysis_server/test/integration/server/message_scheduler_test

@dart-github-bot
Copy link
Collaborator

Summary: Message scheduler tests (message_scheduler_test and code_actions_refactor_test) fail on Windows release builds. The failures are runtime errors.

@dart-github-bot dart-github-bot added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Nov 26, 2024
@keertip keertip added analyzer-test P2 A bug or feature request we're likely to work on labels Nov 26, 2024
@keertip
Copy link
Contributor

keertip commented Nov 26, 2024

@DanTup, the ExtractMethodRefactorCodeActionsTest | test_contentModified fails due to timeout on the windows bot. I don't have a windows machine and am unable to reproduce it locally. Do you have a windows machine? If so, could you check and see if you can reproduce it? Thanks.

@keertip keertip self-assigned this Nov 26, 2024
@DanTup
Copy link
Collaborator

DanTup commented Nov 26, 2024

Yep, I can reproduce it - will take a look.

@DanTup DanTup self-assigned this Nov 26, 2024
@keertip
Copy link
Contributor

keertip commented Nov 26, 2024

Thanks! The LspServerMessageSchedulerTest | test_documentChange also fails due to timeout. Likely the same issue.

@DanTup
Copy link
Collaborator

DanTup commented Nov 26, 2024

The issue is using .path on file:/// URIs. On Mac/Linux, this works out the same (eg. file:///foo/bar -> /foo/bar) but on Windows it's incorrect (file:///c:/foo/bar -> /c:/foo/bar instead of c:\foo\bar). Calling .toFilePath() is better, but in this case I think we should compare URIs instead (and we should migrate refactors from paths to URIs).

Will ping you on a CL to fix shortly.

@DanTup
Copy link
Collaborator

DanTup commented Nov 26, 2024

@keertip I've opened https://dart-review.googlesource.com/c/sdk/+/397620 - you might need to find a second reviewer to land it though.

@lrhn lrhn removed the triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-test 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)
Projects
None yet
Development

No branches or pull requests

5 participants