-
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
improve path check #501
improve path check #501
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
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
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #501 +/- ##
==========================================
- Coverage 60.19% 59.04% -1.16%
==========================================
Files 39 40 +1
Lines 3859 3870 +11
==========================================
- Hits 2323 2285 -38
- Misses 1536 1585 +49 ☔ View full report in Codecov by Sentry. |
📝 WalkthroughWalkthroughThe changes in this pull request primarily focus on the Changes
Possibly related PRs
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 0
🧹 Outside diff range and nitpick comments (1)
dpdispatcher/contexts/ssh_context.py (1)
453-455
: Fix Typographical Error in Assertion MessageThe assertion message should read "remote_root must be an absolute path" instead of "remote_root must be a abspath".
Apply this diff to correct the message:
- ), "remote_root must be a abspath" + ), "remote_root must be an absolute path"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- dpdispatcher/contexts/ssh_context.py (1 hunks)
🧰 Additional context used
🔇 Additional comments (1)
dpdispatcher/contexts/ssh_context.py (1)
453-455
: Improved Path Validation withos.path.realpath
Using
os.path.realpath(remote_root)
ensures that symbolic links are resolved before checking if the path is absolute. This change enhances the robustness of the path validation.
improve path check (deepmodeling#501)
avoid raise error on some sombinations of python version + platform
Summary by CodeRabbit