-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Support for loggable variables, parameters and properties of tests #2428
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
Conversation
|
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 2022-02-18 10:48:44 UTC |
Codecov Report
@@ Coverage Diff @@
## master #2428 +/- ##
==========================================
+ Coverage 85.66% 85.69% +0.03%
==========================================
Files 56 56
Lines 10458 10510 +52
==========================================
+ Hits 8959 9007 +48
- Misses 1499 1503 +4
Continue to review full report at Codecov.
|
victorusu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This PR adds the
loggableargument to thevariableandparameterinterface to allow you to mark a test variable or parameter as loggable. By default, no test attribute (variable or parameter) is loggable. This contrasts with the current default behaviour where everything is loggable, which can lead to problems, such as the one described in #2380. Test properties can also be logged by decorating them with either the@loggableor@loggable_asdecorators. A loggable attribute will become a log record attribute with the namecheck_NAME, whereNAMEis the name of the variable, parameter or property.Almost all previously loggable attributes of
RegressionTestandJobare also marked explicitly as loggable, except any attributes containing deferred expressions, such as thesanity_patternsand theperf_patterns. This PR breaks the logging of custom attributes that are not marked as loggable.This PR does not set the loggable attributes in the various library tests. A separate PR will follow for that.
Fixes #2380.