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

Dart 2.5.0 seems to break filesystem watching on Windows #38334

Closed
nex3 opened this issue Sep 11, 2019 · 7 comments
Closed

Dart 2.5.0 seems to break filesystem watching on Windows #38334

nex3 opened this issue Sep 11, 2019 · 7 comments
Assignees
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. customer-dart-sass library-io type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@nex3
Copy link
Member

nex3 commented Sep 11, 2019

Dart Sass's filesystem watcher tests have started failing more consistently on Windows only with the release of Dart 2.5.0. Watcher tests have always been kind of flaky, but we're seeing much more consistent failures now. See this Travis job and this one as examples; both of these jobs were manually restarted about four times, with similar timeouts each time. Note that the latter also increases the timeout and adds test-package-level retries, but the tests are still failing.

However, the most recent master branch build with Dart 2.4 produced no Windows failures, nor did the same pull request with the Windows builder pinned to Dart 2.4.1. This strongly suggests that something changed in Dart 2.5.0 that dramatically increased the flakiness of filesystem watchers on Windows.

This is high-severity for Dart Sass; until this is fixed, we'll need to pin our Windows releases to 2.4.1 so we don't break filesystem watching for downstream users.

@nex3 nex3 added library-io type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) customer-dart-sass labels Sep 11, 2019
nex3 added a commit to sass/dart-sass that referenced this issue Sep 11, 2019
@nex3
Copy link
Member Author

nex3 commented Sep 11, 2019

As another data point, these same builds were not failing on Node.js on Windows, which ultimately bottoms out on the same OS-level APIs that Dart uses. This further suggests something's up in dart:io.

@keertip keertip added the area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. label Sep 11, 2019
@zichangg zichangg self-assigned this Oct 14, 2019
@zichangg
Copy link
Contributor

@nex3 Hi, looks like watcher doesn't response and trigger a timeout. It is similar to the other issue that I worked on watcher issue and I landed the change about a week ago(https://dart-review.googlesource.com/c/sdk/+/119524).
Can you try it again to see whether my cl solves the problem? If not, I can take a look again.

@nex3
Copy link
Member Author

nex3 commented Oct 16, 2019

Is that change in a released dev version of Dart 2.5?

@zichangg
Copy link
Contributor

I'm not quite sure.
Looks like this is added into 2.6.0-dev.7.0, according to 2.6.0-dev.7.0...master.

@nex3
Copy link
Member Author

nex3 commented Oct 22, 2019

I'm unable to test this on Dart 2.6.0-dev.7.0 because it appears that it has no x64 Windows release available.

@nex3
Copy link
Member Author

nex3 commented Nov 2, 2019

Okay, I managed to figure it out, and it looks like the issue is fixed. 👍

@nex3 nex3 closed this as completed Nov 2, 2019
nex3 added a commit to sass/dart-sass that referenced this issue Nov 2, 2019
@zichangg
Copy link
Contributor

zichangg commented Nov 5, 2019

Thanks for testing. Appreciate! ^_^

nex3 added a commit to sass/dart-sass that referenced this issue Nov 5, 2019
nex3 added a commit to sass/dart-sass that referenced this issue Nov 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. customer-dart-sass library-io type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants