-
Notifications
You must be signed in to change notification settings - Fork 51
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
Error sometimes with gpm install
on existing projects
#35
Comments
@technosophos Every of the projects that fail are in the Godeps file? Can you provide a failed Godeps so I can check? |
Mmm, these race conditions very possibly can't be avoided from the gpm side as we're running multiple This is a shame, I very much like package installation happening in parallel, maybe it's something we should scrap? I don't see a way around it without evaluating the whole dependency tree - and that's completely outside of the scope of gpm. Performance will be worse, but at least we will ensure that we have no race conditions. What do you guys think? |
I pulled the parallelization out of my gpm-git plugin to test it out, and the result is (predictably) slower but safer. My feeling is that safer is better in this case. I would prefer removing the part that backgrounds the |
An known failing example could help us see if there's a way to prevent it 2014-06-04 18:16 GMT-03:00 Matt Butcher [email protected]:
|
I think removing parallel installation will be the best option but want to chase this down a bit to see if we can find a way around it that doesn't hinder performance. As @elcuervo says: If you have a sample |
Btw, an easy way to try the race condition is to have the same pkg multiple times so the parallel execution screws something. #36 retries |
Prevents race conditions between dependencies (Fixes #35)
Ok, I just merged in #36 by @elcuervo , this should solve this particular race condition or fail gracefully when errors happen. I'll keep this issue open though, as we want to make sure this use case is solved. @technosophos please get back to us in a week or two so we know how to proceed, in case we still get errors we'll be forced to remove parallel package installation for good. Thanks everyone! |
Okay. I will test. Here is a sequence of packages that seemed to trigger the issue for me:
|
I've tested several runs of |
Ready for prime time? |
I think so, let's close this and make a new release. :) |
Having done a few dozen releases since the last patch, I'm willing to say this one is fixed. |
I just noticed this a few times today. It looks like sometimes a race condition happens:
I am having trouble reproducing this, but every once in a while I see the same error (on different projects each time).
The text was updated successfully, but these errors were encountered: