win32 icon indicating copy to clipboard operation
win32 copied to clipboard

Seeing occasional flakes during `dart test` on GitHub Actions

Open timsneath opened this issue 3 years ago • 3 comments

It's rare, but sometimes a test fails on a particular (platform,branch) combination with an error.

For example: https://github.com/timsneath/win32/runs/6676600994?check_suite_focus=true

failed with:

Error: Process completed with exit code 1.

It's possible that there's a bug in the test suite (over-enthusiastic free, perhaps?) Or worse, that there's a bug in the COM wrappers themselves...

timsneath avatar May 31 '22 18:05 timsneath

Yeah, I've been observing this behavior for a while. It seems that it always happens after this test: https://github.com/timsneath/win32/blob/f63ecce439a8401d1bb326601c57584d77aa6c9d/test/com_network_test.dart#L28-L32

Since it's rare, it's really hard to replicate. I might look into it tomorrow.

halildurmus avatar May 31 '22 18:05 halildurmus

I've been playing with the tests, adding multiple test runs in various cases, but can't get it to reproduce locally. It only seems to occur on the CI infra. Are you able to repro it locally, @halildurmus?

timsneath avatar Jun 01 '22 02:06 timsneath

Sadly, I couldn't reproduce it locally.

halildurmus avatar Jun 01 '22 09:06 halildurmus

Closing this one for now in the hope that we've fixed it with the NativeFinalizer work. Please reopen if you observe this with builds later than v4.1.0.

timsneath avatar Jan 07 '23 00:01 timsneath