-
Notifications
You must be signed in to change notification settings - Fork 108
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
Improve exception handling around init/loading of enkf nodes #4938
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4938 +/- ##
==========================================
- Coverage 63.03% 62.97% -0.06%
==========================================
Files 438 438
Lines 30683 30731 +48
Branches 3127 3175 +48
==========================================
+ Hits 19341 19354 +13
- Misses 10551 10569 +18
- Partials 791 808 +17
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
0f22f25
to
7998fac
Compare
src/clib/lib/enkf/gen_kw_config.cpp
Outdated
@@ -102,6 +104,14 @@ void gen_kw_config_set_parameter_file(gen_kw_config_type *config, | |||
config_content_type *content = | |||
config_parse(parser, parameter_file, "--", NULL, NULL, NULL, | |||
CONFIG_UNRECOGNIZED_ADD, false); | |||
if (!content->valid) { | |||
logger->warning( |
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.
This shows up as multiple logging statements in azure, which is difficult to deal with. Could we make it into one statement?
@eivindjahren the three new tests run in 18 seconds (with |
The function `util_file_readable` does not function as expected, checking only if a file is readable by its owner. We replace by our own check.
There is a block of code in the forward_model_ok callback that was not covered by tests. We rectify this here.
b8222ce
to
4df2cf9
Compare
…_KW parsing errors log! two for the price of one! genous!! fixup
4df2cf9
to
9a406e5
Compare
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.
Please refrain from merging this in its current state, this causes all kinds of conflicts with our feature branch which we are aiming to merge next week. Making tests is fine, but enkf_node.cpp
and field.cpp
in particular will just create a lot of extra work.
@oyvindeide This fixes a bug in the existing code and adds a regression test. This therefore creates more safety for you to merge. |
Issue
Resolves #4900
OBS
we're using a kind of integration test approach. it takes like 2 minutes to run one of the tests, which is quite long. i've tried looking at this before, but it seems like we might not be able to do much about it because of how we set up different components of ert in threads, and their communication with each other.
Approach
See commit messages.
Pre review checklist