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

autotest: rename task directory to avoid false result in a rerun #572

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

shazj99
Copy link
Contributor

@shazj99 shazj99 commented Oct 13, 2021

If we rerun dpgen autotest make param.json and there are already task dirs in work directory, it only deletes and reproduces some input files like POSCAR, but leaves behind result files in last run like OUTCAR. Next when we run dpgen autotest run param.json, it will skip the task directories which already have the result files, and this may leads to a false data.

Change-Id: Ia138ee7c31b6c41d9f41f5943affa9ebf8803c46

Change-Id: Ia138ee7c31b6c41d9f41f5943affa9ebf8803c46
@codecov-commenter
Copy link

Codecov Report

Merging #572 (809f4b0) into devel (cb67774) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            devel     #572      +/-   ##
==========================================
+ Coverage   33.02%   33.05%   +0.02%     
==========================================
  Files          86       86              
  Lines       14739    14737       -2     
==========================================
+ Hits         4868     4871       +3     
+ Misses       9871     9866       -5     
Impacted Files Coverage Δ
dpgen/auto_test/common_equi.py 59.55% <100.00%> (+0.43%) ⬆️
dpgen/auto_test/common_prop.py 39.58% <100.00%> (+0.27%) ⬆️
dpgen/auto_test/lib/utils.py 32.00% <0.00%> (+6.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb67774...809f4b0. Read the comment docs.

@wanghan-iapcm wanghan-iapcm merged commit 0cb32d6 into deepmodeling:devel Oct 15, 2021
Cloudac7 pushed a commit to Cloudac7/dpgen that referenced this pull request Dec 1, 2021
…pmodeling#572)

Change-Id: Ia138ee7c31b6c41d9f41f5943affa9ebf8803c46

Co-authored-by: Zhengju Sha <[email protected]>
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.

4 participants