Skip to content

Limit capturing of warnings from forward model steps#12789

Merged
berland merged 2 commits intoequinor:mainfrom
berland:cap_warnings_from_fm_step
Feb 5, 2026
Merged

Limit capturing of warnings from forward model steps#12789
berland merged 2 commits intoequinor:mainfrom
berland:cap_warnings_from_fm_step

Conversation

@berland
Copy link
Contributor

@berland berland commented Feb 4, 2026

Leaving this uncapped can give an arbitrary amount of log messages, which will be useless the user seeing this in the GUI, and will also clog the logging system.

Issue
Resolves #12781

Approach

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'just rapid-tests')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Add backport label to latest release (format: 'backport release-branch-name')

Leaving this uncapped can give an arbitrary amount of log messages, which will be useless
the user seeing this in the GUI, and will also clog the logging system.
@berland berland self-assigned this Feb 4, 2026
@berland berland added the release-notes:maintenance Automatically categorise as maintenance change in release notes label Feb 4, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.72%. Comparing base (23469e6) to head (4c87a31).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12789      +/-   ##
==========================================
+ Coverage   90.68%   90.72%   +0.03%     
==========================================
  Files         433      434       +1     
  Lines       30239    30249      +10     
==========================================
+ Hits        27422    27443      +21     
+ Misses       2817     2806      -11     
Flag Coverage Δ
cli-tests 37.17% <71.42%> (+0.01%) ⬆️
gui-tests 68.52% <71.42%> (+0.01%) ⬆️
performance-and-unit-tests 77.13% <100.00%> (+0.04%) ⬆️
test 37.48% <71.42%> (+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.

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 4, 2026

Merging this PR will not alter performance

✅ 23 untouched benchmarks


Comparing berland:cap_warnings_from_fm_step (4c87a31) with main (58dc63d)

Open in CodSpeed

real: Realization,
job_submission_time: float,
timeout_seconds: int = Job.DEFAULT_FILE_VERIFICATION_TIMEOUT,
max_logged_warnings: int = 200,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think this will be high enough? Since this is the sum of all warnings, others might be overlooked. This is per realization?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is up for discussion. 200 is not very much, agree, but still more than what the user is able to take in when these are flashed in the GUI.

Some warnings will for sure be overlooked, and then will be missing in our logging system if we search for specific warnings, but that will be the case for any picked number.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be a bad idea to log a certain message every time we hit this cap?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

Copy link
Contributor

@andreas-el andreas-el left a comment

Choose a reason for hiding this comment

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

Very nice! 🥓

@berland berland merged commit 63467e6 into equinor:main Feb 5, 2026
35 checks passed
@scout-team-app
Copy link

scout-team-app bot commented Feb 5, 2026

Successfully created backport PR for version-19.0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport version-19.0 release-notes:maintenance Automatically categorise as maintenance change in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Excessive amounts of warnings from fm step logged

3 participants