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

Let zmq select port in EnsembleEvaluator #9991

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

JHolba
Copy link
Contributor

@JHolba JHolba commented Feb 6, 2025

Issue
Resolves #9906
Resolves #9987

Approach
use zmq's bind_to_random_port instead of finding a port first and then trying to rebind it later.

  • 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 'just rapid-tests')

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

Copy link

codspeed-hq bot commented Feb 6, 2025

CodSpeed Performance Report

Merging #9991 will not alter performance

Comparing JHolba:zmq-selects-port (6b40904) with main (912dbc8)

Summary

✅ 25 untouched benchmarks

zmq will select a port each time ensemble evaluator starts. This way
there will be no time where other programs can pick up the target
port before zmq does.
Removed large parts of net_utils and its tests that were no longer
needed.
@JHolba JHolba marked this pull request as ready for review February 6, 2025 13:56
@JHolba JHolba changed the title let zmq select port Let zmq select port in EnsembleEvaluator Feb 6, 2025
@JHolba JHolba self-assigned this Feb 6, 2025
@JHolba JHolba added the release-notes:bug-fix Automatically categorise as bug fix in release notes label Feb 6, 2025
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.

Great! Nicely done @JHolba ! 🚀

@JHolba JHolba mentioned this pull request Feb 6, 2025
9 tasks
@JHolba JHolba merged commit 7642464 into equinor:main Feb 6, 2025
27 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
Status: Done
2 participants