Skip to content

generate .dsv files beside known environment hooks#187

Merged
dirk-thomas merged 1 commit intomasterfrom
dirk-thomas/setup-performance
Aug 21, 2019
Merged

generate .dsv files beside known environment hooks#187
dirk-thomas merged 1 commit intomasterfrom
dirk-thomas/setup-performance

Conversation

@dirk-thomas
Copy link
Copy Markdown
Contributor

@dirk-thomas dirk-thomas commented Aug 19, 2019

which describe the intended environment change in a machine readable form. This enables to compute the environment change outside of the shell scripts which yields much faster performance.

Related to ros2/ros2#764.

… intended environment change

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
@dirk-thomas dirk-thomas added enhancement New feature or request in progress Actively being worked on (Kanban column) labels Aug 19, 2019
@dirk-thomas dirk-thomas self-assigned this Aug 19, 2019
@mjcarroll
Copy link
Copy Markdown
Contributor

I took at this locally, and it's generating the files correctly with the contents I would expect.

Do you know if there is any case of a package exporting non-default values of the PATH or LD_LIBRARY_PATH environment variables? I did a quick find/grep and couldn't find anything that looked non-default.

I would assume that would have some impact on the generated DSV files, in that case.

@mjcarroll
Copy link
Copy Markdown
Contributor

My other general comment would be to document/expand dsv at least once somewhere for clarity (and specify that the delimiter is a ;). I figured it out from the other issue, but local context would be helpful.

@dirk-thomas
Copy link
Copy Markdown
Contributor Author

Do you know if there is any case of a package exporting non-default values of the PATH or LD_LIBRARY_PATH environment variables?

What do you mean by "non-default values" in this context?

@mjcarroll
Copy link
Copy Markdown
Contributor

A package where PATH is exported to something other than bin, or is that always the case?

@dirk-thomas
Copy link
Copy Markdown
Contributor Author

In general a package can provide any arbitrary environment hook. For it to be also "fast" it should also provide a .dsv file in the future.

Currently the name of the environment hook is used to determine which .dsv file to generate. But maybe we should decouple that instead to not match a custom provided hook by accident?

@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Aug 21, 2019
@dirk-thomas
Copy link
Copy Markdown
Contributor Author

But maybe we should decouple that instead to not match a custom provided hook by accident?

Commonly these custom hooks have different names (see e.g. ros2/yaml_cpp_vendor#7 and ros2/rviz#449). If they would use the same name they would already overwrite the same file if a "default" hook is already being generated. So I am not sure if any change is necessary here.

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

Labels

enhancement New feature or request in review Waiting for review (Kanban column)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants