-
Notifications
You must be signed in to change notification settings - Fork 37
Test faults #256
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
Test faults #256
Conversation
Codecov ReportBase: 68.66% // Head: 70.59% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #256 +/- ##
==========================================
+ Coverage 68.66% 70.59% +1.93%
==========================================
Files 229 229
Lines 19643 19646 +3
==========================================
+ Hits 13487 13869 +382
+ Misses 6156 5777 -379
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
I am confused how adding more tests reduced the coverage this much... Do files that don't get tested at all not count into the percentage? Otherwise it is weird to me that testing half of the |
Don't know. Untested files are of course counted toward the overall coverage (unless they are in the The "classical" coverage report (see artifacts of your CI run) show the same numbers, btw. |
|
In the coverage report only files show up that are tested to some extent and at the bottom it says "33 empty files skipped." only the tests directory is tested, right? Why would coverage check other directories for tests as well? to execute only one of the tests which I added, I get a coverage of 51%, but there is no way that I am execution 51% of the code with this. Just 51% of the files which participate in this test are executed. Right? |
|
I failed at the coverage thing :( Still convinced that this PR improves coverage, though |
|
Please merge latest commits from |
|
What's the status here? |
|
Codecov is complaining that the test coverage is too low in the files that I touched. Given that the overall test coverage is still up by 2%, I suggest merging this anyways. |

I add soft faults via a hook and I used to do it with inheritance. However, this was not compatible with the current hook API anymore.
I used the opportunity to clean up most of the hooks in the resilience project folder and adapted the notebooks to the new changes.
Also, I added some tests for generating fault statistics. These are part of the mpi tests because different processors generate statistics for different strategies in parallel. All individual experiments are run in serial.
The tests are a bit flaky because I get overflow errors on GitHub, but not on my laptop. The result is a test that is not as strict as I would like, but I think it's better than nothing. Unfortunately I did not find a satisfactory solution to fix the overflow behaviour across machines so far.
Since I need to generate plots with the fault stuff, I wanted to get everything working again and maybe come back to the flaky test when I have more experience/patience/wisdom/beer/time.