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 run_dialog second progress bar hanging #8935

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

jonathan-eq
Copy link
Contributor

@jonathan-eq jonathan-eq commented Oct 10, 2024

This commit fixes the issue where an experiment failure would leave the second progress bar stuck in indeterminate state. This commit makes it so that second progress bar is invisible as long as there are no realizations or if all realizations are finished.

Issue
Resolves #8912

Approach
Short description of the approach

(Screenshot of new behavior in GUI if applicable)

  • 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

This commit fixes the issue where an experiment failure would leave the second progress bar stuck in indeterminate state.
Now, the second progress bar is invisible as long as there are no realizations or if all realizations are finished.
@jonathan-eq jonathan-eq self-assigned this Oct 10, 2024
@jonathan-eq jonathan-eq added the release-notes:bug-fix Automatically categorise as bug fix in release notes label Oct 10, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.58%. Comparing base (a342528) to head (b6189bc).
Report is 50 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8935      +/-   ##
==========================================
+ Coverage   91.44%   91.58%   +0.14%     
==========================================
  Files         344      343       -1     
  Lines       21122    21166      +44     
==========================================
+ Hits        19314    19384      +70     
+ Misses       1808     1782      -26     
Flag Coverage Δ
cli-tests 39.76% <0.00%> (+0.12%) ⬆️
gui-tests 73.82% <100.00%> (+0.30%) ⬆️
performance-tests 50.40% <80.00%> (+0.25%) ⬆️
unit-tests 80.27% <100.00%> (+0.17%) ⬆️

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.

@@ -90,9 +89,16 @@ def repaint_components(self) -> None:
def stop_waiting_progress_bar(self) -> None:
self._waiting_progress_bar.setVisible(False)

def start_waiting_progress_bar(self) -> None:
Copy link
Contributor

@xjules xjules Oct 10, 2024

Choose a reason for hiding this comment

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

Is it reasonable to write a simple test for it? Ie. self._wait_progress_bar active or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure; it hanging or not will most likely go unnoticed by the users anyways. I can add a small unit test, but I do not think we should put too much effort into it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, I see. Currently it is not tested at all. Then I guess I'll leave it up to you :)

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.

Nice job @jonathan-eq ! 🎸

@jonathan-eq jonathan-eq merged commit 06c6dc6 into equinor:main Oct 10, 2024
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:bug-fix Automatically categorise as bug fix in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On experiment failure the second progress bar is stuck in indeterminate state
3 participants