Skip to content

build: require patched Tokio across the workspace - #1481

Merged
willkill07 merged 1 commit into
NVIDIA:mainfrom
willkill07:build/tokio-io-safety-advisory
Oct 23, 2026
Merged

willkill07 merged 1 commit into
NVIDIA:mainfrom
willkill07:build/tokio-io-safety-advisory

Conversation

@willkill07

@willkill07 willkill07 commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Overview

Resolve the cargo deny failure for RUSTSEC-2026-0386, which reports I/O unsoundness in Tokio's AsyncFd constructors. Require patched Tokio versions for downstream consumers as well as locked workspace builds.

  • I confirm this contribution is my own work, or I have the right to submit it under this project's license.
  • I searched existing issues and open pull requests, and this does not duplicate existing work.

Details

  • Define Tokio once in [workspace.dependencies] with a minimum version of 1.53.3. A 1.51.6 lower bound would still permit affected 1.52.x and early 1.53.x releases.
  • Inherit the workspace dependency in all crates, bindings, examples, test fixtures, and the transport benchmark while preserving each dependency's features and default-feature settings.
  • Update the lockfile to Tokio 1.53.3 and regenerate Rust attributions.

Validation:

  • NEMO_RELAY_LOG_STDERR_FORMAT=human just test-rust — 6,461 passed (one passed on retry), four skipped.
  • uv run pre-commit run — passed, including the benchmark clippy check, dependency audits, lockfile freshness, and generated Rust attributions.
  • cargo deny --locked --all-features check — passed with CI's cargo-deny 0.19.1.
  • Cargo metadata verifies all 20 Tokio dependency entries require ^1.53.3 and retain their prior feature settings.
  • Separate Python, Node.js, and Go suites were not run; no binding API or implementation changed.

The initial Rust run inherited NEMO_RELAY_LOG_STDERR_FORMAT=jsonl from the shell, causing a CLI assertion that expects human log output to fail. The final run explicitly selects the expected format.

Where should the reviewer start?

Start with [workspace.dependencies] in Cargo.toml, then crates/core/Cargo.toml for dependency inheritance and feature selection.

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

Summary by CodeRabbit

  • Chores
    • Updated Tokio to version 1.53.3 across the application and examples.
    • Standardized dependency versioning and configuration while retaining existing feature selections.
    • No end-user-facing features or behavior changes are included in this update.

@willkill07
willkill07 requested review from a team as code owners October 23, 2026 16:46
@github-actions github-actions Bot added size:S PR is small Maintenance CI or Build or general repository maintenance labels Oct 23, 2026
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 9d50b6a and 12093eb.

⛔ Files ignored due to path filters: 1
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing: 17
  • ATTRIBUTIONS-Rust.md
  • Cargo.toml
  • crates/adaptive/Cargo.toml
  • crates/cli/Cargo.toml
  • crates/core/Cargo.toml
  • crates/core/tests/fixtures/native_plugin/Cargo.toml
  • crates/core/tests/fixtures/worker_plugin/Cargo.toml
  • crates/ffi/Cargo.toml
  • crates/node/Cargo.toml
  • crates/pii-redaction/Cargo.toml
  • crates/plugin/Cargo.toml
  • crates/python/Cargo.toml
  • crates/worker/Cargo.toml
  • examples/language-binding-plugin/rust/Cargo.toml
  • examples/rust-grpc-worker-plugin/Cargo.toml
  • examples/rust-native-plugin/Cargo.toml
  • scripts/latency_benchmark/daemon_transport/Cargo.toml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 8 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout: 2
  • GitHub Check: Preview docs
  • GitHub Check: Changes / Detect
🧰 Additional context used
📚 Code guidelines: 4
RELEASING.md — auto-discovered
.agents/skills/update-project-version/SKILL.md — configured
.agents/skills/maintain-optimizer/SKILL.md — configured
.agents/skills/maintain-packaging/SKILL.md — configured
📓 Path-based instructions: 8
Review automation changes for reproducibility, pinned versions where appropriate, secret handling, and consistency with the documented validation matrix.

⚙️ CodeRabbit configuration file

Files:

  • scripts/latency_benchmark/daemon_transport/Cargo.toml
Tests should cover the behavior promised by the changed API surface, including error paths and cross-request isolation where relevant.

⚙️ CodeRabbit configuration file

Files:

  • crates/core/tests/fixtures/worker_plugin/Cargo.toml
  • crates/core/tests/fixtures/native_plugin/Cargo.toml
Treat binding changes as public API changes.

⚙️ CodeRabbit configuration file

Files:

  • crates/node/Cargo.toml
  • crates/ffi/Cargo.toml
  • crates/python/Cargo.toml
Applicability reference: AGENTS.md: # NeMo Relay Repository Guidance Keep release-process policy in maintainer sources such as `RELEASING.md` and Source excerpt: The root `Cargo.toml` `workspace.package.version` is the canonical release ver...

