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

Windows support for Service tool added. #3573

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

Conversation

SRIKKANTH
Copy link
Collaborator

@SRIKKANTH SRIKKANTH commented Dec 30, 2024

This pull request adds Windows support for the Service tool.

@SRIKKANTH SRIKKANTH force-pushed the smyakam/service_tool_29_12_20024 branch 5 times, most recently from 5678bbc to 2f38007 Compare December 30, 2024 20:05
lisa/schema.py Outdated Show resolved Hide resolved
@SRIKKANTH SRIKKANTH force-pushed the smyakam/service_tool_29_12_20024 branch from 9cfc7ab to 727572d Compare January 1, 2025 08:18
@SRIKKANTH SRIKKANTH marked this pull request as ready for review January 1, 2025 08:23
@SRIKKANTH SRIKKANTH requested a review from LiliDeng as a code owner January 1, 2025 08:23
@SRIKKANTH SRIKKANTH force-pushed the smyakam/service_tool_29_12_20024 branch from 5b555e0 to 72582c5 Compare January 2, 2025 05:53
This pull request adds Windows support for the Service tool.
force_run=True,
)
except LisaException as identifier:
if "Cannot find any service with service name" in str(identifier):
Copy link
Member

@squirrelsc squirrelsc Jan 7, 2025

Choose a reason for hiding this comment

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

With this error message, when a non-exist service will be stop or restarted in a normal state? if the service doesn't exist, it should fail earlier, instead of stop/start it without errors.

In case it's really needed, please call check_service_exists before stop/start, and raise all errors. The code is clean and easy to read. But before apply like this, please explain when a non-exist service is started or stopped.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding an extra call to check_service_exists will add latency. Since restart/stop can capture it as part of the reason for failure. I think we can keep this message.

I added extra messages to capture reasons for not stopping a service. One of the reasons for not able to stop is dependent services.

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