Skip to content

Fix bug uploading empty directories for deepmodeling/dpgen#1180 - #322

Merged
njzjz merged 5 commits into
deepmodeling:masterfrom
Cloudac7:master
Apr 13, 2023
Merged

njzjz merged 5 commits into
deepmodeling:masterfrom
Cloudac7:master

Conversation

@Cloudac7

Copy link
Copy Markdown
Contributor

Items in directory_list are dealt with in the same way as file_list during _walk_directory(). However, items in it were not converted back to relavent path pattern while file_list did, causing bug when uploading an empty directory. In DP-GEN process, each Lammps task contains an empty traj directory, and thus, it will be passed into tar.add() with wrong ii and moreover, wrong arcname.

@codecov

codecov Bot commented Apr 13, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.03 ⚠️

Comparison is base (f1b710f) 60.21% compared to head (bf0517c) 60.19%.

❗ Current head bf0517c differs from pull request most recent head cc8a0b7. Consider uploading reports for the commit cc8a0b7 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #322      +/-   ##
==========================================
- Coverage   60.21%   60.19%   -0.03%     
==========================================
  Files          27       27              
  Lines        2898     2899       +1     
==========================================
  Hits         1745     1745              
- Misses       1153     1154       +1     
Impacted Files Coverage Δ
dpdispatcher/ssh_context.py 81.29% <100.00%> (+0.04%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

[BUG] In model_devi step, LAMMPS reports errors with "ERROR on proc 0: Cannot open dump file (src/dump.cpp:582)"

2 participants