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

[feat] Evaluate and log all performance values before asserting them #359

Merged
merged 3 commits into from
Jul 19, 2018

Conversation

vkarak
Copy link
Contributor

@vkarak vkarak commented Jul 17, 2018

This is a useful feature for tests that check multiple performance values.

Replaces #334.

mand35 and others added 2 commits July 17, 2018 13:57
One can create multiple objectives for a singe test case (see example
below). This commit evaluate and logs all performance values before
asserting them. Thus we can keep better track of all the values observed
during the tests.

Reference example:

```python
       p_names = {'creation', 'stat', 'removal'}
        for p_name in p_names:
           self.perf_patterns[p_name] = sn.extractsingle(r'^\s+File '+p_name+
                    '\s+:\s+(?P<'+p_name+'>\S+) ', self.stdout, p_name, float)

        self.reference = {
            'kupe:compute' : {
                'creation' : (7747,  -(2*223.1)/7747, None),
                'stat' :     (16527, -(2*558.2)/16527,None),
                'removal' :  (7355, -(2*173.1)/7355, None)
            },
        }
```
Plus a small fix in the implementation introduced by the conflict
resolution.
@codecov-io
Copy link

Codecov Report

Merging #359 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #359      +/-   ##
==========================================
+ Coverage   91.09%   91.11%   +0.02%     
==========================================
  Files          68       68              
  Lines        8244     8265      +21     
==========================================
+ Hits         7510     7531      +21     
  Misses        734      734
Impacted Files Coverage Δ
unittests/test_pipeline.py 97.35% <100%> (+0.12%) ⬆️
reframe/core/pipeline.py 94.76% <100%> (+0.05%) ⬆️

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 3e2753b...c084e22. Read the comment docs.

@vkarak vkarak requested review from rsarm and kraushm July 18, 2018 09:02
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 19, 2018

@jenkins-cscs retry daint dom

@vkarak vkarak merged commit 571a258 into reframe-hpc:master Jul 19, 2018
@vkarak vkarak deleted the feature/eval-always-all-perf-data branch July 19, 2018 17:19
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