Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Nov 14, 2019

  • make_deferrable() is renamed to defer() and is moved inside
    reframe.utility.sanity.
  • evaluate() is moved inside reframe.utility.sanity
  • The old functions are deprecated.
  • Functions are now publicly visible and documentation is updated.
  • Tests that were making use of them are adapted.

Fixes #1038.

- `make_deferrable()` is renamed to `defer()` and is moved inside
  `reframe.utility.sanity`.
- `evaluate()` is moved inside `reframe.utility.sanity`
- The old functions are deprecated.
- Functions are now publicly visible and documentation is updated.
- Tests that were making use of them are adapted.
@pep8speaks
Copy link

pep8speaks commented Nov 14, 2019

Hello @vkarak, Thank you for updating!

Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide

Comment last updated at 2019-11-22 09:42:50 UTC

@vkarak vkarak changed the title [feat] Refactor usage of make_deferrable() and evaluate() and make them publicly available [feat] Renamemake_deferrable() to defer() and make it publicly available along with evaluate() Nov 14, 2019
@codecov-io
Copy link

codecov-io commented Nov 14, 2019

Codecov Report

Merging #1050 into master will decrease coverage by <.01%.
The diff coverage is 98.6%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1050      +/-   ##
==========================================
- Coverage   91.97%   91.97%   -0.01%     
==========================================
  Files          81       81              
  Lines       10984    10982       -2     
==========================================
- Hits        10103    10101       -2     
  Misses        881      881
Impacted Files Coverage Δ
unittests/test_deferrable.py 99.61% <100%> (ø) ⬆️
...nittests/resources/checks_unlisted/deps_complex.py 97.64% <100%> (-0.03%) ⬇️
unittests/test_sanity_functions.py 100% <100%> (ø) ⬆️
reframe/utility/sanity.py 98.8% <100%> (+0.02%) ⬆️
reframe/core/pipeline.py 92.24% <100%> (+0.01%) ⬆️
unittests/test_pipeline.py 94.35% <100%> (-0.01%) ⬇️
unittests/test_policies.py 98.86% <100%> (ø) ⬆️
reframe/core/deferrable.py 92.94% <33.33%> (-3.79%) ⬇️
reframe/frontend/executors/__init__.py 97.86% <0%> (-0.07%) ⬇️
... and 3 more

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 595f4a0...31499c6. Read the comment docs.

@vkarak vkarak requested review from ekouts and removed request for ekouts November 14, 2019 22:22
This decorator is an alias to the :func:`reframe.core.deferrable.deferrable`
decorator.
The following function definition is equivalent to the above:
<The following function definition is equivalent to the above:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the < needed?

@teojgo teojgo merged commit 091b3e3 into reframe-hpc:master Nov 22, 2019
@vkarak vkarak deleted the feat/document_make_deferrable branch November 22, 2019 21:39
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.

Make make_deferrable available as a sanity function

4 participants