-
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
Have ForwardModelRunner validate executable_file earlier #8735
Conversation
16f7255
to
7fb475f
Compare
7fb475f
to
e6a2f0c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8735 +/- ##
=======================================
Coverage 91.35% 91.35%
=======================================
Files 342 342
Lines 20975 20975
=======================================
Hits 19162 19162
Misses 1813 1813
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Is there some reason why this couldn't/shouldn't be done in the config parsing stage, and on the job_runner side? It could be added in
really we want users to add their own, but validating that an executable exists is pretty elementary. Also an edge case; if we expect the executable to be created by a preceding forward model (or maybe we want to disallow that, not sure). |
e6a2f0c
to
f365fef
Compare
Yes, but it is unclear if this is ert's responsibility, or if the forward model step should have already validated itself. |
f365fef
to
3abc5b2
Compare
I see. Just some context for this: In the ForwardModelStepPlugin we did want users to do their own validation, so we omitted providing default validations for argument types etc. But at the same time we may have just "forgotten" to add the most basic validation (that the executable exists). Non-plugin fms validate this and other things, so it might just make sense to do it there. |
445298a
to
648ccd2
Compare
648ccd2
to
82c096f
Compare
Actually I agree having the basic |
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.
As suggested by @yngve-sk, let's add the "basic" file-exist validation.
Can we have this as a separate issue? |
Ok, then create one (as you have more insight ;)) and mention it also in this PR |
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.
Very nice! I think it should do 🚀
This commit fixes the issue where the ForwardModelRunner on the job_runner side would crash when validating the existence of a ForwardModelStep executable; causing the drivers to hang while waiting for a never coming return code from JobRunner.
82c096f
to
3c370b5
Compare
This commit fixes the issue where the ForwardModelRunner on the job_runner side would crash when validating the existence of a ForwardModelStep executable; causing the drivers to hang while waiting for a never coming return code from JobRunner.
Issue
Resolves #8729
Approach
⛄
(Screenshot of new behavior in GUI if applicable)
git rebase -i main --exec 'pytest tests/unit_tests -n logical -m "not integration_test"'
)When applicable