Skip to content

Log every command before being executed and after being executed.#93

Merged
cijohnson merged 1 commit into
ROCm:mainfrom
snalluru-amd:log
Mar 11, 2026
Merged

Log every command before being executed and after being executed.#93
cijohnson merged 1 commit into
ROCm:mainfrom
snalluru-amd:log

Conversation

@snalluru-amd

Copy link
Copy Markdown

This exactly informs the user as to whats happening when commands are being run

Motivation

want to know what command is being run on each host

Technical Details

add a log

Test Plan

run cvs command to start a test.

Test Result

It prints the exact command run on each server.

Submission Checklist

Comment thread cvs/lib/parallel_ssh_lib.py Outdated
# Log command execution
if self.log:
if timeout is not None:
self.log.info(f"Executing command on {len(self.reachable_hosts)} host(s) [timeout={timeout}s]: {cmd}")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we make it debug level instead of info level?

@cijohnson cijohnson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we log these at debug level? else in a 1000 node setup we will be adding about 2000 lines for each command executed.

Also UT failed, please refer https://github.com/ROCm/cvs/pull/93/checks for logs

make test, will help identify ut/format/lint issue early before CI

This exactly informs the user as to whats happening when commands are
being run
@cijohnson cijohnson merged commit c622dea into ROCm:main Mar 11, 2026
2 checks passed
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