-
Notifications
You must be signed in to change notification settings - Fork 44
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
Log file conflicts when running colcon with parallel and COLCON_LOG_PATH variable set #129
Comments
What kind of tool is that?
Each invocation will only write to the specific directory with the timestamp. So invoking the tool with the same verb at the same second is currently indeed a problem (both invocations using the same timestamp). I don't think that is your problem though. The Can you please provide a reproducible example. |
Please try #130 which makes sure that each invocation gets a separate log directory and all FS calls which might be subject to a race are handling exceptions gracefully. |
I'm using https://www.gnu.org/software/parallel/ The command is:
The contents of commands.txt is:
The environment has COLCON_LOG_PATH set to |
I can't make it fail with similar commands (e.g. building a ROS 2 workspace twice in parallel). Maybe it is related to your filesystem? Mine is on a SSD which will be less likely to run into a race condition due to its speed. Please try #130 since it clearly separates your two log directories. Please comment here with your results. |
I successfully ran the build in parallel with your changes. Thanks for the solution! |
I'm running multiple
colcon build
executions using theparalell
tool. When I have COLCON_LOG_PATH set I get the error:This is because both instances of my
colcon build
command are trying to write to the samelatest_build
folder. Is this a supported use case?The text was updated successfully, but these errors were encountered: