-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make testing fast again - Bring init options back #188
Comments
10s is definitely a little slow, but keep in mind that each spawned daemon (unless pointing to an existing repo) will have to init the repo and apply any custom configs before launching the damon, which could get pretty slow. But please do provide details, I'd like to speed this up as much as possible 👍 |
Its not just FWI: Timing was done by hand (one onesecond, two one-second, ...) and each command (init, config) took exactly 10s. Also, are the config settings applied to in-proc IPFS? |
@dryajov when the new version of ipfsd-ctl, we lost the ability to set key size on init. This is really unfortunate as tests are taking forever nowadays. init should be a bool or object and the object should accept any of the init options: |
@diasdavid what about the PR smaller keysize when testing? |
@richardschneider we are not going to patch globals. This should be an option and not a surprise. |
We didn't, you can still set it as part of calling That said, I agree it's a valuable option to have. In order to not break the existent implementation, lets leave the |
I'm curious why the update of js-ipfs, js-ipfs-api and ipfs/interop didn't contemplate that ipfsd.init with reduced key sizes. Was there any blocker? |
I don't believe we ever ran our tests with reduced key sizes by default? That said I think we can have our cake and eat it too. Here is what I propose:
Does this sound as an acceptable solution? Updated:
|
I'm actually not sure if we need this. In @richardschneider PR #198, there is a check that uses |
@dryajov
It is not patching a global. It is just using
Just document that the default key size is 2048 unless running in a |
@diasdavid @richardschneider added #203 implementing what I outlined in #188 (comment) |
It was there until the new ipfsd-ctl appeared. A quick git history search:
Let's do this one only and not reinvent the wheel. The propname should be Let's follow the proposal on here: #188 (comment) Let me know if you have questions. |
👍 on reusing ini options |
let's finish this one on #203 |
Spawning a deamon on my machine (windows) is extremely slow. It appears that each go/js command that is run takes ~10 seconds!
More details to follow.
The text was updated successfully, but these errors were encountered: