-
Notifications
You must be signed in to change notification settings - Fork 280
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
Add a configuration variable to designate that cmake is being run in parallel with other instances #675
Comments
Please consider to provide a pull request for this. |
Since the initial comment only mentions the |
I will close this due to lack of response for now. Please feel free to comment here and the ticket can be reopened if necessary. |
FYI this is still a serious issue for our project. It is actually making our Jenkins instance fail regularly because of corrupted ROS_PACKAGE_PATH, which some packages depend on. |
I will reopen the ticket then. But somebody needs to actively work on this if it is a relevant problem. @jbohren? |
In catkin/catkin_tools#196, the tool creates the |
Awesome work over there. In catkin/catkin_tools#196, @wjwwood mentions that it would be great if we could split stuff up to review separately. How hard would it be to pop out just the creation and locking for the .catkin file to close this series of issues and pull requests related to this race condition? Because using your awesome script from here, I am getting a failure rate of like 48% with 30 trials. So, this seems to be a high priority bug. I can't imagine it is my setup as your script creates packages and builds them. |
It would be pretty hard to separate that out.
Yeah, it was basically happening to me every time I rebuilt a workspace. |
So, the mystery deepens. @jbohren you had used all |
See #752. Again, this does not solve our problems, but it reduces the exposure on my machine by an order of magnitude. I am really looking forward to a real solution from catkin/catkin_tools#196 |
I will close this issue for now since it is unlikely that anyony is working on this in the future and it is unclear how this could be addressed in Imo the build tool should avoid performing tasks in parallel which access the same files, e.g. by passing |
There are some files which catkin modifies which have the potential to introduce race conditions if multiple cmake instances are building catkin packages with a merged develspace as they do in
catkin build
. This was originally described in #670.In this case, extra care can be taken to guarantee that these race conditions cannot occur. The files affected are:
.catkin
, which contains a;
-delimited list of sourcespace paths. Create thread-safe storage of source-space paths #674The text was updated successfully, but these errors were encountered: