Open Parveshdhull opened 7 months ago
https://ci.status.im/blue/organizations/jenkins/status-mobile%2Fprs%2Ftests/detail/PR-19274/11/pipeline Latest Logs: log.txt
cc @cammellos
related PR https://github.com/status-im/status-mobile/pull/19362 @siddarthkay
So this is not a timeout issue. we need to fix the Integration test. Will share more findings here
pipeline link are not valid anymore. do we have any new link? @Parveshdhull @siddarthkay .
I got this error locally:
FAIL in (wallet-get-walet-token-test) (tests/contract_test/wallet_test.cljs:73:11)
expected: (contains? (:marketValuesPerCurrency token) :usd)
actual: (not (contains? nil :usd))
hi @mohsen-ghafouri, Thank you for picking the issue.
Latest link: https://ci.status.im/blue/organizations/jenkins/status-mobile%2Fprs%2Ftests/detail/PR-19430/2/pipeline
currently contract tests behave very randomly, different result on multiple try, result are either:
success
stuck ( will fail with timeout), i can see many "JSON-RPC client is unavailable" errors
test successfully passed but at the end saw this error
/private/tmp/tmp-status-mobile-4aee5af79/nix-shell-33482-0/rc: line 3: 33717 Segmentation fault: 11 node --require ./test-resources/override.js "$SHADOW_OUTPUT_TO"
make: *** [_test-clojure] Error 139
seems like the RPC error might be a red-herring.
It seems like it's just caused by the fact that we logout/'create an account much faster then normal app usage, and we receive a signal while the app is in the process of logging in from a previous session, but that should not be a problem, although other kind of signals might be I suppose, but in this case looks like it's fine, since it's just failing on some random commnunity requests
If we run contract test file separately, we won't see any issue, but when we run all test sometimes it throws timeout error. I had the same issue with integration test whenever I didn't add logout logic at the end of my test. so here it seems some test doesn't logout respectfully. logout logic coupled with test-async
and a bit hard to debug
https://github.com/status-im/status-mobile/pull/19362 just adds logs to wait-for implementation and before/after logout was called. This may help in future to investigate incase tests start timing out again..
https://ci.status.im/blue/organizations/jenkins/status-mobile%2Fprs%2Ftests/detail/PR-19089/4/pipeline/
related discussion: https://discord.com/channels/1210237582470807632/1217173160416382986/1217812191194124439
Logs: test-logs.txt