Skip to content

Conversation

@ogayot
Copy link
Member

@ogayot ogayot commented Feb 3, 2026

Too much of the logic for runners is implemented in LoggedCommandRunner.

We now introduce command-wrappers. Command wrappers wrap (e.g., prefix) commands with something, such as systemd-run, sleep-and-execute, ...

Next, we could have a command wrapper that adds a timeout for instance.

We also introduce the concept of backend - with astart_command being the only one supported at the moment.

This reduces the responsibilities of LoggedCommandRunner and allows to combine different command wrappers with more ease.

@ogayot ogayot marked this pull request as draft February 3, 2026 14:05
Today LoggedCommandRunner and DryRunCommandRunner are very coupled with
systemd-run. By introducing command wrappers, we reduce the coupling.

Signed-off-by: Olivier Gayot <[email protected]>
To reduce coupling even more, introduce the CommandRunner base class.
CommandRunner does not have support for command wrappers for now, but it
at least handles the backend.

Signed-off-by: Olivier Gayot <[email protected]>
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.

1 participant