Comments (5)
using the
paralell
tool
What kind of tool is that?
This is because both instances of my
colcon build
command are trying to write to the samelatest_build
folder.
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 latest*
symlinks are only created for the user for convenience. There could be a race condition if two invocations run through the same logic with checking and then creating the symlink.
Can you please provide a reproducible example.
from colcon-core.
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.
from colcon-core.
I'm using https://www.gnu.org/software/parallel/
The command is:
parallel < commands.txt
The contents of commands.txt is:
colcon build --base-paths ./workspace1 --build-base ./build/workspace1/build-output --install-base ./build/workspace1/install-output
colcon build --base-paths ./workspace2 --build-base ./build/workspace2/build-output --install-base ./build/workspace2/install-output
The environment has COLCON_LOG_PATH set to /home/ec2-user/build/logs
. My current working directory is /home/ec2-user
. Maybe it should be possible to set the log directory via a command line argument?
from colcon-core.
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.
from colcon-core.
I successfully ran the build in parallel with your changes. Thanks for the solution!
from colcon-core.
Related Issues (20)
- Building custom messages work, but importing them does not. HOT 1
- Unknown build package generated when using virtual environment HOT 2
- Improved discoverability of colcon extensions HOT 5
- why does colcon build test packages even if -DBUILD_TESTING=OFF is passed HOT 4
- test_get_chained_prefix_path when AMENT_PREFIX_PATH is set
- "colcon build --merge-install" change the environment variable "LD_LIBRARY_PATH" HOT 2
- colcon test exits with exit code 0 even when test fails HOT 3
- Implement --packages-below-depth HOT 1
- Crawling packages fails on Windows machine. HOT 5
- Colcon fails to find 'sh' environment variables on Python 3.11.1 HOT 13
- colcon build exception: AttributeError: _ep_map. Did you mean: '_dep_map'?
- startup time is slow HOT 1
- DeprecationWarning: pkg_resources is deprecated as an API HOT 4
- Deprecation warning on Iron Tutorial Party: TypeCollectorDecorator SuppressTypeConversions HOT 14
- Missing option to specify log path HOT 2
- Builds with ament_python broken with sphinx >= 7.0.0 HOT 2
- Question: how to pass python parameters HOT 1
- Colcon build -> env: Argument list too long HOT 2
- [Question] colcon list slow ? HOT 2
- The `--pytest-args` option in `colcon test` does not affect the commands executed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colcon-core.