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

pub/test/serve/missing_file_test is flaking #15431

Closed
nex3 opened this issue Dec 4, 2013 · 5 comments
Closed

pub/test/serve/missing_file_test is flaking #15431

nex3 opened this issue Dec 4, 2013 · 5 comments
Assignees

Comments

@nex3
Copy link
Member

nex3 commented Dec 4, 2013

The full log is below, but it looks like what's happening is that the file is being deleted while "pub serve" is reading it. I'm assigning this to Bob because there's a related TODO in the file to update the test once pub serve supports file watching, which it does now.

FAIL: responds with a 404 for missing files
  Caught The schedule had 1 errors:
  ScheduleError:
  | FileSystemException: Cannot delete file, path = C:\Users\CHROME2\AppData\Local\Temp\pub_4c0fb32e-5c8d-11e3-b2d3-005056030208\myapp\lib\nope.dart (OS Error: The process cannot access the file because it is being used by another process.
  
  | , errno = 32)
  
  Stack chain:
  | file_impl.dart 545 _File.throwIfError
  | file_impl.dart 307 _File._deleteSync
  | file_system_entity.dart 339 FileSystemEntity.deleteSync
  | sdk\lib_internal\pub\lib\src\io.dart 313:30 deleteEntry
  | sdk\lib_internal\pub\test\serve\missing_file_test.dart 45:18 main.<fn>.<fn>
  | dart:isolate _RawReceivePortImpl._handleMessage
  
  Error detected during task in queue "tasks":
  * creating directory:
  | myapp
  | |-- async descriptor
  | |-- asset
  | | '-- nope.png
  | |-- lib
  | | '-- nope.dart
  | '-- web
  | '-- index.html
  * starting process 'pub serve'
  * reading the next stdout line from process 'pub serve'
  > delete files
  |
  | Stack chain:
  | | package:scheduled_test/scheduled_test.dart 291:33 schedule
  | | sdk\lib_internal\pub\test\serve\missing_file_test.dart 43:13 main.<fn>
  | | sdk\lib_internal\pub\test\test_pub.dart 348:9 _integration.<fn>
  | | dart:isolate _RawReceivePortImpl._handleMessage
  * request index.html
  * request packages/myapp/nope.dart
  * request assets/myapp/nope.png
  * request dir/packages/myapp/nope.dart
  * request dir/assets/myapp/nope.png
  * waiting for process 'pub serve' to die
  ================================================================================
  
  Debug info:
  Results of running 'pub serve':
  Process was killed prematurely.
  Standard output:
  | MSG : Serving myapp on http://127.0.0.1:62217
  Standard error:
  | FINE: Pub 0.1.2+3
  | IO : Spawning cmd /c ver
  | IO : Finished ver. Exit code 0.stdout:Microsoft Windows [Version 6.1.7601]Nothing output on stderr.
  | IO : Listing directory C:\Users\CHROME
2\AppData\Local\Temp\pub_4c0fb32e-5c8d-11e3-b2d3-005056030208\myapp\asset.

0 PASSED, 1 FAILED, 0 ERRORS

@nex3
Copy link
Member Author

nex3 commented Dec 4, 2013

This may also be related to issue #13026.

@munificent
Copy link
Member

Added Started label.

@munificent
Copy link
Member

Removed Priority-Unassigned label.
Added Priority-Medium label.

@munificent
Copy link
Member

Added Fixed label.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#760.

This issue was closed.
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

No branches or pull requests

3 participants