-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix bug with concurrent renaming #1077
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
Conversation
We stock the renaming promise in cache to ensure that there is not concurrent renaming.
It almost does and the intention I guess it that it fully should: #596 |
I don't see how to handle multiple rename over several processes right now. But however I think that first we must fix the actual problem and then if we have a problem we open another issue. |
👍 concurrent rename in the same process is something that is hitting a lot more of users than @sindresorhus Do you think this could be merged soon? |
Did #1076 fix this? |
@wibblymat you can merge it safely, I am using these patched version of bower and there is no problem (#933) since two weeks now. |
else { | ||
var defer = Q.defer(); | ||
defer.resolve(); | ||
checkExistingDirectory = defer.promise; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to replace these three lines with just checkExistingDirectory = new Q();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wibblymat fixed in 8016bd4
Any news on if/when this will get merged? |
+1 |
@wibblymat when this is going to be merged? AFAIK it affects many people right now. |
+1 for a merge, having the same problem here with our jenkis build process |
hear hear! |
unbreakable build driven development, merge ! :-) |
Please can we get this through the appropriate release channel asap? |
Our Travis CI builds are (almost) systematically broken because of that. A release would be greatly appreciated. |
I will close the PR since there is no response from maintainers. |
You are joking right?
|
Please consider re-opening this PR. The issue affects several people and all feedback on this PR are positive. I don't see any valid reason to close it without any feedback from core developers. This is something we desperately need, unless proven otherwise. And so far nothing against this PR was mentioned. |
We're not done here yet. As a team we need to figure out the right thing to do. |
@neoziro Please please pretty please re-open this. Closing the PR won't make the problem go away - and this is a serious issue that is affecting quite a few people. @wibblymat What will it take to get this merged once it's reopened? We are also using the If there's something wrong with the PR, could the maintainers please comment and give some direction? |
I know "+1" comments are frowned upon but I just wanted to add my voice so it's clear how many people are affected. |
we should remember that the number of +1 only shows the people who took the
And then there are the other people that are only facing the bug and did How many hours lost? On 14 March 2014 11:17, Joseph Wynn notifications@github.com wrote:
Vincent Voyer |
This issue affects my team as well. We have been using this branch for a month as bower 1.2 is unusable for us without it. |
Also remember that this PR is not the only report of this bug. I have seen
|
@benschwarz You reopened the PR - do you know of anything that is preventing it from being merged? |
I've been using neoziro's fork for the past month, which completely resolved our previous deployment issues. Stock bower would randomly fail about 50% of the time. |
👍, we are waiting for this fix so much |
This issue is a joke. |
Many users reported that this pull request has no critical side effects and is far more stable We understand that bower team may find a smarter/greater way to fix this bug in the future But in the meantime, the best action would have been to Incremental strategy in the particular case of a critical bug (a bug that is impacting many users) seems more interesting than "wait, we will find a perfect way to do it, maybe later..". |
@neoziro, what do you mean? |
@pyromaniac no sorry, the bower team don't care about this problem, I gave time to fix it but now it's over. If they have treated the reals problems instead of adding the support of SVN, there would't have any merging problem. There are maybe a thousand of people impacted by this, the quick fix is right there, it didn't completely solve the problem, but it's a good quick fix. They don't care about community and production problems linked to bower. |
Will look into switching to component or nuGet or something else from the next project because of this issue. Bower apparently cannot be trusted as a critical piece of project infrastructure... |
bower team, hello hello? can we have your attention here as a community, please? @sindresorhus |
Hi there! Sorry for the radio silence. We have a tremendous back log of issues we're trying to work our way through. We appreciate your patience. @neoziro Thank you so much for your contribution. This is tremendous work. Don't give up on us! @benschwarz @wibblymat This looks good to me. What concerns do we have around not merging? Do we have additional work that's coming down the pipeline that could resolve this? |
|
Fix bug with concurrent renaming
Hurrah! When can we expect a Bower release with these fixes? |
This PR doesn't solve
See my long comment in #933 (comment) I think this should be reverted and #1211 merged. |
We stock the renaming promise in cache to ensure that there is not concurrent renaming.
It solves the problem, i have added a test to ensure that it's corrected.
The only remaining problem can be when we run bower in parallel but it's actually not supported (i think).
Fix #933