📄 CodeRabbit inference engine (RELEASING.md)

Files:

  • Cargo.toml
Source excerpt: `Cargo.toml` `[workspace.package].version` is the Rust source of truth.

📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)

Files:

  • Cargo.toml
Source excerpt: Python surfaces use PEP 440 translations where required; Cargo, npm, and plugin manifests use the repository SemVer form.

📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)

Files:

  • crates/core/tests/fixtures/worker_plugin/Cargo.toml
  • crates/cli/Cargo.toml
  • crates/pii-redaction/Cargo.toml
  • crates/node/Cargo.toml
  • crates/core/Cargo.toml
  • crates/plugin/Cargo.toml
  • examples/rust-grpc-worker-plugin/Cargo.toml
  • crates/worker/Cargo.toml
  • examples/rust-native-plugin/Cargo.toml
  • crates/ffi/Cargo.toml
  • crates/core/tests/fixtures/native_plugin/Cargo.toml
  • crates/adaptive/Cargo.toml
  • examples/language-binding-plugin/rust/Cargo.toml
  • crates/python/Cargo.toml
Source excerpt: `crates/adaptive`

📄 CodeRabbit inference engine (.agents/skills/maintain-optimizer/SKILL.md)

Files:

  • crates/adaptive/Cargo.toml
Source excerpt: Rust `Cargo.toml` package names and workspace metadata

📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Files:

  • crates/core/tests/fixtures/worker_plugin/Cargo.toml
  • crates/cli/Cargo.toml
  • Cargo.toml
  • crates/pii-redaction/Cargo.toml
  • crates/node/Cargo.toml
  • crates/core/Cargo.toml
  • scripts/latency_benchmark/daemon_transport/Cargo.toml
  • crates/plugin/Cargo.toml
  • examples/rust-grpc-worker-plugin/Cargo.toml
  • crates/worker/Cargo.toml
  • examples/rust-native-plugin/Cargo.toml
  • crates/ffi/Cargo.toml
  • crates/core/tests/fixtures/native_plugin/Cargo.toml
  • crates/adaptive/Cargo.toml
  • examples/language-binding-plugin/rust/Cargo.toml
  • crates/python/Cargo.toml
🔇 Additional comments: 17
Cargo.toml: 1

61-61: LGTM!

ATTRIBUTIONS-Rust.md: 1

51772-51772: LGTM!

crates/adaptive/Cargo.toml: 1

25-25: LGTM!

Also applies to: 40-40

crates/cli/Cargo.toml: 1

69-69: LGTM!

Also applies to: 95-95

crates/core/Cargo.toml: 1

71-71: LGTM!

Also applies to: 117-117

crates/core/tests/fixtures/native_plugin/Cargo.toml: 1

18-18: LGTM!

crates/core/tests/fixtures/worker_plugin/Cargo.toml: 1

18-18: LGTM!

crates/ffi/Cargo.toml: 1

31-31: LGTM!

crates/node/Cargo.toml: 1

34-34: LGTM!

crates/pii-redaction/Cargo.toml: 1

33-33: LGTM!

crates/plugin/Cargo.toml: 1

20-20: LGTM!

crates/python/Cargo.toml: 1

33-33: LGTM!

crates/worker/Cargo.toml: 1

24-24: LGTM!

examples/language-binding-plugin/rust/Cargo.toml: 1

16-16: LGTM!

examples/rust-grpc-worker-plugin/Cargo.toml: 1

17-17: LGTM!

Also applies to: 24-24

examples/rust-native-plugin/Cargo.toml: 1

21-21: LGTM!

Also applies to: 28-28

scripts/latency_benchmark/daemon_transport/Cargo.toml: 1

30-30: LGTM!

Walkthrough

The workspace now declares Tokio 1.53.3 with default features disabled. Rust package manifests use the workspace dependency and retain their existing feature lists.

Changes

Tokio dependency update

Layer / File(s) Summary
Workspace version declaration
Cargo.toml, ATTRIBUTIONS-Rust.md
The workspace specifies Tokio 1.53.3 with default features disabled. The Tokio attribution entry also changes to version 1.53.3.
Package dependency updates
crates/*/Cargo.toml, crates/core/tests/fixtures/*/Cargo.toml, examples/rust-grpc-worker-plugin/Cargo.toml, examples/rust-native-plugin/Cargo.toml, examples/language-binding-plugin/rust/Cargo.toml, scripts/latency_benchmark/daemon_transport/Cargo.toml
Package manifests use the workspace Tokio dependency. Existing feature lists remain unchanged. Several manifests explicitly set whether default features are enabled.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 12093

The patched Tokio version is consistently applied across the workspace without an identified merge-blocking issue.

