Skip to content

Conversation

@rsarm
Copy link
Contributor

@rsarm rsarm commented Nov 16, 2020

EDIT: @vkarak

This PR adds the ability to log any test attribute. If the attribute cannot be found, <undefined> will be logged instead. If an attribute is deferrable it will be evaluated and if this is not possible <error> will be logged.

Fixes #1068.
Fixes #1432.

@codecov-io
Copy link

codecov-io commented Nov 16, 2020

Codecov Report

Merging #1600 (46dec6a) into master (dc7e2d8) will increase coverage by 0.02%.
The diff coverage is 97.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1600      +/-   ##
==========================================
+ Coverage   87.81%   87.84%   +0.02%     
==========================================
  Files          44       44              
  Lines        7241     7267      +26     
==========================================
+ Hits         6359     6384      +25     
- Misses        882      883       +1     
Impacted Files Coverage Δ
reframe/core/logging.py 84.33% <97.14%> (+0.94%) ⬆️

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 dc7e2d8...46dec6a. Read the comment docs.

Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

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

The documentation must also be updated.

Vasileios Karakasis added 5 commits November 21, 2020 13:50
- Remove the `log_extra` attribute. This is not needed, because if an attribute
  does not exist, it will be simply logged as `None`. So users can introduce any
  check attribute as a format specifier.
- Add unit tests
- As well as format `None` and errors in a human-readable manner.
@vkarak vkarak changed the title [feat] Allow any test field to be logged as well as allow tests to log arbitrary data [feat] Allow any test attribute to be logged Nov 21, 2020
@vkarak
Copy link
Contributor

vkarak commented Nov 21, 2020

I have finalized this PR. @rsarm @ekouts Have a look in case something is missing.

Copy link
Contributor

@ekouts ekouts left a comment

Choose a reason for hiding this comment

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

lgtm

@rsarm
Copy link
Contributor Author

rsarm commented Nov 23, 2020

lgtm

@vkarak vkarak merged commit 4aa8ac9 into reframe-hpc:master Nov 23, 2020
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.

Allow non-numbers as values to performance variables Allow any test field to be logged as well as allow tests to log arbitrary data

4 participants