-
Notifications
You must be signed in to change notification settings - Fork 117
[bugfix] Do not crash if processor and/or device topology files are not properly formatted JSON files #2136
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 @ekouts, 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 2021-08-23 09:37:00 UTC |
Codecov Report
@@ Coverage Diff @@
## master #2136 +/- ##
==========================================
+ Coverage 85.97% 86.00% +0.03%
==========================================
Files 53 53
Lines 9362 9368 +6
==========================================
+ Hits 8049 8057 +8
+ Misses 1313 1311 -2
Continue to review full report at Codecov.
|
vkarak
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.
I also think that we can add easily a unit test to test that the auto-detection is not broken if the topology files are not valid json files.
Whenever the processor and device files exist but cannot be loaded (empty file, invalid syntax etc), Reframe just stops and throws a throwback. With this PR we ignore the
JSONDecodeErrorand try to regenerate the file.Closes #2110.