Open jonasfj opened 10 months ago
On the actual machine, the test appears to get stuck on the step 'test app can compute a hash' if the example app is not the active window. The test passes when the app is open, which is why I did not notice the issue. This part runs testWidgets(), but it is likely not being handled by the app GUI on GitHub Action and is causing the test to hang?
I can confirm that the test app can compute a hash hangs on my mac if the example application is in the background during the test (Mac M1, macOS 14.1 23B74 darwin-arm64). However I was able to run the test.yml Action successfully on GitHub, without any relevant change:
Merged https://github.com/google/webcrypto.dart/pull/77 and closing this for now.
If someone is interested in trying to figure out if this is an flaky, and/or what we could do to make it work better, please go ahead.
Contributions are welcome, please ping me @jonasfj for reviews (I'm sometimes slow to notice PRs).
At least it seems, that the library itself seems to work like expected.
If the cause of the flaky test is really, that the application looses focus, then I would investigate:
I would argue, that it’s a separate topic. I keep it in mind and maybe will come back to this, if it turns out to be a big problem. However, sporadic errors that occur in the pipeline could be quite difficult to isolate.
I just landed https://github.com/google/webcrypto.dart/pull/78 and will publish.
But I had to manually rerun the tests to get it to pass.
Ideas for what we can do to make flutter test integration_test/webcrypto_test.dart -d macos
reliable are welcome.
The flutter part of the example app we have here are really dumb and simple. Nothing fancy, so this could be a bug in Flutter somewhere. Or it could be a bug in flutter integration test logic.
.github/workflows/test.yml
contains:We really should enable integration tests on macos desktop. If anyone is interested in figuring how to get this working on Github Actions that would be great.
Contributions are highly appreciated, I tried in https://github.com/google/webcrypto.dart/pull/74, but there is probably a tiny thing not working.