Skip to content

Conversation

monkuta
Copy link
Collaborator

@monkuta monkuta commented Jul 29, 2025

This class adds a class to manage the lifecycle of the MtlManager process on a remote host, as well as a connected fixture, that turns the MtlManager on at the beginning of the test and off at the end of it.

@DawidWesierski4
Copy link
Collaborator

Please add sensible git PR description

@monkuta monkuta requested a review from staszczuk August 6, 2025 05:49
@monkuta monkuta requested a review from staszczuk August 7, 2025 13:00
for host in hosts.values():
mgr = MtlManager(host)
mgr.start()
managers[host.name] = mgr
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should raise error here if start returned False

connection = self.host.connection
try:
logger.info("Stopping MtlManager using sudo pkill MtlManager...")
connection.execute_command("sudo pkill MtlManager")
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be better to use self.mtl_manager_process.stop() method or wait / kill () methods than this.
Also it would be nice to verify logs for errors.

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.

4 participants