Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented May 23, 2019

This PR adds the validation routine for the test graph. Dependencies are validated at the test level only, so pseudo-dependencies like the following are not allowed:

(t0, e1) -> (t1, e1)
(t1, e0) -> (t0, e0)

Fixes UES-283.

@vkarak vkarak added this to the ReFrame sprint 2019w20 milestone May 23, 2019
@vkarak vkarak requested review from teojgo and victorusu May 23, 2019 08:13
@vkarak vkarak self-assigned this May 23, 2019
@vkarak
Copy link
Contributor Author

vkarak commented May 23, 2019

There seems to be a problem with Python 3.5 in this PR.

@teojgo
Copy link
Contributor

teojgo commented May 23, 2019

There seems to be a problem with Python 3.5 in this PR.

@vkarak the cycles found are correct but are not the expected ones. It might have to do with the fact that Python3.5 does not respect the insertion order of the dictionary keys. Maybe alter the test cases so that only one cycle is possible or test for either one.

- We are now implemeting DFS for all possible sources that has not yet
  been visited in a previous search.
- A couple of unit tests were also added.
@vkarak
Copy link
Contributor Author

vkarak commented May 27, 2019

@jenkins-cscs retry none

@codecov-io
Copy link

codecov-io commented May 27, 2019

Codecov Report

Merging #797 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #797      +/-   ##
==========================================
+ Coverage   91.51%   91.59%   +0.07%     
==========================================
  Files          78       78              
  Lines        9791     9884      +93     
==========================================
+ Hits         8960     9053      +93     
  Misses        831      831
Impacted Files Coverage Δ
reframe/frontend/dependency.py 95.89% <100%> (+2.41%) ⬆️
unittests/test_policies.py 98.59% <100%> (+0.25%) ⬆️

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 edc8ecf...aa064ab. Read the comment docs.

@vkarak vkarak merged commit 12b7110 into reframe-hpc:master May 27, 2019
@vkarak vkarak deleted the feat/test-graph-validation branch May 27, 2019 08:12
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.

3 participants