Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Jul 8, 2020

In the past we removed the stage directory of a test in two places. Inside the RuntimeContext and inside and low-level os_ext.copytree() function. We have changed copytree() and made it completely compatible with Python 3.8, which has added the dirs_exist_ok argument. It does not remove the target directory if it exists, as it was the previous version. Responsible for removing the stage directory is only the RuntimeContext.

I want some feedback about the name of the command-line option and the naming of the configuration option as well.

Fixes #1366.

Vasileios Karakasis added 3 commits July 7, 2020 18:43
To better support this, the `os_ext.copytree()` was rewritten to comply with the
`dirs_exist_ok` argument added in Python 3.8
Plus a minor fix in the implementation along with unit test adaptation.
@vkarak vkarak added this to the ReFrame sprint 20.10 milestone Jul 8, 2020
@vkarak vkarak requested review from teojgo and victorusu July 8, 2020 22:18
@vkarak vkarak self-assigned this Jul 8, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2020

Codecov Report

Merging #1404 into master will increase coverage by 0.01%.
The diff coverage is 91.80%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1404      +/-   ##
==========================================
+ Coverage   91.77%   91.79%   +0.01%     
==========================================
  Files          83       83              
  Lines       12708    12743      +35     
==========================================
+ Hits        11663    11697      +34     
- Misses       1045     1046       +1     
Impacted Files Coverage Δ
reframe/core/pipeline.py 92.89% <50.00%> (ø)
reframe/utility/os_ext.py 89.95% <84.61%> (-0.63%) ⬇️
reframe/core/runtime.py 94.26% <100.00%> (+0.11%) ⬆️
reframe/frontend/cli.py 78.88% <100.00%> (+0.06%) ⬆️
unittests/test_cli.py 90.80% <100.00%> (+0.35%) ⬆️
unittests/test_utility.py 99.72% <100.00%> (+0.28%) ⬆️
reframe/core/decorators.py 96.90% <0.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 072b358...7992364. Read the comment docs.

@vkarak
Copy link
Contributor Author

vkarak commented Jul 9, 2020

@jenkins-cscs retry daint kesch

Copy link
Contributor

@victorusu victorusu left a comment

Choose a reason for hiding this comment

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

lgtm

@vkarak
Copy link
Contributor Author

vkarak commented Jul 9, 2020

@jenkins-cscs retry none

@vkarak vkarak merged commit 387b9ec into reframe-hpc:master Jul 9, 2020
@vkarak vkarak deleted the feat/dont-restage branch July 9, 2020 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an option to reuse the existing stage directory

3 participants