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

Rename job to step in _ert/forward_model_runner #10013

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

berland
Copy link
Contributor

@berland berland commented Feb 7, 2025

This commit will change almost all occurences of the string job to the correct term step, except for where it is regarded as a potentially breaking change for users.

  • 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

This commit will change almost all occurences of the string job
to the correct term step, except for where it is regarded as
a potentially breaking change for users.
@berland berland added the release-notes:refactor PR changes code without changing ANY (!) behavior. label Feb 7, 2025
Copy link

codspeed-hq bot commented Feb 7, 2025

CodSpeed Performance Report

Merging #10013 will improve performances by 11%

Comparing berland:job_to_step_in_fm_runner (7fd1825) with main (9f5093a)

Summary

⚡ 1 improvements
✅ 24 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
test_direct_dark_performance_with_storage[gen_x: 20, sum_x: 20 reals: 10-summary-get_record_observations] 1.5 ms 1.4 ms +11%

@berland berland self-assigned this Feb 7, 2025
@@ -85,35 +85,35 @@ class ForwardModelStep:
MEMORY_POLL_PERIOD = 5 # Seconds between memory polls

def __init__(
self, job_data: ForwardModelStepJSON, index: int, sleep_interval: int = 1
self, step_data: ForwardModelStepJSON, index: int, sleep_interval: int = 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Separate issue, but could consider calling this either just step or step_json. The postfix _data doesn't really add anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, but it needs some thinking, so postponing.

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.

👍

@berland berland merged commit 9afe260 into equinor:main Feb 10, 2025
27 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