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 walltime computation bug #9234

Open
wants to merge 1 commit into
base: version-11.1
Choose a base branch
from

Conversation

berland
Copy link
Contributor

@berland berland commented Nov 15, 2024

Issue
Backporting to solve #9216 for 11.1

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 '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

Because we logged finished step events before the current batch
of events were processed, there were situations where the snapshot from a previous
failed realization was out of date.

This solves that problem. There is still a residual problem that will surface if
walltime is to be computed for all steps: If a failure event for a step and its
success event from the subsequent run is in the same batch of events, we can get
a negative walltime computed. This problem is ignored as the walltime computation
is only interesting (currently) for walltimes > 120 seconds, where this cannot
happen (max time between batches is 2 seconds).
@berland berland self-assigned this Nov 15, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.83%. Comparing base (cfe5ec4) to head (6b828c9).

Additional details and impacted files
@@               Coverage Diff                @@
##           version-11.1    #9234      +/-   ##
================================================
- Coverage         90.85%   90.83%   -0.02%     
================================================
  Files               352      352              
  Lines             21959    21960       +1     
================================================
- Hits              19950    19947       -3     
- Misses             2009     2013       +4     
Flag Coverage Δ
cli-tests 39.21% <100.00%> (-0.02%) ⬇️
gui-tests 71.81% <100.00%> (-0.04%) ⬇️
performance-tests 49.36% <100.00%> (+<0.01%) ⬆️
unit-tests 79.65% <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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for Review
Development

Successfully merging this pull request may close these issues.

2 participants