Pre-merge checks: Passed 5
Check name Status Explanation
Description check Passed The description includes all required sections, confirms contribution and duplication checks, explains the Tokio dependency changes, identifies reviewer entry points, and documents validation results.
Title check Passed The title follows Conventional Commits format with the allowed lowercase type build, uses an imperative summary, is 49 characters long, and has no trailing period.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (17 skipped: 17 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@willkill07 willkill07 self-assigned this Oct 23, 2026
@willkill07 willkill07 added this to the 0.11 milestone Oct 23, 2026
@github-actions

Copy link
Copy Markdown

License Diff

Compared against origin/main.

Lockfile license changes

Lockfile License Changes

Rust

Added

  • None

Removed

  • None

Updated/Changed

tokio

Before:

  • tokio 1.51.1 (MIT)

After:

  • tokio 1.53.3 (MIT)

Node

Added

  • None

Removed

  • None

Updated/Changed

  • None

Python

Added

  • None

Removed

  • None

Updated/Changed

  • None
Status output
[license-diff] selected languages: rust, node, python
[license-diff] generating current inventory
[license-diff] current: generating Rust inventory
[license-diff] current: Rust inventory complete (487 packages)
[license-diff] current: generating Node inventory
[license-diff] current: Node inventory complete (424 packages)
[license-diff] current: generating Python inventory
[license-diff] current: Python inventory complete (158 packages)
[license-diff] current inventory complete
[license-diff] checking out base ref origin/main into a temporary worktree
[license-diff] base: generating Rust inventory
[license-diff] base: Rust inventory complete (487 packages)
[license-diff] base: generating Node inventory
[license-diff] base: Node inventory complete (424 packages)
[license-diff] base: generating Python inventory
[license-diff] base: Python inventory complete (158 packages)
[license-diff] base inventory complete
[license-diff] removing temporary base worktree
[license-diff] comparing inventories
[license-diff] rendering Markdown output
[license-diff] done

@github-actions

Copy link
Copy Markdown

@willkill07
willkill07 merged commit 00d1ca5 into NVIDIA:main Oct 23, 2026
97 checks passed
willkill07 added a commit that referenced this pull request Oct 24, 2026
#### Overview

Resolve the Python, npm, and Rust dependency audit failures on
`release/0.10` using the same package versions as #1490 and the Tokio
fix already present in its base from #1481.

- [x] I confirm this contribution is my own work, or I have the right to
submit it under this project's license.
- [x] I searched existing issues and open pull requests, and this does
not duplicate existing work.

#### Details

- Update filelock to 4.2.4 and virtualenv to 21.14.13. This release
branch has no LiteLLM dependency, so the filelock override from #1490 is
unnecessary.
- Update body-parser to 2.4.0, fast-uri to 3.1.9, qs to 6.16.1, undici
to 8.12.2, and zod to 4.6.6; preserve the OpenClaw version with the same
overrides as #1490.
- Require Tokio 1.53.3 across all workspace consumers, preserving
existing features and default-feature settings, to resolve
RUSTSEC-2026-0386 for workspace builds and downstream consumers.
- Regenerate the Python, Node.js, and Rust attributions with the
repository workflows, using CI-pinned cargo-about 0.9.1 for Rust.

Validation:

- `uv audit --locked`, `npm audit --audit-level=low`, and `cargo deny
--locked --all-features check` passed.
- `NEMO_RELAY_LOG_STDERR_FORMAT=human just test-rust`: 5,942 passed, one
skipped.
- Repository pre-commit hooks passed, including targeted rechecks after
attribution generation. Checks covered lockfile freshness, FFI header
synchronization, benchmark fmt/clippy, license policy, documentation
links, and generated attributions.
- Verified the seven updated Python/npm package records match #1490
exactly, and all 20 Tokio dependency entries require `^1.53.3` with
unchanged feature settings.
- Separate Python, Node.js, and Go suites were not run; binding APIs and
implementations are unchanged.

#### Where should the reviewer start?

Start with `package.json` and the Python/npm lockfile changes for #1490
parity, then `Cargo.toml` and Tokio dependency inheritance for the #1481
backport.

#### Related Issues: (use one of the action keywords Closes / Fixes /
Resolves / Relates to)

- Relates to: none
- Backports dependency updates from #1490 and the Tokio security fix
from #1481 to `release/0.10`.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Chores**
* Updated third-party dependency versions, including Tokio and several
JavaScript and Python packages.
* Standardized Tokio version management across the project while
preserving existing feature selections.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Will Killian <[email protected]>
@willkill07
willkill07 deleted the build/tokio-io-safety-advisory branch October 30, 2026 14:46

This branch was previously deployed

1 inactive deployment
fern — 12093ebb Deployed Oct 23, 2026 by willkill07 via Clean up docs preview #6450
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance CI or Build or general repository maintenance size:S PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants