Skip to content

Support OS-assigned ports for metadata listener - #1439

Merged
brminich merged 17 commits into
ai-dynamo:mainfrom
guy-ealey-morag:os-assigned-ports
May 13, 2026
Merged

brminich merged 17 commits into
ai-dynamo:mainfrom
guy-ealey-morag:os-assigned-ports

Conversation

@guy-ealey-morag

@guy-ealey-morag guy-ealey-morag commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

What?

Allow NIXL agents to bind their metadata listener to an OS-assigned port (marked with 0).
Update CI test scripts to use this mechanism instead of get_next_tcp_port(), and fetch the assigned port using a file that the selected port is written to.

Why?

CI tests occasionally fail with Address already in use due to a race condition with get_next_tcp_port(). OS-assigned ports eliminate the race entirely.

@github-actions

Copy link
Copy Markdown

👋 Hi guy-ealey-morag! Thank you for contributing to ai-dynamo/nixl.

Your PR reviewers will review your contribution then trigger the CI to test your changes.

🚀

@guy-ealey-morag

Copy link
Copy Markdown
Contributor Author

/build

ColinNV
ColinNV previously approved these changes Mar 30, 2026
Comment thread .gitlab/test_python.sh Outdated
Signed-off-by: Guy Ealey Morag <gealeymorag@nvidia.com>
@guy-ealey-morag

Copy link
Copy Markdown
Contributor Author

Refactored to read the os-assigned port through the logs instead of using an env var.
@brminich

Comment thread src/api/cpp/nixl_types.h Outdated
Comment thread src/utils/stream/metadata_stream.cpp Outdated
Signed-off-by: Guy Ealey Morag <gealeymorag@nvidia.com>
tomerg-nvidia
tomerg-nvidia previously approved these changes Apr 23, 2026
Signed-off-by: Guy Ealey Morag <gealeymorag@nvidia.com>
Comment thread src/utils/stream/metadata_stream.cpp
Comment thread .gitlab/test_cpp.sh

@Alexey-Rivkin Alexey-Rivkin left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pls bump CI_IMAGE_TAG, then re-run with a /build comment.

@guy-ealey-morag

Copy link
Copy Markdown
Contributor Author

I reverted the last change because it wasn't robust enough, I'll work on improvements for another PR.

@guy-ealey-morag

Copy link
Copy Markdown
Contributor Author

/build

@guy-ealey-morag

Copy link
Copy Markdown
Contributor Author

/build

@brminich

Copy link
Copy Markdown
Contributor

/build

This branch was previously deployed

1 inactive deployment
SWX_AWS — 523e6e95 Deployed May 13, 2026 by copy-pr-bot[bot] via Run AWS Tests #7169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants