-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Run tests inside electron Node.js and Browser process as well #697
Comments
This issue is more complex than I thought. The problem is with dependencies using OpenSSL but Chromium is using some fork of OpenSSL. I found some related issues with dependencies worth tracking for this issue: libp2p/js-libp2p-crypto#38 :/ |
Oh, this is super annoying :( So in essence, I see that the electron team tagged it as node-webcrypto-ossl is actually an optional dependency at the moment and there is a fallback to straight JavaScript, making it slower, but functional. I would argue that is best to remove node-webcrypto-ossl entirely for the moment until there is a good solid solution, removing the frustration for both electron users and windows users. @dignifiedquire am I missing anything that might go against this proposal? Thank you for the report and debugging @harshjv |
As much I would not like to downgrade the crypto perf, I would agree with @diasdavid's proposal. |
Thank you @haadcode. Anyone against? |
Yes I am. As mentioned before we can detect electron and fallback to pure js in the main process, without needing to drop the perf improvements in regular node.js scenarios. |
Let's try that :) |
@dignifiedquire also, can we get aegir to also run the tests inside electron for us? Same way as in Node.js, Browser and WebWorker. Ideally, we would run tests inside the browser process and node.js process. |
Created ipfs/aegir#157 in aegir to track this. #843 is the main issue to track supporting electron. Closing this one :) |
When running
js-ipfs
daemon withElectron
via JS API withjs-ipfs daemon
running in background,js-ipfs
in Electron process throws this error every time it encounters a peer (other js-ipfs node).Configuration
Electron node
js-ipfs
nodeError in
js-ipfs
node in electron processPlatform
Electron v1.4.13
The text was updated successfully, but these errors were encountered: