Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Use standard urdfdom-headers rosdep key.#3

Merged
nuclearsandwich merged 1 commit intoros2from
ros2-urdfdom-headers
Jun 20, 2017
Merged

Use standard urdfdom-headers rosdep key.#3
nuclearsandwich merged 1 commit intoros2from
ros2-urdfdom-headers

Conversation

@nuclearsandwich
Copy link
Copy Markdown
Member

We're shadowing this key for r2b2 since upstream is out of date but we should
use the rosdep key so we can eventually target upstream.

ros2/robot_model#1

We're shadowing this key for r2b2 since upstream is out of date but we should
use the rosdep key so we can eventually target upstream.

ros2/robot_model#1
@nuclearsandwich nuclearsandwich added the in review Waiting for review (Kanban column) label Jun 19, 2017
@nuclearsandwich nuclearsandwich self-assigned this Jun 19, 2017
Copy link
Copy Markdown
Member

@mikaelarguedas mikaelarguedas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, knowing that this will shadow the system one on xenial as mentioned in ros2/robot_model#1 (comment)

@mikaelarguedas
Copy link
Copy Markdown
Member

Note: I'm not sure that version_gte="0.2.3" still applies. I think that we assume std::shared_ptr types in urdfdom that are provided only by v1.0 and higher

@nuclearsandwich
Copy link
Copy Markdown
Member Author

Note: I'm not sure that version_gte="0.2.3" still applies. I think that we assume std::shared_ptr types in urdfdom that are provided only by v1.0 and higher

I've been making only necessary changes. If you want it gone in this PR, can you confirm it, otherwise, it's something that can be addressed later.

@mikaelarguedas
Copy link
Copy Markdown
Member

Later is fine, I just thought it was worth noting but don't know what the minimal version we require actually is

@nuclearsandwich nuclearsandwich merged commit 17f886f into ros2 Jun 20, 2017
@nuclearsandwich nuclearsandwich deleted the ros2-urdfdom-headers branch June 20, 2017 16:03
@nuclearsandwich nuclearsandwich removed the in review Waiting for review (Kanban column) label Jun 20, 2017
@dirk-thomas
Copy link
Copy Markdown
Member

This patch breaks the default branches. Please either fix asap or revert this change.

I used https://gist.github.com/dirk-thomas/001152f81a352aba3bb87c302ae1c42d to confirm that reverting this makes the build pass again.

@dirk-thomas
Copy link
Copy Markdown
Member

I also don't see any CI builds for this set of changes. Did you run any or build the changes locally?

@nuclearsandwich
Copy link
Copy Markdown
Member Author

The root cause of the build failure introduced with this PR is with build ordering when the package.xml dependency key and ament package name are not the same.

By changing the dependency key from urdfdom_headers to urdfdom-headers and changing the urdfdom_headers package name to urdfdom-headers only in the release-provided package.xml ament could not correctly insure that the cmake package urdfdom_headers needed to be built before urdfdom.

I tested some permanent fixes locally. Bringing the release package.xml into the source directory causes ament to raise an InvalidPackage exception due to the dashed name.

Omitting the package.xml and trying to change the cmake project name causes ament to be unable to find the package because it no longer satisfies this regexp.

I'm not sure what the best thing to do is. The least creative would seem to be to return to the original plan of changing the urdfdom-headers downstream packages to depend on urdfdom_headers (note underscore) with a comment that this dependency should be updated when the system urdfdom-headers is suitable.

@nuclearsandwich
Copy link
Copy Markdown
Member Author

nuclearsandwich commented Jun 20, 2017

Did you run any or build the changes locally?

I was running the changes locally, both for expedience and because I'd seen mailing list chatter about ci bottlenecks, and because I had not expected package.xml dependency keys to affect the build. This was my oversight and I'll run subsequent package.xml changes through CI.

@dirk-thomas
Copy link
Copy Markdown
Member

I was running the changes locally

Are you building locally with --isolated?

@nuclearsandwich
Copy link
Copy Markdown
Member Author

Are you building locally with --isolated?

I was not.

@dirk-thomas
Copy link
Copy Markdown
Member

Are you building locally with --isolated?
I was not.

You should build with --isolated in order to detect dependency problems. Probably making an alias is the best atm (until the option is enabled by default).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants