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

test/serve/missing_file_test is flaky on windows #16129

Closed
andersjohnsen opened this issue Jan 16, 2014 · 3 comments
Closed

test/serve/missing_file_test is flaky on windows #16129

andersjohnsen opened this issue Jan 16, 2014 · 3 comments
Assignees

Comments

@andersjohnsen
Copy link

Seen here: http://chromegw.corp.google.com/i/client.dart/builders/pub-win-be/builds/3086/steps/pub%20tests/logs/stdio


FAILED: none-vm-checked release_ia32 pub/test/serve/missing_file_test
Expected: Pass
Actual: RuntimeError
CommandOutput[vm]:

stdout:
unittest-suite-wait-for-done
FAIL: responds with a 404 for missing source files
  Caught The schedule had 1 errors:
  ScheduleError:
  | FileSystemException: Cannot delete file, path = 'C:\Users\CHROME2\AppData\Local\Temp\pub_70e159bf-7e8f-11e3-adfc-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 558 _File.throwIfError
  | file_impl.dart 306 _File.deleteSync
  | file_system_entity.dart 348 FileSystemEntity.deleteSync
  | sdk\lib_internal\pub\lib\src\io.dart 306:30 deleteEntry
  | sdk\lib_internal\pub\test\serve\missing_file_test.dart 38:18 main.<fn>.<fn>
  | dart:async Future.Future.sync
  | package:scheduled_test/src/utils.dart 110:50 syncFuture
  | package:scheduled_test/src/schedule.dart 429:24 TaskQueue.schedule.<fn>
  | package:scheduled_test/src/task.dart 81:53 Task.Task.
.<fn>.<fn>
  | dart:isolate _RawReceivePortImpl.handleMessage
  | ===== asynchronous gap ===========================
  | package:scheduled_test/src/utils.dart 110:45 syncFuture
  | package:scheduled_test/src/schedule.dart 429:24 TaskQueue.schedule.<fn>
  | package:scheduled_test/src/task.dart 81:53 Task.Task.
.<fn>.<fn>
  | dart:isolate _RawReceivePortImpl._handleMessage
  | ===== asynchronous gap ===========================
  | dart:async Future.then
  | package:scheduled_test/src/task.dart 81:43 Task.Task.
.<fn>
  | package:scheduled_test/src/schedule.dart 446:49 TaskQueue._run.<fn>
  | dart:isolate _RawReceivePortImpl._handleMessage
  | ===== asynchronous gap ===========================
  | dart:async Future.forEach
  | package:scheduled_test/src/schedule.dart 441:26 TaskQueue._run
  | package:scheduled_test/src/schedule.dart 136:24 Schedule.run.<fn>
  | dart:isolate _RawReceivePortImpl._handleMessage
  | ===== asynchronous gap ===========================
  | dart:async _Future.then
  | package:scheduled_test/src/schedule.dart 125:35 Schedule.run
  | package:scheduled_test/scheduled_test.dart 238:33 _test.<fn>.<fn>
  | package:stack_trace/src/chain.dart 85:20 Chain.capture
  | package:scheduled_test/scheduled_test.dart 236:18 _test.<fn>
  | package:unittest/src/test_case.dart 109:30 _run.<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/src/task.dart 74:26 Task.Task.

  | | package:scheduled_test/src/task.dart 67:7 Task.Task
  | | package:scheduled_test/src/schedule.dart 428:20 TaskQueue.schedule
  | | package:scheduled_test/scheduled_test.dart 291:33 schedule
  | | sdk\lib_internal\pub\test\serve\missing_file_test.dart 36:13 main.<fn>
  | | sdk\lib_internal\pub\test\test_pub.dart 350:9 _integration.<fn>
  | | package:scheduled_test/scheduled_test.dart 240:13 _test.<fn>.<fn>.<fn>
  | | package:scheduled_test/src/schedule.dart 127:14 Schedule.run.<fn>
  | | dart:isolate _RawReceivePortImpl._handleMessage
  | | ===== asynchronous gap ===========================
  | | dart:async _Future.then
  | | package:scheduled_test/src/schedule.dart 125:35 Schedule.run
  | | package:scheduled_test/scheduled_test.dart 238:33 _test.<fn>.<fn>
  | | package:stack_trace/src/chain.dart 85:20 Chain.capture
  | | package:scheduled_test/scheduled_test.dart 236:18 _test.<fn>
  | | package:unittest/src/test_case.dart 109:30 _run.<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:52928
  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_70e159bf-7e8f-11e3-adfc-005056030208\myapp\web.
  | FINE: Listed directory C:\Users\CHROME2\AppData\Local\Temp\pub_70e159bf-7e8f-11e3-adfc-005056030208\myapp\web:
  | | C:\Users\CHROME
2\AppData\Local\Temp\pub_70e159bf-7e8f-11e3-adfc-005056030208\myapp\web\index.html
  | IO : Listing directory C:\Users\CHROME~2\AppData\Local\Temp\pub_70e159bf-7e8f-11e3-adfc-005056030208\myapp\asset.

0 PASSED, 1 FAILED, 0 ERRORS

stderr:
Unhandled exception:
Exception: Some tests failed.

­0 SimpleConfiguration.onDone (package:unittest/src/simple_configuration.dart:209:9)

­1 _completeTests (package:unittest/unittest.dart:782:17)

­2 _runTest (package:unittest/unittest.dart:737:19)

­3 _nextTestCase (package:unittest/unittest.dart:644:11)

­4 _asyncRunCallback (dart:async/schedule_microtask.dart:18)

­5 _asyncRunCallback (dart:async/schedule_microtask.dart:21)

­6 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:119)

Command[vm]: build\ReleaseIA32\dart-sdk\bin\dart.exe --ignore-unrecognized-flags --enable_asserts --enable_type_checks --package-root=build/ReleaseIA32/packages/ E:\b\build\slave\pub-win-be\build\dart\sdk\lib_internal\pub\test\serve\missing_file_test.dart
Took 0:00:03.229000

@munificent
Copy link
Member

Set owner to @munificent.
Added Started 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#817.

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

4 participants