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

Merge fm_dispatch.py and cli.py #9966

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Conversation

berland
Copy link
Contributor

@berland berland commented Feb 5, 2025

No need to keep in separate files

Issue
Resolves unneeded file split

Approach
⌨️

  • 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

@berland berland added the release-notes:refactor PR changes code without changing ANY (!) behavior. label Feb 5, 2025
Copy link

codspeed-hq bot commented Feb 5, 2025

CodSpeed Performance Report

Merging #9966 will improve performances by 10.84%

Comparing berland:rm_cli_dot_py (a7eb918) with main (ee6a12a)

Summary

⚡ 1 improvements
✅ 24 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
test_load_from_context[gen_x: 20, sum_x: 20 reals: 10] 7.1 ms 6.4 ms +10.84%

@berland berland force-pushed the rm_cli_dot_py branch 2 times, most recently from 83d47b7 to ca681b5 Compare February 5, 2025 13:00
from _ert.forward_model_runner.runner import ForwardModelRunner

FORWARD_MODEL_DESCRIPTION_FILE = (
"jobs.json" # This is wrongly named, but must be kept for backwards compatibility
Copy link
Contributor

Choose a reason for hiding this comment

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

"wrongly" -> "incorrectly" ?

fm_runner_logger.setLevel(logging.DEBUG)


NFS_FILE_RETRY_TIME = 30
Copy link
Contributor

@eivindjahren eivindjahren Feb 5, 2025

Choose a reason for hiding this comment

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

Maybe FM_DESCRIPTION_RETRY_TIME ? I guess this race condition could happen on other file systems also. Could maybe have a small comment.

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.

Small naming suggestions, but I see no need to block the merge for that.

@berland berland merged commit 68271ad into equinor:main Feb 5, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:refactor PR changes code without changing ANY (!) behavior.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants