Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/deploy/tasks/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _clean(self, connections: Group) -> GroupResult:
:return: The results of the task.
"""
print_debug(f"Cleaning the following packages before building: {self._package}")
cmd_clean = f"cd {self._remote_workspace} && pixi run clean {self._package}"
cmd_clean = f"cd {self._remote_workspace} && pixi run --environment robot clean {self._package}"

print_debug(f"Calling '{cmd_clean}'")
try:
Expand All @@ -62,7 +62,7 @@ def _build(self, connections: Group) -> GroupResult:
:return: The results of the task.
"""
print_debug("Building packages")
cmd = f"cd {self._remote_workspace} && pixi run build {self._package}"
cmd = f"cd {self._remote_workspace} && pixi run --environment robot build {self._package}"

print_debug(f"Calling '{cmd}'")
try:
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy/tasks/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _check_nodes_already_running(self, connections: Group) -> GroupResult:
:return: Results, with success if ROS 2 nodes are not already running
"""
print_debug("Checking if ROS 2 nodes are already running")
cmd = f"cd {self._remote_workspace} && pixi run ros2 node list -c"
cmd = f"cd {self._remote_workspace} && pixi run --environment robot ros2 node list -c"

print_debug(f"Calling '{cmd}'")
try:
Expand Down Expand Up @@ -152,7 +152,7 @@ def _check_tmux_session_already_running(self, connections: Group) -> GroupResult
def _launch_teamplayer(self, connections: Group) -> GroupResult:
print_debug("Launching teamplayer")
# Create tmux session
cmd = f"tmux new-session -d -s {self._tmux_session_name} && tmux send-keys -t {self._tmux_session_name} 'cd {self._remote_workspace} && pixi run ros2 launch bitbots_bringup teamplayer.launch record:=true tts:=false' Enter"
cmd = f"tmux new-session -d -s {self._tmux_session_name} && tmux send-keys -t {self._tmux_session_name} 'cd {self._remote_workspace} && pixi run --environment robot ros2 launch bitbots_bringup teamplayer.launch record:=true tts:=false' Enter"

print_debug(f"Calling '{cmd}'")
try:
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy/tasks/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def _sync_single(connection: Connection) -> Result | None:
print_error(f"Rsync command failed to execute on host {connection.host}")
return

# Verify syncing succeeded and system architectures matches by running "pixi install"
cmd = f"cd {self._remote_workspace} && pixi install"
# Verify syncing succeeded and system architectures matches by running "pixi install --environment robot"
cmd = f"cd {self._remote_workspace} && pixi install --environment robot"
print_debug("Installing dependencies on remote host to verify synchronization and architecture match.")
print_debug(f"Calling '{cmd}' on: {connection.host}")
verify_result = connection.run(cmd, hide=hide_output())
Expand Down
Loading