Repository navigation
Wait for late peers, read topology files strictly, and harden fabric-tool - #4
Merged
Merged
Conversation
…-tool Plugin - Wait for a late peer as NCCL does: NET_SIRCL_REQUEST_TIMEOUT_MS now bounds only this host's transport progress; NET_SIRCL_PEER_WAIT_TIMEOUT_MS adds an optional bound on the peer application. A failed comm shuts its socket down so the peer fails promptly. - Bind the listener to the advertised address and drop connections that never send valid metadata instead of failing the accept. - Validate every numeric setting and NET_SIRCL_OOB_ADDR; warn when falling back to loopback; log a connect toward a position without a route. - Release the one-plugin-per-host claim in forked children; keep payload writes of an explicit direct window below the send queue depth. Topology - Make the C parser strict (required cabling, exact word counts, name and host limits, every host cabled, one connected fabric) and share the grammar with fabric-tool; a two-host ring is one cable in both. - Follow the cables for equally short lanes at the higher position, so both ends of a lane stay on one path under explicit cabling. - Add a conformance corpus both parsers must read alike. fabric-tool - Count only root's processes as markers; treat a failed read or missing tool as a blocking problem; derive the record's layout name from content. - Plan explicit cabling by tracing the real cables; keep unplanned markers in boot mode; start the reconcile timer after a failed install-boot apply; make remove-boot idempotent; keep qdisc ownership across a failed apply. Build and release - Prefer the bundled transport-core; fail the release scanner on an empty tree and scan files containing NUL bytes; regenerate SOURCE.json. - Document the changes in docs/configuration.md, docs/testing.md and RELEASE_NOTES-unreleased.md. CPU-tested only (transport-core, plugin, root and fabric-tool suites pass under Linux); not run on DGX Sparks, so the 0.1.2 hardware qualification does not cover this tree. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Every plugin setting now goes through env_range, so the production build no longer calls env_long and -Werror=unused-function rejected it. Only NET_SIRCL_STANDIN_DEVICES, a test knob of the stand-in build, still uses the lenient parser. Regenerate SOURCE.json for the changed header. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
FujitsuPolycom
added a commit
that referenced
this pull request
Nov 21, 2026
Versions - Plugin and fabric-tool 0.1.3; transport-core 0.1.2 (its topology parser changed; ABI stays 1). Wire version stays 6. - Rename the unreleased notes to RELEASE_NOTES-0.1.3.md and cover all three steps merged since v0.1.2: resource ownership (#3), review fixes (#4), and single-function-per-port topologies (#6). - Read the core version in check_e2e.py from its VERSION file, and add a test that ties every stated version to the VERSION files. Hardware claims - State that 0.1.3 is CPU-tested only and that no qualification row covers it. - Record the tags that keep the revisions cited by the validation records reachable (validation/2026-10-23-*). - README: boot restoration was checked once on hardware with an earlier fabric-tool revision; point to that record instead of "not yet qualified". - Ring of four: it ran nccl-tests with the 0.1.0 transport (confirmed by the owner); correct the README, the 0.1.0 measurements and the example. - Relaxed ordering disabled and the installer behind the 0.1.0 path result are recorded inconsistently and no retained record settles them; both documents now say so instead of contradicting each other. Documentation and version files only, plus release tests and one script line. No tag is created for 0.1.3 until hardware qualification is recorded.
FujitsuPolycom
added a commit
that referenced
this pull request
Nov 21, 2026
…#5) Versions - Plugin and fabric-tool 0.1.3; transport-core 0.1.2 (its topology parser changed; ABI stays 1). Wire version stays 6. - Rename the unreleased notes to RELEASE_NOTES-0.1.3.md and cover all three steps merged since v0.1.2: resource ownership (#3), review fixes (#4), and single-function-per-port topologies (#6). - Read the core version in check_e2e.py from its VERSION file, and add a test that ties every stated version to the VERSION files. Hardware claims - State that 0.1.3 is CPU-tested only and that no qualification row covers it. - Record the tags that keep the revisions cited by the validation records reachable (validation/2026-10-23-*). - README: boot restoration was checked once on hardware with an earlier fabric-tool revision; point to that record instead of "not yet qualified". - Ring of four: it ran nccl-tests with the 0.1.0 transport (confirmed by the owner); correct the README, the 0.1.0 measurements and the example. - Relaxed ordering disabled and the installer behind the 0.1.0 path result are recorded inconsistently and no retained record settles them; both documents now say so instead of contradicting each other. Documentation and version files only, plus release tests and one script line. No tag is created for 0.1.3 until hardware qualification is recorded.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the findings of a full-repository review that can be fixed and tested without hardware. CPU-tested only: nothing here has run on DGX Sparks, so the 0.1.2 hardware qualification does not cover this tree. Wire version stays 6 and the wire structures are unchanged.
RELEASE_NOTES-unreleased.mdlists every behaviour change;docs/configuration.mdis the updated reference.Why
NET_SIRCL_REQUEST_TIMEOUT_MScovered waits for the peer application. NCCL posts receives from local state and retriesisendwith no timeout, so a rank that was checkpointing or compiling while the others entered the next all-reduce producedncclRemoteError.ringwas one cable to the plugin and two to fabric-tool, a file withoutcablingwas accepted by the plugin with no routes, andcabling explicitin a non-canonical order could be routed by the plugin but not planned by fabric-tool.tc/ipas "nothing installed", and wrote an ownership record that depended on the topology file's name.What changed
Plugin (
net-sircl/)NET_SIRCL_REQUEST_TIMEOUT_MSnow bounds only this host's transport progress (a send from its clear-to-send to completion, a receive's clear-to-send post). Waiting for the peer application has no deadline by default;NET_SIRCL_PEER_WAIT_TIMEOUT_MSadds an optional one. A failed comm shuts its connection socket down so the peer fails at its next check.NET_SIRCL_CHUNK,_SPEED_MBPS,_TC,_RELAXED_ORDERING,_ROUTE_CHECK,_GID_INDEXand_OOB_ADDRare validated; a loopback fallback warns; a connect with no route logs why.Topology (
transport-core/src/topology.c)cabling, exact word counts, name and host limits, every host cabled, one connected fabric. The struct bytes for files valid before and after are unchanged, so the policy hash is too.fabric-tool
trace()follows the real cables, so explicit cabling can be planned.--bootkeeps unplanned markers;install-bootstarts the timer after a failed apply;remove-bootis idempotent; qdisc ownership survives a failed apply (write-ahead record).Build and release
transport-core.check_release_safety.pyfails on an empty tree and scans files containing NUL bytes.SOURCE.jsonregenerated.Behaviour changes a user can hit
cabling ringas one cable, as the plugin does; a double-cabled pair needscabling explicit.verify --adoptis rejected.removerefuses a host whose interface names differ unless--factsis given, and one whose record names another marker unless--markernames it.Testing
Run under Linux (Ubuntu 24.04, GCC 13.3) on this branch:
tests/test_net_sircl.py)tests/)check_release_safety.py .New tests cover: peers that are late rather than lost, stray connections, a window deeper than the send queue, strict settings, fork handling, what the parser refuses and accepts, lane reciprocity on turned-around rings, and 57 fabric-tool cases.
For the reviewer
libnccl-net-sircl.sobuild (no rdma-core headers on the development machine) — CI builds it. A syntax check of the production code path showed only the expected missing-header symbols.VERSIONstill reads 0.1.2 / 0.1.1 although the tree differs fromv0.1.2), the hardware-claim wording that disagrees between README,docs/release-0.1.0.md,docs/measurements.mdanddocs/qualification.md, and the unusedtransport-core/src/fabric.cwith its undefinedsircl_protocol_*declarations.origin/fix/resource-ownership-and-planning; tag them before deleting that branch.🤖 Generated with Claude Code