Skip to content

failure on the appveyor bot in analyze-sample-code.dart when deleting a temp dir #17484

@devoncarew

Description

@devoncarew

I see a (possibly intermittent?) failure on the windows bot:

Unhandled exception:
FileSystemException: Deletion failed, path = 'C:\Users\appveyor\AppData\Local\Temp\1\analyze_sample_code_ae05eda9-5494-11e8-81e7-00155dfb5a77' (OS Error: The process cannot access the file because it is being used by another process.
, errno = 32)
#0      _Directory._deleteSync (dart:io/directory_impl.dart:174:7)
#1      FileSystemEntity.deleteSync (dart:io/file_system_entity.dart:463:47)
#2      main (file:///C:/projects/flutter%20sdk/dev/bots/analyze-sample-code.dart:297:12)
<asynchronous suspension>
#3      _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:279:19)
#4      _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)

https://ci.appveyor.com/project/flutter/flutter/build/1.0.12858#L86

We may need to catch and ignore exceptions deleting the temp dir in dev/bots/analyze-sample-code.dart:297.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions