Skip to content

Conversation

@jjotero
Copy link
Contributor

@jjotero jjotero commented Mar 17, 2021

Fixed a bug in the pipeline's _rfm_init, where sourcesdir was reset to None if the directory didn't exist. Consequently, when sourcesdir is a git repo and is set in the class body, _rfm_init would just reset it to None.

@jjotero jjotero changed the title Fix sourcesdir reset [Bugfix] Fix sourcesdir reset when it is not a directory. Mar 17, 2021
@jjotero jjotero requested review from teojgo and vkarak March 17, 2021 16:36
@jjotero jjotero self-assigned this Mar 17, 2021
@vkarak
Copy link
Contributor

vkarak commented Mar 17, 2021

Hmm, this behaviour is a feature actually. Here is the feature request, if I remember correctly: #1094.

@vkarak vkarak changed the title [Bugfix] Fix sourcesdir reset when it is not a directory. [bugfix] Fix sourcesdir reset when it is not a directory. Mar 17, 2021
@vkarak
Copy link
Contributor

vkarak commented Mar 17, 2021

Hmm, this behaviour is a feature actually. Here is the feature request, if I remember correctly: #1094.

Well, at least we need to make sure that we don't revert the feature in #1094.

@vkarak vkarak added this to the ReFrame sprint 21.03.1 milestone Mar 17, 2021
@jjotero
Copy link
Contributor Author

jjotero commented Mar 17, 2021

Well, at least we need to make sure that we don't revert the feature in #1094.

I think that should be fixed now. But I guess that we should move all the stuff that affects the vars to a post-init hook in the future.

@codecov-io
Copy link

Codecov Report

Merging #1874 (ae2566e) into master (3623af2) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1874   +/-   ##
=======================================
  Coverage   87.83%   87.83%           
=======================================
  Files          49       49           
  Lines        8395     8395           
=======================================
  Hits         7374     7374           
  Misses       1021     1021           
Impacted Files Coverage Δ
reframe/core/pipeline.py 91.96% <100.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 3623af2...ae2566e. Read the comment docs.

@vkarak vkarak changed the title [bugfix] Fix sourcesdir reset when it is not a directory. [bugfix] Do not reset sourcesdir to None if it is set to a URL Mar 18, 2021
@vkarak
Copy link
Contributor

vkarak commented Mar 19, 2021

@jenkins-cscs retry daint

@vkarak vkarak merged commit e09c9fb into reframe-hpc:master Mar 19, 2021
@jjotero jjotero deleted the bugfix/set-sourcesdir branch April 7, 2021 11:42
@jjotero jjotero restored the bugfix/set-sourcesdir branch April 7, 2021 11:43
@jjotero jjotero deleted the bugfix/set-sourcesdir branch April 7, 2021 11:43
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.

4 participants