Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lava_results_app: convert Decimal objects to string storing as YAML
Convert Decimal objects to Python strings and then create a regular YAML ScalarNode to avoid storing Python object types in the results. Without this patch, YAML text case metadata measurements from the job results would contain things like this: measurement: !!python/object/apply:decimal.Decimal ['15'] which is not standard YAML and can't be imported by non-Python parsers. A similar issue can be seen in CSV exports. With this patch applied, we get this instead: measurement: '15.0000000000' which can be parsed by any standard YAML parser. Signed-off-by: Guillaume Tucker <[email protected]>
- Loading branch information