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

Remove EnKFMain and introduce fixtures to workflows #7501

Merged
merged 4 commits into from
Jun 19, 2024

Conversation

oyvindeide
Copy link
Collaborator

@oyvindeide oyvindeide commented Mar 21, 2024

Closes: #1804

Removes a lot of unneeded complexity, introduces fixtures to workflows.

  • 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

@oyvindeide oyvindeide marked this pull request as draft March 21, 2024 13:42
@oyvindeide oyvindeide force-pushed the remove_enkf_main branch 7 times, most recently from dda27a6 to 9b9b45b Compare March 25, 2024 11:08
@oyvindeide oyvindeide force-pushed the remove_enkf_main branch 2 times, most recently from 29c03fe to 035a9d3 Compare May 7, 2024 08:27
@oyvindeide oyvindeide self-assigned this May 7, 2024
@oyvindeide oyvindeide added the release-notes:breaking-change Automatically categorise as breaking change in release notes label May 7, 2024
@oyvindeide oyvindeide force-pushed the remove_enkf_main branch 7 times, most recently from 350b643 to adc84bb Compare May 14, 2024 08:51
@codecov-commenter
Copy link

codecov-commenter commented May 14, 2024

Codecov Report

Attention: Patch coverage is 90.27027% with 18 lines in your changes missing coverage. Please review.

Project coverage is 86.51%. Comparing base (37c4d20) to head (0819fb7).
Report is 2 commits behind head on main.

Files Patch % Lines
src/ert/shared/exporter.py 44.44% 10 Missing ⚠️
src/ert/libres_facade.py 66.66% 2 Missing ⚠️
src/ert/cli/main.py 0.00% 1 Missing ⚠️
src/ert/gui/tools/plugins/plugin.py 93.75% 1 Missing ⚠️
src/ert/gui/tools/plugins/plugin_handler.py 66.66% 1 Missing ⚠️
...rc/ert/gui/tools/run_analysis/run_analysis_tool.py 85.71% 1 Missing ⚠️
src/ert/run_models/base_run_model.py 88.88% 1 Missing ⚠️
src/ert/simulator/simulation_context.py 92.30% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7501   +/-   ##
=======================================
  Coverage   86.51%   86.51%           
=======================================
  Files         383      383           
  Lines       23742    23760   +18     
  Branches      629      635    +6     
=======================================
+ Hits        20540    20557   +17     
- Misses       3126     3130    +4     
+ Partials       76       73    -3     

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

@oyvindeide
Copy link
Collaborator Author

Had to force push due to conflicts to get the tests running

@oyvindeide oyvindeide changed the title Remove EnKFMain Remove EnKFMain and introduce fixtures to workflows May 23, 2024
@oyvindeide oyvindeide marked this pull request as ready for review May 23, 2024 12:32
@oyvindeide oyvindeide force-pushed the remove_enkf_main branch 2 times, most recently from abb0707 to edbba6d Compare June 4, 2024 11:59
Copy link
Collaborator

@sondreso sondreso left a comment

Choose a reason for hiding this comment

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

This looks good! The documentation also needs to be updated with a good description of the new behavior for workflow arguments.

@oyvindeide oyvindeide force-pushed the remove_enkf_main branch 5 times, most recently from 52c5e24 to 8d92ce8 Compare June 12, 2024 12:25
@sondreso
Copy link
Collaborator

We should add documentation for the workflow plugins and their fixtures as well 📜

@oyvindeide oyvindeide force-pushed the remove_enkf_main branch 4 times, most recently from b7a6715 to f57e396 Compare June 19, 2024 08:42
Copy link
Collaborator

@sondreso sondreso left a comment

Choose a reason for hiding this comment

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

Think this looks good now, only some minor comments!

Thanks for you hard work and persistence 🙏

docs/reference/workflows/workflows.rst Outdated Show resolved Hide resolved
docs/reference/workflows/workflows.rst Show resolved Hide resolved
docs/reference/workflows/workflows.rst Outdated Show resolved Hide resolved
@oyvindeide oyvindeide force-pushed the remove_enkf_main branch 2 times, most recently from be95663 to 688d932 Compare June 19, 2024 12:26
This removes the EnKFMain class, and replaces the remaning
usage with pytest style fixtures. The current usage was mostly
as a facade to ErtConfig, and it held state for the workflows.
@oyvindeide oyvindeide enabled auto-merge (rebase) June 19, 2024 12:28
@oyvindeide oyvindeide merged commit 3f3e682 into equinor:main Jun 19, 2024
36 of 38 checks passed
@oyvindeide oyvindeide deleted the remove_enkf_main branch June 19, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:breaking-change Automatically categorise as breaking change in release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Improved API for workflows
3 participants