Comments (5)
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:
from webcrypto.dart.
Merged #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).
from webcrypto.dart.
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?
from webcrypto.dart.
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:
- if the test should work without focus?
- why the app looses focus at all?
- is there a way to rewrite the test to make it more stable.
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.
from webcrypto.dart.
I just landed #78 and will publish.
But I had to manually rerun the tests to get it to pass.
- First time it timed out after 12 minutes.
- Second time it finished in 2 minutes.
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.
from webcrypto.dart.
Related Issues (20)
- Ques: How to generate public/private Key RSA-OAEP ? HOT 1
- Explore wrap/unwrap/derive-key and capabilities
- Consider adopting test vectors from chromium
- Extend TestRunner with support for exception and error cases
- Refactor test case generation
- Run tests under valgrind HOT 1
- Reject JWK keys that have conflicting "use" and "key_ops"
- Bespoke test cases for import JWK with conflicting "use" and "key_ops"
- Ensure CBS is empty after importing keys
- Consider augmenting _Scope to ensure we clear errors after each operation HOT 1
- Write documentation for all public members
- Ensure correct handling of errors from thread-local storage
- AesGcmSecretKey.importRawKey on Chrome - Expected a value of type 'CryptoKey' (in null), but got one of type 'CryptoKey' HOT 1
- ECDSA Key Generation Fails on Mobile Web Browser HOT 1
- Bug Report: Error while calling importJsonWebKey HOT 7
- Dart (server) apps support HOT 1
- 0.5.4 Exception after upload to Google Play HOT 4
- Migrate lib/src/crypto_subtle.dart to use `dart:js_interop`
- Support for Gradle 8 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcrypto.dart.