Skip to content
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

Fix parallel testing #254

Merged
merged 2 commits into from
Apr 29, 2020
Merged

Fix parallel testing #254

merged 2 commits into from
Apr 29, 2020

Conversation

blackliner
Copy link
Contributor

We ran ctest . -j 10, and sometimes it happened that we got failing CI builds because the command in line 116 was executed in parallel.

[2020-04-28T19:13:39.193Z] 1: Traceback (most recent call last):
[2020-04-28T19:13:39.193Z] 1:   File "/opt/ros/eloquent/share/ament_cmake_test/cmake/run_test.py", line 23, in <module>
[2020-04-28T19:13:39.193Z] 1:     sys.exit(ament_cmake_test.main())
[2020-04-28T19:13:39.193Z] 1:   File "/opt/ros/eloquent/lib/python3.6/site-packages/ament_cmake_test/__init__.py", line 116, in main
[2020-04-28T19:13:39.193Z] 1:     os.makedirs(output_path)
[2020-04-28T19:13:39.193Z] 1:   File "/usr/lib/python3.6/os.py", line 220, in makedirs
[2020-04-28T19:13:39.193Z] 1:     mkdir(name, mode)
[2020-04-28T19:13:39.193Z] 1: FileExistsError: [Errno 17] File exists: 'some_dir/build/x86_debug/ros2/build_docker/functions/ament_cmake_gtest'

We ran ctest . -j 10, and sometimes it happened that we got failing CI builds because the command in line 116 was executed in parallel.
```
[2020-04-28T19:13:39.193Z] 1: Traceback (most recent call last):
[2020-04-28T19:13:39.193Z] 1:   File "/opt/ros/eloquent/share/ament_cmake_test/cmake/run_test.py", line 23, in <module>
[2020-04-28T19:13:39.193Z] 1:     sys.exit(ament_cmake_test.main())
[2020-04-28T19:13:39.193Z] 1:   File "/opt/ros/eloquent/lib/python3.6/site-packages/ament_cmake_test/__init__.py", line 116, in main
[2020-04-28T19:13:39.193Z] 1:     os.makedirs(output_path)
[2020-04-28T19:13:39.193Z] 1:   File "/usr/lib/python3.6/os.py", line 220, in makedirs
[2020-04-28T19:13:39.193Z] 1:     mkdir(name, mode)
[2020-04-28T19:13:39.193Z] 1: FileExistsError: [Errno 17] File exists: 'some_dir/build/x86_debug/ros2/build_docker/functions/ament_cmake_gtest'
```

Signed-off-by: Florian Berchtold <florian.berchtold@gmail.com>
Signed-off-by: blackliner <florian.berchtold@gmail.com>
@dirk-thomas dirk-thomas added the bug Something isn't working label Apr 29, 2020
@dirk-thomas
Copy link
Contributor

Thanks for the fix.

@dirk-thomas dirk-thomas merged commit 6bcf8d2 into ament:master Apr 29, 2020
@blackliner blackliner deleted the patch-1 branch April 29, 2020 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants