Skip to content

Wait for late peers, read topology files strictly, and harden fabric-tool - #4

Merged
FujitsuPolycom merged 2 commits into
mainfrom
fix/review-findings
Nov 10, 2026
Merged

FujitsuPolycom merged 2 commits into
mainfrom
fix/review-findings

Conversation

@FujitsuPolycom

Copy link
Copy Markdown
Owner

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.md lists every behaviour change; docs/configuration.md is the updated reference.

Why

  • A rank more than 60 s late to a collective failed the job. NET_SIRCL_REQUEST_TIMEOUT_MS covered waits for the peer application. NCCL posts receives from local state and retries isend with no timeout, so a rank that was checkpointing or compiling while the others entered the next all-reduce produced ncclRemoteError.
  • The plugin and fabric-tool parsed the same topology file differently, with no shared test: a two-host ring was one cable to the plugin and two to fabric-tool, a file without cabling was accepted by the plugin with no routes, and cabling explicit in a non-canonical order could be routed by the plugin but not planned by fabric-tool.
  • fabric-tool trusted a process name for marker liveness, read a failed tc/ip as "nothing installed", and wrote an ownership record that depended on the topology file's name.

What changed

Plugin (net-sircl/)

  • NET_SIRCL_REQUEST_TIMEOUT_MS now 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_MS adds an optional one. A failed comm shuts its connection socket down so the peer fails at its next check.
  • The listener binds the advertised address and drops connections that never send valid metadata instead of failing the accept.
  • NET_SIRCL_CHUNK, _SPEED_MBPS, _TC, _RELAXED_ORDERING, _ROUTE_CHECK, _GID_INDEX and _OOB_ADDR are validated; a loopback fallback warns; a connect with no route logs why.
  • A forked child releases the one-plugin-per-host claim. Payload writes of an explicit direct window stay below the send queue depth.

Topology (transport-core/src/topology.c)

  • Strict parsing: required 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.
  • For equally short directions, the higher position follows the cables instead of assuming ring port pairing. Ring and path cabling are unaffected.

fabric-tool

  • Only processes with real and effective uid 0 count as markers.
  • Missing tools and failed reads are blocking problems.
  • The record's layout name is a digest of hosts, cables and functions.
  • trace() follows the real cables, so explicit cabling can be planned.
  • --boot keeps unplanned markers; install-boot starts the timer after a failed apply; remove-boot is idempotent; qdisc ownership survives a failed apply (write-ahead record).

Build and release

  • The plugin build prefers the bundled transport-core.
  • check_release_safety.py fails on an empty tree and scans files containing NUL bytes.
  • SOURCE.json regenerated.

Behaviour changes a user can hit

  • Topology files and settings that were silently tolerated are now refused with a message.
  • fabric-tool reads a two-host cabling ring as one cable, as the plugin does; a double-cabled pair needs cabling explicit.
  • Each host shows one pending fabric-tool record write the first time (the layout name changed form).
  • verify --adopt is rejected. remove refuses a host whose interface names differ unless --facts is given, and one whose record names another marker unless --marker names it.

Testing

Run under Linux (Ubuntu 24.04, GCC 13.3) on this branch:

Suite Result
transport-core 3 C tests and 7 Python tests pass
plugin (tests/test_net_sircl.py) 29 run, 28 pass, 1 skipped (needs rdma-core headers)
root (tests/) 19 pass, including the new parser conformance corpus
fabric-tool (pytest) 203 pass
check_release_safety.py . 0 findings

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

  • Not verified locally: the real-NIC libnccl-net-sircl.so build (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.
  • Not changed, needs an owner decision: version numbers and tags (VERSION still reads 0.1.2 / 0.1.1 although the tree differs from v0.1.2), the hardware-claim wording that disagrees between README, docs/release-0.1.0.md, docs/measurements.md and docs/qualification.md, and the unused transport-core/src/fabric.c with its undefined sircl_protocol_* declarations.
  • The qualification docs cite commits reachable only from origin/fix/resource-ownership-and-planning; tag them before deleting that branch.

🤖 Generated with Claude Code

FujitsuPolycom and others added 2 commits November 9, 2026 18:45
…-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
FujitsuPolycom merged commit 6efae5b into main Nov 10, 2026
4 checks passed
@FujitsuPolycom
FujitsuPolycom deleted the fix/review-findings branch November 10, 2026 03:27
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant