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

Make bsub tests faster #9350

Merged
merged 3 commits into from
Nov 26, 2024
Merged

Make bsub tests faster #9350

merged 3 commits into from
Nov 26, 2024

Conversation

JHolba
Copy link
Contributor

@JHolba JHolba commented Nov 26, 2024

Approach
Removes a wait that is not needed after the last attempt.
Removes retries on stdout missing in one test. This one used to take 30 seconds. Now takes a few ms.

  • 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

Do not wait after last possible attempt in driver execute_with_retry
Remove retries due to stdout missing
@JHolba JHolba self-assigned this Nov 26, 2024
@JHolba JHolba added the release-notes:skip If there should be no mention of this in release notes label Nov 26, 2024
@@ -150,8 +150,8 @@ async def _execute_with_retry(
)
_logger.error(error_message)
return False, error_message

await asyncio.sleep(retry_interval)
if i < (total_attempts - 1):
Copy link
Contributor

Choose a reason for hiding this comment

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

that makes sense! Nice

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.

Good job! let's put it in 🚀

@JHolba JHolba merged commit ca1806e into equinor:main Nov 26, 2024
42 checks passed
@JHolba JHolba deleted the make-bsub-tests-faster branch November 26, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:skip If there should be no mention of this in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants