flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.35k stars 27.54k forks source link

Windows PathAccessException flake in `test/integration.shard/stateless_stateful_hot_reload_test.dart` #151554

Open bdero opened 4 months ago

bdero commented 4 months ago

Showed up in a recent engine->framework roll (https://github.com/flutter/flutter/pull/151545). This issue previously showed up in https://github.com/flutter/flutter/issues/123233.

https://ci.chromium.org/ui/p/flutter/builders/try/Windows%20tool_integration_tests_5_6/29796/overview

16:59 +39 ~17 -1: test/integration.shard/stateless_stateful_hot_reload_test.dart: Can switch from stateless to stateful
Failed to delete C:\b\s\w\ir\x\t\flutter_hot_reload_test.45b8975a: PathAccessException: Deletion failed, path = 'C:\b\s\w\ir\x\t\flutter_hot_reload_test.45b8975a' (OS Error: The process cannot access the file because it is being used by another process.
, errno = 32)
17:10 +40 ~17 -1: Some tests failed.
andrewkolos commented 4 months ago

I believe the actual failure is earlier in the log:

05:57 +13 -1: test/integration.shard/isolated/native_assets_test.dart: flutter build apk with native assets debug [E]
  Exception: flutter build failed: 1

  FAILURE: Build failed with an exception.

  * What went wrong:
  Execution failed for task ':app:compressDebugAssets'.
  > A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
     > Java heap space

I believe the "failed to delete" message is simply informative:

https://github.com/flutter/flutter/blob/c73bffe74709c5df228447a6ddf3c8eb811d36bf/dev/bots/test/common.dart#L20-L22