Skip to content

Conversation

@teojgo
Copy link
Contributor

@teojgo teojgo commented Sep 18, 2020

  • Add a custom 'json' utility package which uses the
    __rfm_json_encode__ method for json encoding if defined.

  • Implement the above method for _Deferred_Expression objects.

  • Add unittests for the custom json utility package.

Fixes #1459

* Add a custom 'json' utility package which uses the
`__rfm_json_encode__` method for json encoding if defined.

* Implement the above method for `_Deferred_Expression` objects.

* Add unittests for the custom `json` utility package.
@teojgo teojgo added this to the ReFrame sprint 20.13 milestone Sep 18, 2020
@teojgo teojgo requested review from ekouts, jgphpc and vkarak September 18, 2020 15:10
@teojgo teojgo self-assigned this Sep 18, 2020
@codecov-commenter
Copy link

codecov-commenter commented Sep 18, 2020

Codecov Report

Merging #1489 into master will increase coverage by 0.01%.
The diff coverage is 96.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1489      +/-   ##
==========================================
+ Coverage   91.71%   91.72%   +0.01%     
==========================================
  Files          82       83       +1     
  Lines       12928    12959      +31     
==========================================
+ Hits        11857    11887      +30     
- Misses       1071     1072       +1     
Impacted Files Coverage Δ
reframe/utility/json.py 91.66% <91.66%> (ø)
reframe/core/deferrable.py 97.52% <100.00%> (+0.02%) ⬆️
reframe/frontend/cli.py 79.41% <100.00%> (+0.05%) ⬆️
unittests/test_utility.py 99.74% <100.00%> (+<0.01%) ⬆️

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 0e59de1...d9736aa. Read the comment docs.

@vkarak vkarak changed the title [bugfix] Create json utility package for object dumping [bugfix] Fix JSON report generation for deferred expressions Sep 18, 2020
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.

lgtm

@vkarak vkarak merged commit d08a2cb into reframe-hpc:master Sep 20, 2020
@teojgo teojgo deleted the bugfix/deferred_json branch October 23, 2020 13:57
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.

Object of type '_DeferredExpression' is not JSON serializable

3 participants