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

Trigger batching dispatcher on success/failure of ensemble #9183

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

Conversation

JHolba
Copy link
Contributor

@JHolba JHolba commented Nov 12, 2024

Issue
#9136

Approach
Send batch from batching dispatcher immediately when we get EnsembleSucceeded or EnsembleFailed.

  • 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 'pytest tests/ert/unit_tests -n logical -m "not integration_test"')

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

@JHolba JHolba self-assigned this Nov 12, 2024
@JHolba JHolba added the release-notes:improvement Automatically categorise as improvement in release notes label Nov 12, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.71%. Comparing base (3fec61f) to head (c729b07).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9183      +/-   ##
==========================================
- Coverage   90.74%   90.71%   -0.04%     
==========================================
  Files         352      352              
  Lines       21937    21939       +2     
==========================================
- Hits        19907    19902       -5     
- Misses       2030     2037       +7     
Flag Coverage Δ
cli-tests 39.19% <100.00%> (-0.05%) ⬇️
gui-tests 71.77% <100.00%> (+0.02%) ⬆️
performance-tests 49.36% <100.00%> (+<0.01%) ⬆️
unit-tests 79.68% <100.00%> (+0.01%) ⬆️

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

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

@xjules
Copy link
Contributor

xjules commented Nov 15, 2024

btw, if you want to connect PR with the issue you need to write either Fixes, Resolves and then the issue

@@ -147,6 +147,8 @@ def set_event_handler(event_types: Set[Type[Event]], func: Any) -> None:
function = event_handler[type(event)]
batch.append((function, event))
self._events.task_done()
if type(event) in [EnsembleSucceeded, EnsembleFailed]:
Copy link
Contributor

@xjules xjules Nov 15, 2024

Choose a reason for hiding this comment

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

I made the comment in the issue: #9136 (comment)
This if would make batching slower for no relevant reason.

Copy link
Contributor

@xjules xjules left a comment

Choose a reason for hiding this comment

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

I think this one is not necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
christmas-review release-notes:improvement Automatically categorise as improvement in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants