Skip to content

MAINT: Consolidate workflow logic - #1859

Merged
tnatt merged 1 commit into
equinor:mainfrom
tnatt:consolidate-workflow-logic
Oct 2, 2026
Merged

tnatt merged 1 commit into
equinor:mainfrom
tnatt:consolidate-workflow-logic

Conversation

@tnatt

@tnatt tnatt commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Resolves #1858

Checklist

  • Tests added (if not, comment why)
  • Test coverage equal or up from main (run pytest with --cov=src/ --cov-report term-missing)
  • If not squash merging, every commit passes tests
  • Appropriate commit prefix and precise commit message used
  • All debug prints and unnecessary comments removed
  • Docstrings are correct and updated
  • Documentation is updated, if necessary
  • Latest main rebased/merged into branch
  • Added comments on this PR where appropriate to help reviewers
  • Moved issue status on project board
  • Checked the boxes in this checklist ✅

@codecov-commenter

codecov-commenter commented Sep 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.95%. Comparing base (19d2f14) to head (bacf85f).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1859      +/-   ##
==========================================
+ Coverage   97.67%   97.95%   +0.27%     
==========================================
  Files          59       60       +1     
  Lines        3748     3721      -27     
==========================================
- Hits         3661     3645      -16     
+ Misses         87       76      -11     

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tnatt
tnatt force-pushed the consolidate-workflow-logic branch 4 times, most recently from 2aad6ed to 5eae4c8 Compare September 23, 2026 07:50
@tnatt
tnatt marked this pull request as ready for review September 23, 2026 07:55
""" # noqa


def main() -> None:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This main function seems like legacy. Most likely remnants from before we converted to the new ERT workflow plugin system.

casepath = _resolve_casepath(run_paths, args.ert_caseroot)
ert_config_path = _resolve_ert_config_path(run_paths, args.ert_config_path)
casepath = resolve_casepath(run_paths, args.ert_caseroot)
ert_config_path = Path(run_paths.substitutions["<CONFIG_PATH>"])

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The ert config path is always set by ert in the substitutions. So this should be enough 🙂



if __name__ == "__main__":
main()

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

see comment above.

@nourinmohd nourinmohd 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.

LGTM 👍 from my understanding

@tnatt
tnatt force-pushed the consolidate-workflow-logic branch from 5eae4c8 to bacf85f Compare October 2, 2026 12:45
@tnatt
tnatt merged commit 5cff005 into equinor:main Oct 2, 2026
14 checks passed
@tnatt
tnatt deleted the consolidate-workflow-logic branch October 2, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract case path resolution in ERT workflows into shared utility

3 participants