Skip to content

Handle runtime plugins in bulk converter - #14073

Merged
SAKavli merged 3 commits into
equinor:mainfrom
SAKavli:investigate-hooked-workflow-bug
Aug 3, 2026
Merged

Handle runtime plugins in bulk converter#14073
SAKavli merged 3 commits into
equinor:mainfrom
SAKavli:investigate-hooked-workflow-bug

Conversation

@SAKavli

@SAKavli SAKavli commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

The summary_to_bulk would fail if any runtime plugins are configured in the ert configuration. This was revealed when testing the tooling on Drogon.

This change will load the ErtConfig with respect to runtime plugins such that the workflow does not fail.

Appended some extra fixup commits to consistently handle warnings and errors among the bulk and yaml (other PR) converter.

@SAKavli SAKavli added the release-notes:unreleased-bug-fix PR with a bug-fix of unreleased features label Aug 2, 2026
@codecov-commenter

codecov-commenter commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.82%. Comparing base (62b0035) to head (9a18753).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14073      +/-   ##
==========================================
- Coverage   91.83%   91.82%   -0.01%     
==========================================
  Files         482      482              
  Lines       33444    33453       +9     
==========================================
+ Hits        30713    30718       +5     
- Misses       2731     2735       +4     
Flag Coverage Δ
cli-tests 36.20% <53.33%> (+<0.01%) ⬆️
fuzz 44.10% <53.33%> (+<0.01%) ⬆️
gui-tests 58.39% <53.33%> (-0.02%) ⬇️
performance-and-unit-tests 80.45% <100.00%> (-0.01%) ⬇️
test 46.42% <0.00%> (-0.02%) ⬇️

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

Files with missing lines Coverage Δ
src/ert/observation_converters/dispatcher.py 100.00% <100.00%> (ø)
src/ert/observation_converters/summary_to_bulk.py 97.52% <100.00%> (+0.17%) ⬆️

... and 1 file with indirect coverage changes

@SAKavli SAKavli self-assigned this Aug 2, 2026
@SAKavli SAKavli added this to SCOUT Aug 2, 2026
@SAKavli SAKavli moved this to Ready for Review in SCOUT Aug 2, 2026
@SAKavli
SAKavli requested a review from Copilot August 2, 2026 15:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes summary_to_bulk conversion failing when the ERT config includes hooked workflows that reference workflow jobs provided by runtime plugins. It does so by ensuring ErtConfig is loaded with the runtime plugin context during conversion.

Changes:

  • Thread runtime plugin information through the observation converter dispatcher and into convert_summary_to_bulk.
  • Load ErtConfig via ErtConfig.with_plugins(runtime_plugins) so plugin-provided workflow jobs are available during config parsing/validation.
  • Update and extend unit tests to pass plugin context and add a regression test for hooked workflows.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/ert/observation_converters/summary_to_bulk.py Loads ErtConfig with runtime plugins to prevent failures when plugin jobs are referenced.
src/ert/observation_converters/dispatcher.py Passes runtime plugin data into converter functions.
tests/ert/unit_tests/cli/test_summary_to_bulk.py Updates existing tests for new converter signature and adds a regression test covering hooked workflows + plugin jobs.

Comment thread src/ert/observation_converters/dispatcher.py Outdated
Comment thread tests/ert/unit_tests/cli/test_summary_to_bulk.py
@codspeed-hq

codspeed-hq Bot commented Aug 2, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 36 untouched benchmarks


Comparing SAKavli:investigate-hooked-workflow-bug (9a18753) with main (36f7948)

Open in CodSpeed

@SAKavli SAKavli moved this from Ready for Review to In Progress in SCOUT Aug 3, 2026
@SAKavli
SAKavli force-pushed the investigate-hooked-workflow-bug branch 2 times, most recently from 6faf460 to a6135f9 Compare August 3, 2026 11:54
SAKavli added 3 commits August 3, 2026 14:18
The summary_to_bulk would fail if any runtime plugins are configured
in the ert configuration. This was revealed when testing the tooling
on Drogon.

This change will load the ErtConfig with respect to runtime plugins
such that the workflow does not fail.
ErtConfig will oftentimes raise warnings regarding the experiment
setup which is not relevant for this tooling.

We will only be interested in errors raised during the setup of
the ErtConfig and the tooling itself.
@SAKavli
SAKavli force-pushed the investigate-hooked-workflow-bug branch from a6135f9 to 9a18753 Compare August 3, 2026 12:18
@SAKavli SAKavli moved this from In Progress to Ready for Review in SCOUT Aug 3, 2026
@ajaust ajaust self-assigned this Aug 3, 2026

@ajaust ajaust left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks nice! I have two small comments. You may decide what to do with them. 😄

Comment thread src/ert/observation_converters/summary_to_bulk.py
Comment thread src/ert/observation_converters/dispatcher.py
@github-project-automation github-project-automation Bot moved this from Ready for Review to Reviewed in SCOUT Aug 3, 2026
@SAKavli
SAKavli merged commit 6ce6ad2 into equinor:main Aug 3, 2026
35 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewed to Done in SCOUT Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes:unreleased-bug-fix PR with a bug-fix of unreleased features

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants