Skip to content

Conversation

@andre-merzky
Copy link
Member

This simplifies xGFabric deplyment, and service deployment in general


addr = Url(as_string(self._sock.getsockopt(zmq.LAST_ENDPOINT)))
addr.host = get_hostip()
addr = zmq_bind(self._sock)
Copy link
Collaborator

Choose a reason for hiding this comment

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

this disregards provided url (proto, iface, and ports)

p.s., would be good to combine/merge misc.find_port with zmq.server.Server._iterate_ports and then extend zmq.utils.zmq_bind to handle provided url as it is done for Server

Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: check

@codecov
Copy link

codecov bot commented Apr 16, 2025

Codecov Report

❌ Patch coverage is 90.90909% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.12%. Comparing base (5c4cab3) to head (5b96709).

Files with missing lines Patch % Lines
src/radical/utils/zmq/server.py 87.50% 2 Missing ⚠️
src/radical/utils/zmq/utils.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #446      +/-   ##
==========================================
- Coverage   61.23%   61.12%   -0.11%     
==========================================
  Files          66       66              
  Lines        7359     7324      -35     
==========================================
- Hits         4506     4477      -29     
+ Misses       2853     2847       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

#
def find_port(port_min=10000, port_max=65535):
def find_port(port_min: int = None,
port_max: int = None) -> Union[int, None]:
Copy link
Member Author

Choose a reason for hiding this comment

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

Add iface?

@mtitov
Copy link
Collaborator

mtitov commented Oct 31, 2025

@andre-merzky there are couple comments here, if this PR is crucial/important do we want that comments to be addressed before merging?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants