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 flaky debug info button test and change button text #9117

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

jonathan-eq
Copy link
Contributor

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

Issue
Resolves #9115

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

@jonathan-eq jonathan-eq added release-notes:improvement Automatically categorise as improvement in release notes release-notes:flaky-test-fix PR fixes a flaky test labels Oct 31, 2024
…data_in_clipboard

The test is flaky because it is assuming the experiment will be done in 10s, which is not always the case.
The button is regardless independent of the experiment status, so this check is not neccessary.

The QueueEmitter gets corrupted if we leave the experiment hanging when
cleaning up the test, so we have to cancel it before leaving.
The button text was misleading, as it could be interpreted as "show debug info" instead of it copying the debug info to the clipboard.
@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.72%. Comparing base (97478fa) to head (2fb3fee).
Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9117      +/-   ##
==========================================
+ Coverage   90.69%   90.72%   +0.03%     
==========================================
  Files         349      350       +1     
  Lines       21764    21778      +14     
==========================================
+ Hits        19738    19758      +20     
+ Misses       2026     2020       -6     
Flag Coverage Δ
cli-tests 39.03% <0.00%> (+0.03%) ⬆️
gui-tests 71.68% <100.00%> (-0.01%) ⬇️
performance-tests 49.24% <100.00%> (+<0.01%) ⬆️
unit-tests 79.57% <100.00%> (+0.04%) ⬆️

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.

Copy link
Contributor

@andreas-el andreas-el left a comment

Choose a reason for hiding this comment

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

This will make the test complete faster. 🤞

@jonathan-eq jonathan-eq merged commit d294930 into equinor:main Oct 31, 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:flaky-test-fix PR fixes a flaky test release-notes:improvement Automatically categorise as improvement in release notes
Projects
None yet
3 participants