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

Fix workflows running from gui's tools panel not working #9954

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonathan-eq
Copy link
Contributor

@jonathan-eq jonathan-eq commented Feb 4, 2025

Approach
This commit fixes the issue where most of the legacy workflows would not work due to ert_config not being passed to workflow_runner in run_workflow_widget.

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

@jonathan-eq jonathan-eq added the release-notes:bug-fix Automatically categorise as bug fix in release notes label Feb 4, 2025
@jonathan-eq jonathan-eq self-assigned this Feb 4, 2025
@xjules
Copy link
Contributor

xjules commented Feb 4, 2025

Have you tested workflows with this PR?

@larsevj
Copy link
Contributor

larsevj commented Feb 4, 2025

Does the workflows work if you run them as part of an ert run? (maybe the same that was meant with the above comment?)

Copy link

codspeed-hq bot commented Feb 4, 2025

CodSpeed Performance Report

Merging #9954 will not alter performance

Comparing jonathan-eq:fix-export-runpath-job (a59107f) with main (336c4a2)

Summary

✅ 25 untouched benchmarks

@jonathan-eq
Copy link
Contributor Author

Have you tested workflows with this PR?

Yes, both in GUI and with ert workflow

@jonathan-eq
Copy link
Contributor Author

Does the workflows work if you run them as part of an ert run? (maybe the same that was meant with the above comment?)

No, but I can add a workflow_hook and have it run as part of the experiment.

This commit fixes the issue where most of the legacy workflows would not work due to ert_config not being passed to workflow_runner in run_workflow_widget.
This commit refactors the workflow_runner/plugin_runner to not use
ert_config directly; and instead only pass `ert_config.runpaths`
@jonathan-eq jonathan-eq force-pushed the fix-export-runpath-job branch from 0c4c3c2 to a59107f Compare February 4, 2025 14:28
@xjules
Copy link
Contributor

xjules commented Feb 4, 2025

Some mypy errors:

Error: src/ert/cli/workflow.py:23: error: Unexpected keyword argument "ert_config" for "WorkflowRunner"  [call-arg]
src/ert/workflow_runner.py:108: note: "WorkflowRunner" defined here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:bug-fix Automatically categorise as bug fix in release notes
Projects
Status: Ready for Review
Development

Successfully merging this pull request may close these issues.

3 participants