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

Revert refactor that caused tests to be flaky #9758

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

Conversation

frode-aarstad
Copy link
Contributor

Issue
Resolves #9738

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

@frode-aarstad frode-aarstad added the release-notes:flaky-test-fix PR fixes a flaky test label Jan 16, 2025
@frode-aarstad frode-aarstad self-assigned this Jan 16, 2025
Copy link

codspeed-hq bot commented Jan 16, 2025

CodSpeed Performance Report

Merging #9758 will not alter performance

Comparing frode-aarstad:flaky-test-fix (91f4414) with main (843f4fd)

Summary

✅ 24 untouched benchmarks

@@ -305,7 +304,8 @@ def main():
simulation_callback=partial(_sim_monitor, shared_data=shared_data),
optimization_callback=partial(_opt_monitor, shared_data=shared_data),
)
if run_model._queue_config.queue_system == QueueSystem.LOCAL:

if config.simulator.queue_system.name == "local":
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure this will fail, but:

if run_model._queue_config.queue_system.lower() == QueueSystem.LOCAL.lower():

might be safer. Would we be able to test this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why is it lower in the first place?

I think we should merge this as it is as we know that will fix the problem at hand

Copy link
Collaborator

Choose a reason for hiding this comment

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

Because everest user lower while ert uses upper. Changed it for ert here: 68ab17b, so should always be lower now.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky test: test_everserver_status_contains_max_runtime_failure
2 participants