Skip to content
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

Turn unexpected fm errors into warnings #8832

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

yngve-sk
Copy link
Contributor

@yngve-sk yngve-sk commented Oct 1, 2024

Issue
Resolves #8830

@yngve-sk yngve-sk marked this pull request as ready for review October 1, 2024 10:34
@@ -608,6 +608,11 @@ def _create_list_of_forward_model_steps_to_run(
context=fm_step.name,
),
)
except Exception as e: # type: ignore
ConfigWarning.warn(str(e), context=fm_step.name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think both the log and the warning should have the text Unexpected exception in forward model validation of {fm_step.name}: as all ConfigWarnings are logged in the Suggestor we don't need an additional log statement.

Copy link
Contributor

@eivindjahren eivindjahren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a smalll adjustment to the message shown, otherwise it is good.

@yngve-sk yngve-sk force-pushed the fmplugin-othererrsaswarns branch from 8e8c117 to 2b21053 Compare October 1, 2024 10:44
Copy link
Contributor

@eivindjahren eivindjahren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@yngve-sk yngve-sk enabled auto-merge (squash) October 1, 2024 10:54
@codecov-commenter
Copy link

codecov-commenter commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.41%. Comparing base (e92f558) to head (2b21053).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8832      +/-   ##
==========================================
+ Coverage   91.38%   91.41%   +0.02%     
==========================================
  Files         342      342              
  Lines       21028    21030       +2     
==========================================
+ Hits        19216    19224       +8     
+ Misses       1812     1806       -6     
Flag Coverage Δ
cli-tests 39.61% <0.00%> (+0.01%) ⬆️
gui-tests 73.57% <0.00%> (+0.02%) ⬆️
performance-tests 50.06% <0.00%> (+<0.01%) ⬆️
unit-tests 79.84% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yngve-sk yngve-sk merged commit 5d4205d into equinor:main Oct 2, 2024
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When validating forward model step plugins, other exceptions should be caught and shown as warnings
3 participants