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

Log contents of custom forward model steps #8696

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

berland
Copy link
Contributor

@berland berland commented Sep 13, 2024

Issue
Resolves https://github.com/equinor/scout/issues/1132

Approach
Short description of the approach

(Screenshot of new behavior in GUI if applicable)

  • 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 tests pass locally (after every commit!)

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: Create Backport PR to latest release

@berland berland added the release-notes:misc Automatically categorise as miscellaneous change in release notes label Sep 13, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.44%. Comparing base (47c7f5f) to head (37a3644).
Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8696      +/-   ##
==========================================
+ Coverage   90.96%   91.44%   +0.47%     
==========================================
  Files         343      343              
  Lines       21286    21292       +6     
==========================================
+ Hits        19363    19470     +107     
+ Misses       1923     1822     -101     
Flag Coverage Δ
cli-tests 38.83% <100.00%> (?)
gui-tests 72.35% <100.00%> (-3.89%) ⬇️
integration-tests ?
performance-tests 49.22% <100.00%> (?)
unit-tests 80.07% <100.00%> (+11.11%) ⬆️

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.

schema=init_user_config_schema(),
)
for fm_step, fm_step_filename in user_config.get(ConfigKeys.INSTALL_JOB, []):
fm_configuration = Path(fm_step_filename).read_text(encoding="utf-8")
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be logged after the ErtConfig is parsed to avoid 1) parsing the config file twice and 2) avoid raising FileNotFoundError instead of ConfigurationValidationError.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed (methinks)

Copy link
Contributor

Choose a reason for hiding this comment

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

Just checked and bad permissions for the config file and non-existent config file is handled by __main__.py.

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.

👍

@berland berland enabled auto-merge (rebase) September 16, 2024 12:31
@berland berland merged commit a24c64a into equinor:main Sep 16, 2024
35 checks passed
@berland berland deleted the log_fm_steps branch October 9, 2024 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:misc Automatically categorise as miscellaneous change in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants