-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add out-of-memory detection #7974
Conversation
Logged information pr. realization:
|
This seems more problematic on Ubuntu 22.04. The terminal window running pytest is taken down when trying the
but this would not be sufficient for this Ert feature. |
25435a8
to
db38f8f
Compare
@@ -138,6 +195,9 @@ def ensure_file_handles_closed(): | |||
try: | |||
exit_code = process.wait(timeout=self.MEMORY_POLL_PERIOD) | |||
except TimeoutExpired: | |||
fm_step_pids |= set( |
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.
process.children
gets updated every time I see :)
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.
yes, by intention.
|
Whenever a realization fails the output of dmesg is checked to see if there are any signs of known pids having been killed by the operating system Add an integration test that will exhaust all available memory (by default, this test is not active) and assert that Ert picks up the cause of the realization failing.
Fixed. The test must be skipped on MacOS. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7974 +/- ##
=======================================
Coverage 85.93% 85.94%
=======================================
Files 381 381
Lines 23466 23466
Branches 628 635 +7
=======================================
+ Hits 20165 20167 +2
+ Misses 3228 3226 -2
Partials 73 73 ☔ View full report in Codecov by Sentry. |
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.
NIce job! 🥇 🚀
Whenever a realization fails the output of dmesg is checked to see if there are any signs of known pids having been killed by the operating system
Issue
Resolves #7797
Approach
Simple string searches in
dmesg
output.When applicable