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

[WIP] Feature/multi robot #19

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

fmessmer
Copy link
Contributor

@fmessmer fmessmer commented Aug 21, 2024

ref https://github.com/4am-robotics/orga/issues/4389
ref https://github.com/4am-robotics/orga/issues/6785

modified version of #15
provided as new branch in order to not interfere with @Odin-byte thesis

@fmessmer fmessmer mentioned this pull request Aug 21, 2024
Copy link
Contributor Author

@fmessmer fmessmer left a comment

Choose a reason for hiding this comment

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

maybe we should add a solution for https://github.com/4am-robotics/orga/issues/6838 to this PR, too

@@ -472,7 +472,7 @@ def __init__(self, ssh_client, session_name, yaml_session, envs=None) -> None:
command_env_prefix = ""
if self._envs is not None:
for env in self._envs:
command_env_prefix += "export {}={} && ".format(env[0], env[1])
command_env_prefix += "export {}='{}' && ".format(env[0], env[1])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this breaks something for our upstart files, i.e.:

PKG_NAV_ENV_CONFIG="'\$(find mojin_default_env_config)'"

will no longer be correctly passed to the tmux session...

@Odin-byte
do you remember the reason why this is important for you and the multi-robot usecase?

Choose a reason for hiding this comment

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

I added this to correctly parse longer strings including special characters. If there is another solution to this problem, this is no longer needed.

Copy link

@Odin-byte Odin-byte Sep 18, 2024

Choose a reason for hiding this comment

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

But I might just need to enclose longer strings in double quotes like your example to ensure correct parsing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can you give an example for a string that was problematic in you case?

Choose a reason for hiding this comment

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

I believe it was longer strings like:

XAUTHORITY='/run/user/1000/.mutter-Xwaylandauth.I7PAU2'

Choose a reason for hiding this comment

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

But I can image the simpler fix would be to add a pair of double quotes like you did above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants