-
Notifications
You must be signed in to change notification settings - Fork 57
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
add execute_command in SSH context #475
Conversation
- add option: "strategy": {"customized_script_header_template_file": ""}, - add option: `sge_pe_name`
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Update pbs.py
for more information, see https://pre-commit.ci
feat: `dpdisp run` (deepmodeling#456)
[pre-commit.ci] pre-commit autoupdate (deepmodeling#457)
fetch master
fetch master
for more information, see https://pre-commit.ci
put `sge_pe_name` in `kwargs`
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
WalkthroughWalkthroughThe recent changes introduce an optional Changes
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional context usedGitHub Check: codecov/patch
Additional comments not posted (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
for more information, see https://pre-commit.ci
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #475 +/- ##
==========================================
- Coverage 59.92% 56.12% -3.80%
==========================================
Files 39 40 +1
Lines 3845 3859 +14
==========================================
- Hits 2304 2166 -138
- Misses 1541 1693 +152 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
if self.execute_command is not None: | ||
self.exec_command(self.execute_command) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Add tests for the new functionality.
The new logic to execute the command if execute_command
is not None
is correctly implemented.
Do you want me to generate the unit testing code or open a GitHub issue to track this task?
Tools
GitHub Check: codecov/patch
[warning] 242-243: dpdispatcher/contexts/ssh_context.py#L242-L243
Added lines #L242 - L243 were not covered by tests
solve issue #474
Summary by CodeRabbit
New Features
execute_command
for executing a command immediately after establishing an SSH connection.Documentation
arginfo
function to include details about the newexecute_command
parameter and its usage.