Skip to content

feat: package CLI for PyPI and npm - #569

Merged
rapids-bot[bot] merged 6 commits into
NVIDIA:mainfrom
willkill07:feat/relay-532-cli-packages
Jul 29, 2026
Merged

feat: package CLI for PyPI and npm#569
rapids-bot[bot] merged 6 commits into
NVIDIA:mainfrom
willkill07:feat/relay-532-cli-packages

Conversation

@willkill07

@willkill07 willkill07 commented Jul 28, 2026

Copy link
Copy Markdown
Member

Overview

Publish the NeMo Relay CLI as nemo-relay-cli-bin on PyPI and npm, add the exact-version nemo-relay[cli] extra, and split nemo-relay-node into a portable metapackage plus platform-specific native npm packages. Keep Cargo installation and direct GitHub Release binaries supported while attaching the main Python API wheels and clearly named package-manager artifacts to each GitHub Release.

  • 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

  • Package every supported CLI binary as a platform-tagged, Python-ABI-independent wheel and an OS/CPU-specific npm package.
  • Install the wheel CLI as a regular executable file and smoke-test nemo-relay --version on every supported packaging runner.
  • Add an npm CLI launcher that selects its exact-version native package and reports unsupported or missing platforms clearly.
  • Add nemo-relay[cli] with an exact dependency on the matching nemo-relay-cli-bin release.

Additional Publishing Changes

  • Keep nemo-relay-node as the JavaScript/TypeScript metapackage and publish five exact-version native packages for Linux x64/ARM64 GNU, macOS ARM64, and Windows x64/ARM64.
  • Publish Node and CLI native npm packages before their metapackages while preserving the existing npm latest and next dist-tag policy.
  • Attach five main nemo-relay API wheels alongside the raw CLI binaries, five nemo-relay-cli-bin wheels, six CLI npm tarballs, and six split Node npm tarballs on GitHub Releases. Include every attached distribution in SHA256SUMS, while retaining individual checksums for raw CLI binaries used by installers.
  • Name GitHub-facing npm artifacts nemo-relay-bin-npm[-<os>-<cpu>]-<version>.tgz and nemo-relay-node-npm[-<os>-<cpu>]-<version>.tgz without changing their registry package names.
  • Extend GitHub and GitLab packaging, collection, publication, versioning, tests, installation docs, and trusted-publisher guidance for the new distributions.

Validation:

  • just test-python — 562 passed
  • just test-node — 293 passed
  • uv run --no-project python -m unittest -v scripts.tests.test_package_cli_bin scripts.tests.test_package_node_bin — 4 passed
  • Installed a generated macOS CLI wheel and verified nemo-relay --version
  • Installed stable and development-version split Node tarballs and loaded the main package and every exported subpath
  • just --set output_dir <temp> --set node_platform macos-arm64 --set ref_name 0.7.0 package-node
  • bash scripts/test-install-mocks.sh — 8 scenarios passed
  • Targeted pre-commit checks passed, including actionlint, Ruff, formatting, type checking, and documentation link checks
  • The repository-wide pre-commit pass completed all checks; the Rust attribution hook rewrote unchanged lockfile-derived content, and that unrelated generated diff was restored

Where should the reviewer start?

Start with scripts/package-cli-bin.py for the wheel permission fix and CLI release filenames, then scripts/package-node-bin.py for the Node metapackage/native split. Review .github/workflows/ci_node.yml and .github/workflows/ci.yaml for per-platform smoke tests, publication order, release attachment naming, and checksums.

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

Closes RELAY-532

Summary by CodeRabbit

  • New Features
    • Added prebuilt nemo-relay-cli-bin distribution packages for PyPI and npm, including platform variants and npm launcher support.
    • Expanded release artifact collection/publishing to include CLI wheels and CLI/Node npm tarballs with verification.
    • Updated release packaging to produce split Node/CLI tarballs and publish them per platform.
  • Documentation
    • Updated CLI install docs and getting-started instructions to lead with PyPI/npm/extra install commands.
    • Expanded release contract and published-surface guidance to include nemo-relay-cli-bin.
  • Tests
    • Added automated packaging tests and CI smoke checks that install/validate produced CLI and Node artifacts.

Signed-off-by: Will Killian <wkillian@nvidia.com>
@willkill07
willkill07 requested review from a team as code owners July 28, 2026 17:15
@github-actions github-actions Bot added size:L PR is large Feature a new feature lang:python PR changes/introduces Python code labels Jul 28, 2026
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: def7fcb9-62d4-4ba6-a6ca-002bfe7d2488

📥 Commits

Reviewing files that changed from the base of the PR and between c57d129 and c63d5b3.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (6)
  • .github/workflows/ci.yaml
  • .github/workflows/ci_node.yml
  • .github/workflows/ci_rust.yml
  • .gitlab-ci.yml
  • RELEASING.md
  • crates/cli/README.md
📜 Recent review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: Check / Run
  • GitHub Check: Preview docs
🧰 Additional context used
📓 Path-based instructions (14)
**/*.{md,rst,html,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

**/*.{md,rst,html,txt}: Always spell NVIDIA in all caps. Do not use Nvidia, nvidia, nVidia, nVIDIA, or NV.
Use an NVIDIA before a noun because the name starts with an 'en' sound.
Do not add a registered trademark symbol after NVIDIA when referring to the company.
Use trademark symbols with product names only when the document type or legal guidance requires them.
Verify official capitalization, spacing, and hyphenation for product names.
Precede NVIDIA product names with NVIDIA on first mention when it is natural and accurate.
Do not rewrite product names for grammar or title-case rules.
Preserve third-party product names according to the owner's spelling.
Include the company name and full model qualifier on first use when it helps identify the model.
Preserve the official capitalization and punctuation of model names.
Use shorter family names only after the full name is established.
Spell out a term on first use and put the acronym in parentheses unless the acronym is widely understood by the intended audience.
Use the acronym on later mentions after it has been defined.
For long documents, reintroduce the full term if readers might lose context.
Form plurals of acronyms with s, not an apostrophe, such as GPUs.
In headings, common acronyms can remain abbreviated. Spell out the term in the first or second sentence of the body.
Common terms such as CPU, GPU, PC, API, and UI usually do not need to be spelled out for developer audiences.

Files:

  • crates/cli/README.md
  • RELEASING.md
**/*.{md,rst,html}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

Link the first mention of a product name when the destination helps the reader.

Files:

  • crates/cli/README.md
  • RELEASING.md
**/*.{md,rst,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

Spell NVIDIA in all caps. Do not use Nvidia, nvidia, or NV.

Files:

  • crates/cli/README.md
  • RELEASING.md
**/*.{md,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

**/*.{md,rst}: Format commands, code elements, expressions, package names, file names, and paths as inline code.
Use descriptive link text. Avoid raw URLs and weak anchors such as "here" or "read more."
Use title case consistently for technical documentation headings.
Introduce code blocks, lists, tables, and images with complete sentences.
Write procedures as imperative steps. Keep steps parallel and split long procedures into smaller tasks.
Prefer active voice, present tense, short sentences, contractions, and plain English.
Use can for possibility and reserve may for permission.
Use after for temporal relationships instead of once.
Prefer refer to over see when the wording points readers to another resource.
Avoid culture-specific idioms, unnecessary Latinisms, jokes, and marketing exaggeration in technical docs.
Spell out months in body text, avoid ordinal dates, and use clear time zones.
Spell out whole numbers from zero through nine unless they are technical values, parameters, versions, or UI values.
Use numerals for 10 or greater and include commas in thousands.
Do not add trademark symbols to learning-oriented docs unless the source, platform, or legal guidance explicitly requires them.

Files:

  • crates/cli/README.md
  • RELEASING.md
**/*.md

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-technical-docs.md)

**/*.md: Use title case consistently in technical documentation headings
Avoid quotation marks, ampersands, and exclamation marks in headings
Keep product, event, research, and whitepaper names in their official title case
Use title case for table headers
Do not force social-media sentence case into technical docs
Format code elements, commands, parameters, package names, and expressions in monospace
Format directories, file names, and paths in monospace using backticks
Use angle brackets inside monospace for variables inside paths, such as /home/<username>/.login
Format error messages and strings in quotation marks, keeping literal code strings in code formatting when clearer
Format UI buttons, menus, fields, and labels in bold
Use angle brackets between UI labels for menu paths, such as File > Save As
Use italics for new terms on first use, sparingly and only when introducing the term
Use italics for publication titles
Format keyboard shortcuts in plain text, such as Press Ctrl+Alt+Delete
Use owner/repo link text for GitHub repositories, preferring [NVIDIA/NeMo](link) over prose references like 'the GitHub repo'
Introduce every code block with a complete sentence
Do not make a code block complete the grammar of the previous sentence
Do not continue a sentence after a code block
Use syntax highlighting when the format supports it for code blocks
Avoid the word 'snippet' unless the surrounding docs already use it as a term of art
Keep inline method, function, and class references consistent with nearby docs, omitting empty parentheses for prose readability when no call is shown
Use descriptive anchor text that matches the destination title when possible for links
Avoid raw URLs in running text
Avoid generic anchor text such as 'here,' 'this page,' and 'read more'
Include acronyms in link text when a linked term includes an acronym
Do not link long sentences or multiple sentences
Avoid links that pull readers away from a procedure unless the link is a p...

Files:

  • crates/cli/README.md
  • RELEASING.md
**/*.{md,mdx}

📄 CodeRabbit inference engine (AGENTS.md)

Update README.md, fern/, package READMEs, and binding-support notes when public behavior, package names, examples, or supported bindings change.

**/*.{md,mdx}: Prefer the documented public API, not internal shortcuts
Keep package names, repo references, and build commands current
Keep release-process and release-notes guidance in repo-maintainer docs such as RELEASING.md, not as user-facing docs pages or CHANGELOG.md
Keep stable user-facing wrappers at scripts/ root in docs and examples; only point at namespaced helper paths when documenting internal maintenance work
When detailed dynamic plugin guides exist, keep Rust native plugin examples, Python worker plugin examples, and grpc-v1 protocol details on separate pages

If links in documentation change, run just docs-linkcheck.

Files:

  • crates/cli/README.md
  • RELEASING.md
**/*.{md,markdown,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Add the SPDX license header to all Markdown/MDX documentation files using the HTML comment block form.

Files:

  • crates/cli/README.md
  • RELEASING.md
**/*

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

**/*: Format changed files with the language-native formatter before the final lint/test pass.
If dynamic plugin behavior changed, use maintain-dynamic-plugins and include the native SDK, worker protocol, Python SDK, docs, packaging, and Codecov surfaces in the validation plan.
If code changes alter APIs, bindings, commands, paths, packaging behavior, observability/adaptive semantics, or documented best practices, update any dependent maintainer or consumer skills in the same branch.
During iteration, prefer uv run pre-commit run --files <changed files...>.
Before review or handoff, run uv run pre-commit run --all-files.

Files:

  • crates/cli/README.md
  • RELEASING.md
.github/workflows/*.{yml,yaml}

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

.github/workflows/*.{yml,yaml}: Put permissions: on each job that needs token access.
Avoid workflow-level permissions: unless the repository intentionally centralizes them and the inheritance tradeoff is documented.
Keep third-party actions pinned to full commit SHAs and preserve the readable version comment after the SHA.
Prefer action-native or ecosystem-native caching over generic actions/cache.
Use lockfiles or dependency manifests to drive cache invalidation.
Keep deploy and publish permissions isolated to the jobs that need them.
Read both caller and callee when a workflow uses workflow_call.
Put release-tag validation in the earliest practical caller job when the pipeline has tag-based publish behavior.
Keep pure-Python plugin SDK packaging as a single wheel artifact instead of duplicating it across every platform matrix entry.
contents: read is the default minimum for checkout-based build, test, docs, and packaging jobs.
pull-requests: read is required for PR metadata lookup jobs.
pages: write and id-token: write should be limited to Pages deployment jobs and any caller that invokes them through a reusable workflow.
For reusable workflows, the caller must grant every permission the called jobs require; the callee cannot elevate beyond what the caller provides.
Prefer astral-sh/setup-uv cache support with cache-dependency-glob anchored to uv.lock.
Prefer Swatinem/rust-cache with explicit shared-key and workspaces instead of ad hoc target-directory caching.
Avoid caching generated outputs that can hide stale behavior unless the repo already relies on them deliberately.

Keep CI workflow commands and package references in GitHub Actions workflows aligned with the current install, build, and example commands.

Files:

  • .github/workflows/ci_rust.yml
  • .github/workflows/ci_node.yml
  • .github/workflows/ci.yaml
{justfile,codecov.yml,codecov.yaml,.github/workflows/**/*.yml,.github/workflows/**/*.yaml}

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

justfile, Codecov, and CI package/test workflows must include new plugin crates and packages.

Files:

  • .github/workflows/ci_rust.yml
  • .github/workflows/ci_node.yml
  • .github/workflows/ci.yaml
{.github/**,.gitlab-ci.yml,.pre-commit-config.yaml,justfile,scripts/**}

⚙️ CodeRabbit configuration file

{.github/**,.gitlab-ci.yml,.pre-commit-config.yaml,justfile,scripts/**}: Review automation changes for reproducibility, pinned versions where appropriate, secret handling, and consistency with the documented validation matrix.
Pay attention to commands that need generated native artifacts, FFI libraries, or platform-specific environment variables.

Files:

  • .github/workflows/ci_rust.yml
  • .github/workflows/ci_node.yml
  • .github/workflows/ci.yaml
  • .gitlab-ci.yml
.gitlab-ci.yml

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

Keep CI workflow commands and package references in .gitlab-ci.yml aligned with the current install, build, and example commands.

Files:

  • .gitlab-ci.yml
RELEASING.md

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

Keep release-tag policy aligned with RELEASING.md: raw SemVer tags only, no leading v.

Document release tags as raw SemVer without a leading v, and keep release history and release-note links pointing to GitHub Releases rather than CHANGELOG.md or docs pages.

Files:

  • RELEASING.md
{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}

⚙️ CodeRabbit configuration file

{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency across language bindings.
Flag stale examples, missing SPDX headers where required, and instructions that no longer match CI or pre-commit behavior.

Files:

  • RELEASING.md
🧠 Learnings (3)
📚 Learning: 2026-05-03T04:23:07.497Z
Learnt from: willkill07
Repo: NVIDIA/NeMo-Flow PR: 46
File: .github/workflows/ci_rust.yml:31-64
Timestamp: 2026-05-03T04:23:07.497Z
Learning: In GitHub Actions workflow YAML, it’s valid to conditionally disable a service container by setting the service container’s `image` to an empty string (`''`) via a matrix variable (e.g., `redis_service_image: ''`). This intentionally makes the runner skip service initialization for that matrix entry rather than failing the job. When reviewing workflows, don’t flag this as an error if the workflow uses an empty `image` to disable the service on specific matrix entries (e.g., OS-specific setups); verify the `image` is sourced from the matrix variable and that the service is only expected to be available when a non-empty image is provided.

Applied to files:

  • .github/workflows/ci_rust.yml
  • .github/workflows/ci_node.yml
📚 Learning: 2026-04-15T18:16:52.951Z
Learnt from: bbednarski9
Repo: NVIDIA/NeMo-Flow PR: 1
File: docs/atof-event-format.md:381-381
Timestamp: 2026-04-15T18:16:52.951Z
Learning: In docs/atof-event-format.md (and when reviewing references to this format across the NeMo-Flow repo), treat `AtifExporter.events_to_steps()` as the intended public/API method name. Do not flag it as inconsistent with internal Rust symbol names (e.g., `event_to_steps` in `crates/core/src/atif.rs`)—the documentation’s public-facing naming may differ intentionally from internal implementation details.

Applied to files:

  • .gitlab-ci.yml
📚 Learning: 2026-05-01T13:41:07.485Z
Learnt from: willkill07
Repo: NVIDIA/NeMo-Flow PR: 34
File: .gitlab-ci.yml:95-103
Timestamp: 2026-05-01T13:41:07.485Z
Learning: In NVIDIA/NeMo-Flow’s .gitlab-ci.yml, when listing GitHub Actions runs for a tag-triggered workflow, use `gh run list --branch "$tag"` to filter runs by the tag name. For annotated tag pushes in this repo, GitHub sets `headBranch` to the tag (e.g., `0.1.0-rc.5`), so `--branch "$tag"` returns only the tag-triggered run. Prefer this over `--commit <sha>`, which can be less precise because it may include both the tag run and a main-branch run that share the same commit SHA.

Applied to files:

  • .gitlab-ci.yml
🪛 zizmor (1.28.0)
.github/workflows/ci_rust.yml

[warning] 314-314: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)

🔇 Additional comments (8)
.github/workflows/ci_rust.yml (2)

324-330: LGTM!

Also applies to: 331-337, 338-343


281-307: 🩺 Stability & Availability

No change needed. These steps inherit defaults.run.shell: bash from the workflow, so the Windows legs already run under Bash.

			> Likely an incorrect or invalid review comment.
.github/workflows/ci_node.yml (1)

175-178: LGTM!

Also applies to: 211-219, 290-339

.github/workflows/ci.yaml (2)

260-261: LGTM!

Also applies to: 272-344, 346-349, 351-353, 452-458, 487-506, 520-552


350-350: 🎯 Functional Correctness

Align alpha prerelease handling with the release-job gate.

prepare sets publish_packages=false for -alpha.N tags, while this job requires needs.prepare.outputs.publish_packages == 'true'. Therefore the new -alpha. branch on Line 350 is never evaluated for alpha tags, and those tags cannot create the draft release assets this condition implies. Confirm the policy: either decouple release-asset creation from registry publishing or remove the unreachable alpha branch.

As per path instructions, workflow behavior must remain aligned with the documented release and validation matrix.

Source: Path instructions

.gitlab-ci.yml (1)

71-71: LGTM!

Also applies to: 135-154, 172-173, 309-309, 317-318, 328-337

crates/cli/README.md (1)

65-83: LGTM!

RELEASING.md (1)

64-66: LGTM!


Walkthrough

This change adds cross-platform CLI binary packaging for PyPI and npm, integrates split artifact creation and publishing into GitHub and GitLab CI, adds version synchronization and packaging tests, and updates installation and release documentation.

Changes

CLI Binary Distribution

Layer / File(s) Summary
Package formats and assembly
package.json, packages/cli-bin/*, python/cli-bin/*, scripts/package-*.py, scripts/tests/*
Defines CLI and Node package metadata, builds platform-specific wheels and npm tarballs, creates an optional npm launcher, and validates package contents.
Versioning and packaging workflow
justfile, .github/workflows/ci_rust.yml, .github/workflows/ci_node.yml, .github/ci-path-filters.yml
Synchronizes package versions, invokes CLI and split Node packaging, uploads generated artifacts, and expands CI path filters.
Artifact collection and publishing
.github/workflows/ci.yaml, .gitlab-ci.yml, .github/workflows/ci_check.yml
Collects split CLI and Node artifacts, generates checksums, publishes packages, and runs packaging and Node smoke tests.
Installation and release documentation
README.md, crates/cli/README.md, docs/getting-started/installation.mdx, RELEASING.md
Documents prebuilt installation options, package version alignment, trusted publishing, release automation, and post-release checks.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant RustPackageJob
  participant PackageCliBin
  participant ArtifactStore
  participant PublishJobs
  RustPackageJob->>PackageCliBin: package staged binary for target and version
  PackageCliBin->>ArtifactStore: upload wheel and npm tarball artifacts
  ArtifactStore->>PublishJobs: download split CLI and Node artifacts
  PublishJobs->>PublishJobs: generate checksums and publish packages
Loading

Possibly related PRs

  • NVIDIA/NeMo-Relay#356: Both changes update GitHub Actions Python wheel artifact collection in the publishing workflow.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the PR's main change and follows Conventional Commits with a valid lowercase type and concise summary.
Description check ✅ Passed The description includes the required overview, details, reviewer start point, issue reference, and checklist items.
Docstring Coverage ✅ Passed Docstring coverage is 80.00% which is sufficient. The required threshold is 80.00%.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@github-actions

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown

License Diff

Compared against origin/main.

Lockfile license changes

Lockfile License Changes

Rust

Added

  • openinference-semantic-conventions 0.1.1 (Apache-2.0)

Removed

  • aws-lc-rs 1.17.3 (ISC)
  • aws-lc-sys 0.43.0 (Apache-2.0 OR BSD-3-Clause OR ISC OR MIT)
  • cmake 0.1.58 (Apache-2.0)
  • crc-fast 1.10.0 (Apache-2.0)
  • dunce 1.0.5 (Apache-2.0)
  • fs_extra 1.3.0 (MIT)
  • jni 0.22.4 (Apache-2.0)
  • jni-macros 0.22.4 (Apache-2.0)
  • jni-sys 0.4.1 (Apache-2.0)
  • jni-sys-macros 0.4.1 (Apache-2.0)
  • opentelemetry-semantic-conventions 0.32.1 (Apache-2.0)
  • rustls-platform-verifier 0.7.0 (Apache-2.0)
  • rustls-platform-verifier-android 0.1.1 (Apache-2.0)
  • same-file 1.0.6 (MIT)
  • simd_cesu8 1.2.0 (Apache-2.0)
  • simdutf8 0.1.5 (Apache-2.0)
  • spin 0.10.1 (MIT)
  • tonic-types 0.14.5 (MIT)
  • walkdir 2.5.0 (MIT)
  • webpki-root-certs 1.0.9 (CDLA-Permissive-2.0)
  • winapi-util 0.1.11 (MIT)

Updated/Changed

itertools

Before:

  • itertools 0.14.0 (Apache-2.0)
  • itertools 0.15.0 (Apache-2.0)

After:

  • itertools 0.14.0 (Apache-2.0)

md-5

Before:

  • md-5 0.11.0 (MIT OR Apache-2.0)

After:

  • md-5 0.10.6 (MIT OR Apache-2.0)

object_store

Before:

  • object_store 0.14.1 (Apache-2.0)

After:

  • object_store 0.13.2 (Apache-2.0)

opentelemetry

Before:

  • opentelemetry 0.32.0 (Apache-2.0)

After:

  • opentelemetry 0.31.0 (Apache-2.0)

opentelemetry-http

Before:

  • opentelemetry-http 0.32.0 (Apache-2.0)

After:

  • opentelemetry-http 0.31.0 (Apache-2.0)

opentelemetry-otlp

Before:

  • opentelemetry-otlp 0.32.0 (Apache-2.0)

After:

  • opentelemetry-otlp 0.31.1 (Apache-2.0)

opentelemetry-proto

Before:

  • opentelemetry-proto 0.32.0 (Apache-2.0)

After:

  • opentelemetry-proto 0.31.0 (Apache-2.0)

opentelemetry_sdk

Before:

  • opentelemetry_sdk 0.32.1 (Apache-2.0)

After:

  • opentelemetry_sdk 0.31.0 (Apache-2.0)

quick-xml

Before:

  • quick-xml 0.41.0 (MIT)

After:

  • quick-xml 0.39.4 (MIT)

reqwest

Before:

  • reqwest 0.12.28 (Apache-2.0)
  • reqwest 0.13.4 (Apache-2.0)

After:

  • reqwest 0.12.28 (Apache-2.0)

wasm-streams

Before:

  • wasm-streams 0.4.2 (Apache-2.0)
  • wasm-streams 0.5.0 (Apache-2.0)

After:

  • wasm-streams 0.4.2 (Apache-2.0)

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 (426 packages)
[license-diff] current: generating Node inventory
[license-diff] current: Node inventory complete (367 packages)
[license-diff] current: generating Python inventory
[license-diff] current: Python inventory complete (105 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 (449 packages)
[license-diff] base: generating Node inventory
[license-diff] base: Node inventory complete (367 packages)
[license-diff] base: generating Python inventory
[license-diff] base: Python inventory complete (105 packages)
[license-diff] base inventory complete
[license-diff] removing temporary base worktree
[license-diff] comparing inventories
[license-diff] rendering Markdown output
[license-diff] done

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@crates/cli/README.md`:
- Around line 65-81: Update the installation section in the README so each code
block is introduced by a complete, descriptive sentence rather than the labels
“PyPI,” “npm,” and “Python API package extra.” Use wording that clearly
identifies the package source and, for the optional extra, explains that it
installs the Python API with the matching CLI.

In `@README.md`:
- Around line 55-63: Update the preceding quick-start prose in README.md to
reference nemo-relay-cli-bin, or use the generic name “NeMo Relay CLI,” so it
matches the Python and npm installation commands.

In `@scripts/package-cli-bin.py`:
- Line 145: Update the LICENSE reads in build_wheel, build_npm_platform, and
build_npm_launcher to resolve the file relative to scripts/package-cli-bin.py
(or the module’s established script-directory symbol), rather than the process
current working directory. Preserve the existing behavior while ensuring these
functions work when called directly from any directory.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 144540cc-df23-464d-b19e-1a2b31f2310e

📥 Commits

Reviewing files that changed from the base of the PR and between 0bce393 and 82b3ea3.

⛔ Files ignored due to path filters (2)
  • package-lock.json is excluded by !**/package-lock.json
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (17)
  • .github/ci-path-filters.yml
  • .github/workflows/ci.yaml
  • .github/workflows/ci_check.yml
  • .github/workflows/ci_rust.yml
  • .gitlab-ci.yml
  • README.md
  • RELEASING.md
  • crates/cli/README.md
  • docs/getting-started/installation.mdx
  • justfile
  • package.json
  • packages/cli-bin/package.json
  • pyproject.toml
  • python/cli-bin/pyproject.toml
  • python/cli-bin/src/nemo_relay_cli_bin/__init__.py
  • scripts/package-cli-bin.py
  • scripts/tests/test_package_cli_bin.py
📜 Review details
🧰 Additional context used
📓 Path-based instructions (33)
**/*.{rs,py}

📄 CodeRabbit inference engine (AGENTS.md)

Follow binding naming conventions in Rust and Python: use snake_case.

Files:

  • python/cli-bin/src/nemo_relay_cli_bin/__init__.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*.{rs,py,js,mjs,cjs,ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{rs,py,js,mjs,cjs,ts,tsx}: Use Json = serde_json::Value in Rust-facing runtime APIs where the existing code expects JSON payloads.
Use Result<T> with FlowError in core runtime paths, and keep errors explicit and binding-appropriate at the wrapper layer.
Keep async behavior on the existing tokio-based model; bindings should preserve callback and future lifetimes rather than blocking or hiding async work unexpectedly.

Files:

  • python/cli-bin/src/nemo_relay_cli_bin/__init__.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*.py

📄 CodeRabbit inference engine (CONTRIBUTING.md)

**/*.py: When changing the Python wrapper package, tests, or docs tooling, lint with Ruff (E, F, W, I), format with Ruff formatter (120-character lines, double quotes), and pass ty type checking.
Add the SPDX license header to all Python source files using the # comment form.

Files:

  • python/cli-bin/src/nemo_relay_cli_bin/__init__.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*.{rs,py,go,js,ts,c,h}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Use language-appropriate naming conventions: Rust snake_case, C FFI exports prefixed nemo_relay_, Go PascalCase, Node.js camelCase, and Python snake_case.

Files:

  • python/cli-bin/src/nemo_relay_cli_bin/__init__.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
{crates/**/src/**/*.rs,python/**/*.py}

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

Do not add tests under src; Rust tests belong in crate tests/ trees, and Python SDK tests belong under python/tests.

Files:

  • python/cli-bin/src/nemo_relay_cli_bin/__init__.py
**/*.{py,go,js,ts}

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

Keep Python, Go, and Node.js config objects and subscriber/exporter methods aligned so all bindings expose the same logical knobs and semantics.

Files:

  • python/cli-bin/src/nemo_relay_cli_bin/__init__.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

**/*: Format changed files with the language-native formatter before the final lint/test pass.
If dynamic plugin behavior changed, use maintain-dynamic-plugins and include the native SDK, worker protocol, Python SDK, docs, packaging, and Codecov surfaces in the validation plan.
If code changes alter APIs, bindings, commands, paths, packaging behavior, observability/adaptive semantics, or documented best practices, update any dependent maintainer or consumer skills in the same branch.
During iteration, prefer uv run pre-commit run --files <changed files...>.
Before review or handoff, run uv run pre-commit run --all-files.

Files:

  • python/cli-bin/src/nemo_relay_cli_bin/__init__.py
  • packages/cli-bin/package.json
  • python/cli-bin/pyproject.toml
  • scripts/tests/test_package_cli_bin.py
  • pyproject.toml
  • README.md
  • package.json
  • crates/cli/README.md
  • docs/getting-started/installation.mdx
  • RELEASING.md
  • justfile
  • scripts/package-cli-bin.py
**/*.{rs,py,go,js,ts}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If a language surface changed, always run that language's test target even when Rust core did not change.

Files:

  • python/cli-bin/src/nemo_relay_cli_bin/__init__.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*.{rs,py,js,ts,tsx,go,java,kt,swift}

📄 CodeRabbit inference engine (.agents/skills/add-middleware/SKILL.md)

Add tests covering registration and duplicate names, deregistration and missing names, priority ordering, callback failure policy, scope-local inheritance and cleanup, event payload semantics, immutable mark and scope fields, and parity across affected bindings.

Files:

  • python/cli-bin/src/nemo_relay_cli_bin/__init__.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*.toml

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Add the SPDX license header to all TOML files using the # comment form.

Files:

  • python/cli-bin/pyproject.toml
  • pyproject.toml
{.github/**,.gitlab-ci.yml,.pre-commit-config.yaml,justfile,scripts/**}

⚙️ CodeRabbit configuration file

{.github/**,.gitlab-ci.yml,.pre-commit-config.yaml,justfile,scripts/**}: Review automation changes for reproducibility, pinned versions where appropriate, secret handling, and consistency with the documented validation matrix.
Pay attention to commands that need generated native artifacts, FFI libraries, or platform-specific environment variables.

Files:

  • scripts/tests/test_package_cli_bin.py
  • .github/workflows/ci_check.yml
  • .github/workflows/ci.yaml
  • .github/workflows/ci_rust.yml
  • .gitlab-ci.yml
  • .github/ci-path-filters.yml
  • justfile
  • scripts/package-cli-bin.py
pyproject.toml

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

Keep Python packaging metadata in the root pyproject.toml consistent with the package’s published name, imports, and build behavior.

Files:

  • pyproject.toml
**/*.{md,rst,html,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

**/*.{md,rst,html,txt}: Always spell NVIDIA in all caps. Do not use Nvidia, nvidia, nVidia, nVIDIA, or NV.
Use an NVIDIA before a noun because the name starts with an 'en' sound.
Do not add a registered trademark symbol after NVIDIA when referring to the company.
Use trademark symbols with product names only when the document type or legal guidance requires them.
Verify official capitalization, spacing, and hyphenation for product names.
Precede NVIDIA product names with NVIDIA on first mention when it is natural and accurate.
Do not rewrite product names for grammar or title-case rules.
Preserve third-party product names according to the owner's spelling.
Include the company name and full model qualifier on first use when it helps identify the model.
Preserve the official capitalization and punctuation of model names.
Use shorter family names only after the full name is established.
Spell out a term on first use and put the acronym in parentheses unless the acronym is widely understood by the intended audience.
Use the acronym on later mentions after it has been defined.
For long documents, reintroduce the full term if readers might lose context.
Form plurals of acronyms with s, not an apostrophe, such as GPUs.
In headings, common acronyms can remain abbreviated. Spell out the term in the first or second sentence of the body.
Common terms such as CPU, GPU, PC, API, and UI usually do not need to be spelled out for developer audiences.

Files:

  • README.md
  • crates/cli/README.md
  • RELEASING.md
**/*.{md,rst,html}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

Link the first mention of a product name when the destination helps the reader.

Files:

  • README.md
  • crates/cli/README.md
  • RELEASING.md
**/*.{md,rst,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

Spell NVIDIA in all caps. Do not use Nvidia, nvidia, or NV.

Files:

  • README.md
  • crates/cli/README.md
  • RELEASING.md
**/*.{md,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

**/*.{md,rst}: Format commands, code elements, expressions, package names, file names, and paths as inline code.
Use descriptive link text. Avoid raw URLs and weak anchors such as "here" or "read more."
Use title case consistently for technical documentation headings.
Introduce code blocks, lists, tables, and images with complete sentences.
Write procedures as imperative steps. Keep steps parallel and split long procedures into smaller tasks.
Prefer active voice, present tense, short sentences, contractions, and plain English.
Use can for possibility and reserve may for permission.
Use after for temporal relationships instead of once.
Prefer refer to over see when the wording points readers to another resource.
Avoid culture-specific idioms, unnecessary Latinisms, jokes, and marketing exaggeration in technical docs.
Spell out months in body text, avoid ordinal dates, and use clear time zones.
Spell out whole numbers from zero through nine unless they are technical values, parameters, versions, or UI values.
Use numerals for 10 or greater and include commas in thousands.
Do not add trademark symbols to learning-oriented docs unless the source, platform, or legal guidance explicitly requires them.

Files:

  • README.md
  • crates/cli/README.md
  • RELEASING.md
**/*.md

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-technical-docs.md)

**/*.md: Use title case consistently in technical documentation headings
Avoid quotation marks, ampersands, and exclamation marks in headings
Keep product, event, research, and whitepaper names in their official title case
Use title case for table headers
Do not force social-media sentence case into technical docs
Format code elements, commands, parameters, package names, and expressions in monospace
Format directories, file names, and paths in monospace using backticks
Use angle brackets inside monospace for variables inside paths, such as /home/<username>/.login
Format error messages and strings in quotation marks, keeping literal code strings in code formatting when clearer
Format UI buttons, menus, fields, and labels in bold
Use angle brackets between UI labels for menu paths, such as File > Save As
Use italics for new terms on first use, sparingly and only when introducing the term
Use italics for publication titles
Format keyboard shortcuts in plain text, such as Press Ctrl+Alt+Delete
Use owner/repo link text for GitHub repositories, preferring [NVIDIA/NeMo](link) over prose references like 'the GitHub repo'
Introduce every code block with a complete sentence
Do not make a code block complete the grammar of the previous sentence
Do not continue a sentence after a code block
Use syntax highlighting when the format supports it for code blocks
Avoid the word 'snippet' unless the surrounding docs already use it as a term of art
Keep inline method, function, and class references consistent with nearby docs, omitting empty parentheses for prose readability when no call is shown
Use descriptive anchor text that matches the destination title when possible for links
Avoid raw URLs in running text
Avoid generic anchor text such as 'here,' 'this page,' and 'read more'
Include acronyms in link text when a linked term includes an acronym
Do not link long sentences or multiple sentences
Avoid links that pull readers away from a procedure unless the link is a p...

Files:

  • README.md
  • crates/cli/README.md
  • RELEASING.md
{README.md,docs/**/*.{md,rst,txt},fern/**/*}

📄 CodeRabbit inference engine (.agents/skills/prepare-code-freeze/SKILL.md)

Search and update documentation source for references to the old version in README.md, docs, and fern directories, updating current-version install commands, package examples, and configuration examples to <next-version>

Files:

  • README.md
**/*.{md,mdx}

📄 CodeRabbit inference engine (AGENTS.md)

Update README.md, fern/, package READMEs, and binding-support notes when public behavior, package names, examples, or supported bindings change.

**/*.{md,mdx}: Prefer the documented public API, not internal shortcuts
Keep package names, repo references, and build commands current
Keep release-process and release-notes guidance in repo-maintainer docs such as RELEASING.md, not as user-facing docs pages or CHANGELOG.md
Keep stable user-facing wrappers at scripts/ root in docs and examples; only point at namespaced helper paths when documenting internal maintenance work
When detailed dynamic plugin guides exist, keep Rust native plugin examples, Python worker plugin examples, and grpc-v1 protocol details on separate pages

If links in documentation change, run just docs-linkcheck.

Files:

  • README.md
  • crates/cli/README.md
  • docs/getting-started/installation.mdx
  • RELEASING.md
**/*.{md,markdown,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Add the SPDX license header to all Markdown/MDX documentation files using the HTML comment block form.

Files:

  • README.md
  • crates/cli/README.md
  • docs/getting-started/installation.mdx
  • RELEASING.md
{docs/**/*.md,README.md}

📄 CodeRabbit inference engine (.agents/skills/add-binding-feature/SKILL.md)

Update reference docs, language-binding docs, READMEs, and example documentation when the public surface or expected usage changes.

Files:

  • README.md
{README.md,docs/index.md}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Update entry-point docs when examples or reading paths change

Files:

  • README.md
README.md

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If documentation examples or commands in README.md change, run the targeted docs checks appropriate to the change.

Files:

  • README.md
{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}

⚙️ CodeRabbit configuration file

{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency across language bindings.
Flag stale examples, missing SPDX headers where required, and instructions that no longer match CI or pre-commit behavior.

Files:

  • README.md
  • docs/getting-started/installation.mdx
  • RELEASING.md
.github/workflows/*.{yml,yaml}

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

.github/workflows/*.{yml,yaml}: Put permissions: on each job that needs token access.
Avoid workflow-level permissions: unless the repository intentionally centralizes them and the inheritance tradeoff is documented.
Keep third-party actions pinned to full commit SHAs and preserve the readable version comment after the SHA.
Prefer action-native or ecosystem-native caching over generic actions/cache.
Use lockfiles or dependency manifests to drive cache invalidation.
Keep deploy and publish permissions isolated to the jobs that need them.
Read both caller and callee when a workflow uses workflow_call.
Put release-tag validation in the earliest practical caller job when the pipeline has tag-based publish behavior.
Keep pure-Python plugin SDK packaging as a single wheel artifact instead of duplicating it across every platform matrix entry.
contents: read is the default minimum for checkout-based build, test, docs, and packaging jobs.
pull-requests: read is required for PR metadata lookup jobs.
pages: write and id-token: write should be limited to Pages deployment jobs and any caller that invokes them through a reusable workflow.
For reusable workflows, the caller must grant every permission the called jobs require; the callee cannot elevate beyond what the caller provides.
Prefer astral-sh/setup-uv cache support with cache-dependency-glob anchored to uv.lock.
Prefer Swatinem/rust-cache with explicit shared-key and workspaces instead of ad hoc target-directory caching.
Avoid caching generated outputs that can hide stale behavior unless the repo already relies on them deliberately.

Keep CI workflow commands and package references in GitHub Actions workflows aligned with the current install, build, and example commands.

Files:

  • .github/workflows/ci_check.yml
  • .github/workflows/ci.yaml
  • .github/workflows/ci_rust.yml
{justfile,codecov.yml,codecov.yaml,.github/workflows/**/*.yml,.github/workflows/**/*.yaml}

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

justfile, Codecov, and CI package/test workflows must include new plugin crates and packages.

Files:

  • .github/workflows/ci_check.yml
  • .github/workflows/ci.yaml
  • .github/workflows/ci_rust.yml
  • justfile
{package.json,package-lock.json}

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

Keep the root Node workspace metadata in package.json and package-lock.json consistent with the published package and workspace layout.

Files:

  • package.json
.gitlab-ci.yml

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

Keep CI workflow commands and package references in .gitlab-ci.yml aligned with the current install, build, and example commands.

Files:

  • .gitlab-ci.yml
**/*.mdx

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)

MDX top-of-file SPDX comments must use {/* ... */} delimiters instead of HTML comment delimiters (Must-Fix)

In MDX files, top-of-file comments must use JSX comment delimiters ({/* to open and */} to close); do not use HTML comments for MDX SPDX headers

Files:

  • docs/getting-started/installation.mdx
{docs,examples}/**/*

📄 CodeRabbit inference engine (.agents/skills/rename-surfaces/SKILL.md)

Update docs and examples.

Files:

  • docs/getting-started/installation.mdx
docs/**/*

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If documentation examples or commands under docs/ change, run the targeted docs checks appropriate to the change.

Files:

  • docs/getting-started/installation.mdx
RELEASING.md

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

Keep release-tag policy aligned with RELEASING.md: raw SemVer tags only, no leading v.

Document release tags as raw SemVer without a leading v, and keep release history and release-note links pointing to GitHub Releases rather than CHANGELOG.md or docs pages.

Files:

  • RELEASING.md
justfile

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

Keep justfile build, test, clean, version, and package recipes for plugin crates and packages aligned with the current packaging layout.

Files:

  • justfile
🧠 Learnings (3)
📚 Learning: 2026-05-03T04:23:07.497Z
Learnt from: willkill07
Repo: NVIDIA/NeMo-Flow PR: 46
File: .github/workflows/ci_rust.yml:31-64
Timestamp: 2026-05-03T04:23:07.497Z
Learning: In GitHub Actions workflow YAML, it’s valid to conditionally disable a service container by setting the service container’s `image` to an empty string (`''`) via a matrix variable (e.g., `redis_service_image: ''`). This intentionally makes the runner skip service initialization for that matrix entry rather than failing the job. When reviewing workflows, don’t flag this as an error if the workflow uses an empty `image` to disable the service on specific matrix entries (e.g., OS-specific setups); verify the `image` is sourced from the matrix variable and that the service is only expected to be available when a non-empty image is provided.

Applied to files:

  • .github/workflows/ci_check.yml
  • .github/workflows/ci_rust.yml
📚 Learning: 2026-04-15T18:16:52.951Z
Learnt from: bbednarski9
Repo: NVIDIA/NeMo-Flow PR: 1
File: docs/atof-event-format.md:381-381
Timestamp: 2026-04-15T18:16:52.951Z
Learning: In docs/atof-event-format.md (and when reviewing references to this format across the NeMo-Flow repo), treat `AtifExporter.events_to_steps()` as the intended public/API method name. Do not flag it as inconsistent with internal Rust symbol names (e.g., `event_to_steps` in `crates/core/src/atif.rs`)—the documentation’s public-facing naming may differ intentionally from internal implementation details.

Applied to files:

  • .gitlab-ci.yml
📚 Learning: 2026-05-01T13:41:07.485Z
Learnt from: willkill07
Repo: NVIDIA/NeMo-Flow PR: 34
File: .gitlab-ci.yml:95-103
Timestamp: 2026-05-01T13:41:07.485Z
Learning: In NVIDIA/NeMo-Flow’s .gitlab-ci.yml, when listing GitHub Actions runs for a tag-triggered workflow, use `gh run list --branch "$tag"` to filter runs by the tag name. For annotated tag pushes in this repo, GitHub sets `headBranch` to the tag (e.g., `0.1.0-rc.5`), so `--branch "$tag"` returns only the tag-triggered run. Prefer this over `--commit <sha>`, which can be less precise because it may include both the tag run and a main-branch run that share the same commit SHA.

Applied to files:

  • .gitlab-ci.yml
🪛 ast-grep (0.44.1)
scripts/tests/test_package_cli_bin.py

[error] 70-75: Command coming from incoming request
Context: subprocess.run(
["node", output / "launcher/package/bin/nemo-relay.js", "--version"],
check=False,
capture_output=True,
text=True,
)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').

(subprocess-from-request)

scripts/package-cli-bin.py

[info] 183-183: use jsonify instead of json.dumps for JSON output
Context: json.dumps(manifest, indent=2)
Note: [CWE-116] Improper Encoding or Escaping of Output.

(use-jsonify)


[info] 208-208: use jsonify instead of json.dumps for JSON output
Context: json.dumps(mapping, indent=2)
Note: [CWE-116] Improper Encoding or Escaping of Output.

(use-jsonify)


[info] 249-249: use jsonify instead of json.dumps for JSON output
Context: json.dumps(manifest, indent=2)
Note: [CWE-116] Improper Encoding or Escaping of Output.

(use-jsonify)

🪛 Ruff (0.15.21)
scripts/tests/test_package_cli_bin.py

[warning] 19-19: Assertion should be broken down into multiple parts

Break down assertion into multiple parts

(PT018)


[warning] 28-28: Avoid specifying long messages outside the exception class

(TRY003)


[error] 71-71: subprocess call: check for execution of untrusted input

(S603)


[error] 72-72: Starting a process with a partial executable path

(S607)


[warning] 82-82: Use pytest.raises instead of unittest-style assertRaisesRegex

Replace assertRaisesRegex with pytest.raises

(PT027)

scripts/package-cli-bin.py

[warning] 98-98: Avoid specifying long messages outside the exception class

(TRY003)


[warning] 113-113: Boolean-typed positional argument in function definition

(FBT001)


[warning] 113-113: Boolean default positional argument in function definition

(FBT002)


[warning] 269-269: Avoid specifying long messages outside the exception class

(TRY003)

🪛 zizmor (1.26.1)
.github/workflows/ci.yaml

[error] 482-482: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)

.github/workflows/ci_rust.yml

[warning] 285-285: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)


[warning] 287-287: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)


[error] 291-291: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)


[error] 292-292: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)


[warning] 303-303: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)

🔇 Additional comments (28)
RELEASING.md (1)

34-35: LGTM!

Also applies to: 64-66, 147-152, 179-180, 257-259, 271-275, 308-310, 341-344

docs/getting-started/installation.mdx (1)

36-53: LGTM!

Also applies to: 68-71, 180-182

package.json (1)

10-11: LGTM!

packages/cli-bin/package.json (1)

1-7: LGTM!

pyproject.toml (1)

69-72: LGTM!

Also applies to: 113-113

python/cli-bin/pyproject.toml (1)

1-17: LGTM!

python/cli-bin/src/nemo_relay_cli_bin/__init__.py (1)

1-4: LGTM!

scripts/package-cli-bin.py (3)

1-111: LGTM!


120-144: LGTM!

Also applies to: 146-190, 192-251, 253-284


113-117: 🎯 Functional Correctness

No change needed here. ZipInfo.external_attr already preserves the 0o755 mode bits as written, so omitting stat.S_IFREG does not drop the CLI script’s executable bit. The extra mode assertion is not required for this path.

			> Likely an incorrect or invalid review comment.
scripts/tests/test_package_cli_bin.py (1)

1-32: LGTM!

Also applies to: 71-88

justfile (3)

565-565: LGTM!


693-721: LGTM!


1707-1722: LGTM!

.github/workflows/ci_rust.yml (2)

308-327: LGTM!


306-306: 🩺 Stability & Availability

No change needed for python here this job already runs actions/setup-python with the configured default version before python scripts/package-cli-bin.py, so the package step uses the selected interpreter.

			> Likely an incorrect or invalid review comment.
.github/ci-path-filters.yml (4)

62-65: LGTM!


85-88: LGTM!


104-107: LGTM!


134-136: LGTM!

.github/workflows/ci.yaml (3)

403-409: LGTM!


450-456: LGTM!


479-497: LGTM!

.gitlab-ci.yml (4)

71-71: LGTM!


135-142: LGTM!


174-174: LGTM!


338-340: LGTM!

.github/workflows/ci_check.yml (1)

223-226: LGTM!

Comment thread crates/cli/README.md Outdated
Comment thread README.md Outdated
Comment thread scripts/package-cli-bin.py Outdated
@willkill07 willkill07 self-assigned this Jul 28, 2026
@willkill07 willkill07 added this to the 0.7 milestone Jul 28, 2026
Signed-off-by: Will Killian <wkillian@nvidia.com>

@ericevans-nv ericevans-nv 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.

Requesting changes because the PyPI wheel installs the Unix CLI without execute permission. I also noted that the GitHub Release artifact selector now includes package-manager artifacts.

Comment thread scripts/package-cli-bin.py Outdated
Comment thread .github/workflows/ci_rust.yml Outdated
Signed-off-by: Will Killian <wkillian@nvidia.com>
@github-actions github-actions Bot added size:XL PR is extra large and removed size:L PR is large labels Jul 28, 2026
Signed-off-by: Will Killian <wkillian@nvidia.com>
Signed-off-by: Will Killian <wkillian@nvidia.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/ci.yaml (1)

535-552: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Avoid interpolating ${{ github.ref_name }} directly into the shell script.

version="${{ github.ref_name }}" is substituted by GitHub Actions before the shell parses the script, so an unexpected ref name could inject shell syntax (flagged by zizmor). Prefer the runner-provided $GITHUB_REF_NAME env var, which is shell-quoted safely. The Node publish step above (Line 519) has the same pattern and would benefit from the same fix.

🔒 Proposed fix
       - name: Publish CLI packages to npm
         run: |
           set -euo pipefail
-          version="${{ github.ref_name }}"
+          version="$GITHUB_REF_NAME"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ci.yaml around lines 535 - 552, Replace direct GitHub
Actions interpolation of github.ref_name with the runner-provided
GITHUB_REF_NAME environment variable in the npm publish steps, including the
version assignment in the shown publishing block and the corresponding Node
publish step. Preserve the existing version-based package naming and publishing
behavior.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci_node.yml:
- Around line 313-314: Update the Checkout step in the PackageSmoke job to set
persist-credentials to false, ensuring the checkout token is not retained in the
local Git configuration while preserving the existing checkout action and
revision.

In @.github/workflows/ci_rust.yml:
- Around line 308-315: Update the “Install and run CLI wheel” step to create and
activate a disposable virtual environment before installing the wheel, ensuring
`python -m pip` and `nemo-relay --version` use the venv interpreter instead of
the runner Python.

In @.gitlab-ci.yml:
- Around line 135-150: Add an empty-artifact validation alongside the existing
checks in the collect:github-artifacts flow, verifying that collected/cli-npm
contains at least one .tgz file after copying from downloaded/cli-npm. On
failure, emit an appropriate error to stderr and exit nonzero, matching the
established wheel and node guard behavior.

In `@scripts/package-node-bin.py`:
- Around line 63-73: Update metapackage_files to raise TypeError instead of
ValueError for both isinstance-based validation failures: a non-dictionary
exports value and a non-dictionary export entry. Keep the existing messages and
file-processing behavior unchanged.

---

Outside diff comments:
In @.github/workflows/ci.yaml:
- Around line 535-552: Replace direct GitHub Actions interpolation of
github.ref_name with the runner-provided GITHUB_REF_NAME environment variable in
the npm publish steps, including the version assignment in the shown publishing
block and the corresponding Node publish step. Preserve the existing
version-based package naming and publishing behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: bfc54d92-dd6b-4cf7-b439-dc6b3d7aff0b

📥 Commits

Reviewing files that changed from the base of the PR and between 5676ab1 and c57d129.

📒 Files selected for processing (12)
  • .github/ci-path-filters.yml
  • .github/workflows/ci.yaml
  • .github/workflows/ci_check.yml
  • .github/workflows/ci_node.yml
  • .github/workflows/ci_rust.yml
  • .gitlab-ci.yml
  • RELEASING.md
  • justfile
  • scripts/package-cli-bin.py
  • scripts/package-node-bin.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/tests/test_package_node_bin.py
📜 Review details
🧰 Additional context used
📓 Path-based instructions (22)
.github/workflows/*.{yml,yaml}

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

.github/workflows/*.{yml,yaml}: Put permissions: on each job that needs token access.
Avoid workflow-level permissions: unless the repository intentionally centralizes them and the inheritance tradeoff is documented.
Keep third-party actions pinned to full commit SHAs and preserve the readable version comment after the SHA.
Prefer action-native or ecosystem-native caching over generic actions/cache.
Use lockfiles or dependency manifests to drive cache invalidation.
Keep deploy and publish permissions isolated to the jobs that need them.
Read both caller and callee when a workflow uses workflow_call.
Put release-tag validation in the earliest practical caller job when the pipeline has tag-based publish behavior.
Keep pure-Python plugin SDK packaging as a single wheel artifact instead of duplicating it across every platform matrix entry.
contents: read is the default minimum for checkout-based build, test, docs, and packaging jobs.
pull-requests: read is required for PR metadata lookup jobs.
pages: write and id-token: write should be limited to Pages deployment jobs and any caller that invokes them through a reusable workflow.
For reusable workflows, the caller must grant every permission the called jobs require; the callee cannot elevate beyond what the caller provides.
Prefer astral-sh/setup-uv cache support with cache-dependency-glob anchored to uv.lock.
Prefer Swatinem/rust-cache with explicit shared-key and workspaces instead of ad hoc target-directory caching.
Avoid caching generated outputs that can hide stale behavior unless the repo already relies on them deliberately.

Keep CI workflow commands and package references in GitHub Actions workflows aligned with the current install, build, and example commands.

Files:

  • .github/workflows/ci_check.yml
  • .github/workflows/ci_rust.yml
  • .github/workflows/ci_node.yml
  • .github/workflows/ci.yaml
{justfile,codecov.yml,codecov.yaml,.github/workflows/**/*.yml,.github/workflows/**/*.yaml}

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

justfile, Codecov, and CI package/test workflows must include new plugin crates and packages.

Files:

  • .github/workflows/ci_check.yml
  • .github/workflows/ci_rust.yml
  • .github/workflows/ci_node.yml
  • justfile
  • .github/workflows/ci.yaml
{.github/**,.gitlab-ci.yml,.pre-commit-config.yaml,justfile,scripts/**}

⚙️ CodeRabbit configuration file

{.github/**,.gitlab-ci.yml,.pre-commit-config.yaml,justfile,scripts/**}: Review automation changes for reproducibility, pinned versions where appropriate, secret handling, and consistency with the documented validation matrix.
Pay attention to commands that need generated native artifacts, FFI libraries, or platform-specific environment variables.

Files:

  • .github/workflows/ci_check.yml
  • scripts/tests/test_package_node_bin.py
  • .github/ci-path-filters.yml
  • .github/workflows/ci_rust.yml
  • scripts/package-node-bin.py
  • .github/workflows/ci_node.yml
  • scripts/tests/test_package_cli_bin.py
  • .gitlab-ci.yml
  • scripts/package-cli-bin.py
  • justfile
  • .github/workflows/ci.yaml
**/*.{rs,py}

📄 CodeRabbit inference engine (AGENTS.md)

Follow binding naming conventions in Rust and Python: use snake_case.

Files:

  • scripts/tests/test_package_node_bin.py
  • scripts/package-node-bin.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*.{rs,py,js,mjs,cjs,ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{rs,py,js,mjs,cjs,ts,tsx}: Use Json = serde_json::Value in Rust-facing runtime APIs where the existing code expects JSON payloads.
Use Result<T> with FlowError in core runtime paths, and keep errors explicit and binding-appropriate at the wrapper layer.
Keep async behavior on the existing tokio-based model; bindings should preserve callback and future lifetimes rather than blocking or hiding async work unexpectedly.

Files:

  • scripts/tests/test_package_node_bin.py
  • scripts/package-node-bin.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*.py

📄 CodeRabbit inference engine (CONTRIBUTING.md)

**/*.py: When changing the Python wrapper package, tests, or docs tooling, lint with Ruff (E, F, W, I), format with Ruff formatter (120-character lines, double quotes), and pass ty type checking.
Add the SPDX license header to all Python source files using the # comment form.

Files:

  • scripts/tests/test_package_node_bin.py
  • scripts/package-node-bin.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*.{rs,py,go,js,ts,c,h}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Use language-appropriate naming conventions: Rust snake_case, C FFI exports prefixed nemo_relay_, Go PascalCase, Node.js camelCase, and Python snake_case.

Files:

  • scripts/tests/test_package_node_bin.py
  • scripts/package-node-bin.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*.{py,go,js,ts}

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

Keep Python, Go, and Node.js config objects and subscriber/exporter methods aligned so all bindings expose the same logical knobs and semantics.

Files:

  • scripts/tests/test_package_node_bin.py
  • scripts/package-node-bin.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

**/*: Format changed files with the language-native formatter before the final lint/test pass.
If dynamic plugin behavior changed, use maintain-dynamic-plugins and include the native SDK, worker protocol, Python SDK, docs, packaging, and Codecov surfaces in the validation plan.
If code changes alter APIs, bindings, commands, paths, packaging behavior, observability/adaptive semantics, or documented best practices, update any dependent maintainer or consumer skills in the same branch.
During iteration, prefer uv run pre-commit run --files <changed files...>.
Before review or handoff, run uv run pre-commit run --all-files.

Files:

  • scripts/tests/test_package_node_bin.py
  • scripts/package-node-bin.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
  • justfile
  • RELEASING.md
**/*.{rs,py,go,js,ts}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If a language surface changed, always run that language's test target even when Rust core did not change.

Files:

  • scripts/tests/test_package_node_bin.py
  • scripts/package-node-bin.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
**/*.{rs,py,js,ts,tsx,go,java,kt,swift}

📄 CodeRabbit inference engine (.agents/skills/add-middleware/SKILL.md)

Add tests covering registration and duplicate names, deregistration and missing names, priority ordering, callback failure policy, scope-local inheritance and cleanup, event payload semantics, immutable mark and scope fields, and parity across affected bindings.

Files:

  • scripts/tests/test_package_node_bin.py
  • scripts/package-node-bin.py
  • scripts/tests/test_package_cli_bin.py
  • scripts/package-cli-bin.py
.gitlab-ci.yml

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

Keep CI workflow commands and package references in .gitlab-ci.yml aligned with the current install, build, and example commands.

Files:

  • .gitlab-ci.yml
justfile

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

Keep justfile build, test, clean, version, and package recipes for plugin crates and packages aligned with the current packaging layout.

Files:

  • justfile
**/*.{md,rst,html,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

**/*.{md,rst,html,txt}: Always spell NVIDIA in all caps. Do not use Nvidia, nvidia, nVidia, nVIDIA, or NV.
Use an NVIDIA before a noun because the name starts with an 'en' sound.
Do not add a registered trademark symbol after NVIDIA when referring to the company.
Use trademark symbols with product names only when the document type or legal guidance requires them.
Verify official capitalization, spacing, and hyphenation for product names.
Precede NVIDIA product names with NVIDIA on first mention when it is natural and accurate.
Do not rewrite product names for grammar or title-case rules.
Preserve third-party product names according to the owner's spelling.
Include the company name and full model qualifier on first use when it helps identify the model.
Preserve the official capitalization and punctuation of model names.
Use shorter family names only after the full name is established.
Spell out a term on first use and put the acronym in parentheses unless the acronym is widely understood by the intended audience.
Use the acronym on later mentions after it has been defined.
For long documents, reintroduce the full term if readers might lose context.
Form plurals of acronyms with s, not an apostrophe, such as GPUs.
In headings, common acronyms can remain abbreviated. Spell out the term in the first or second sentence of the body.
Common terms such as CPU, GPU, PC, API, and UI usually do not need to be spelled out for developer audiences.

Files:

  • RELEASING.md
**/*.{md,rst,html}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

Link the first mention of a product name when the destination helps the reader.

Files:

  • RELEASING.md
**/*.{md,rst,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

Spell NVIDIA in all caps. Do not use Nvidia, nvidia, or NV.

Files:

  • RELEASING.md
**/*.{md,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

**/*.{md,rst}: Format commands, code elements, expressions, package names, file names, and paths as inline code.
Use descriptive link text. Avoid raw URLs and weak anchors such as "here" or "read more."
Use title case consistently for technical documentation headings.
Introduce code blocks, lists, tables, and images with complete sentences.
Write procedures as imperative steps. Keep steps parallel and split long procedures into smaller tasks.
Prefer active voice, present tense, short sentences, contractions, and plain English.
Use can for possibility and reserve may for permission.
Use after for temporal relationships instead of once.
Prefer refer to over see when the wording points readers to another resource.
Avoid culture-specific idioms, unnecessary Latinisms, jokes, and marketing exaggeration in technical docs.
Spell out months in body text, avoid ordinal dates, and use clear time zones.
Spell out whole numbers from zero through nine unless they are technical values, parameters, versions, or UI values.
Use numerals for 10 or greater and include commas in thousands.
Do not add trademark symbols to learning-oriented docs unless the source, platform, or legal guidance explicitly requires them.

Files:

  • RELEASING.md
**/*.md

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-technical-docs.md)

**/*.md: Use title case consistently in technical documentation headings
Avoid quotation marks, ampersands, and exclamation marks in headings
Keep product, event, research, and whitepaper names in their official title case
Use title case for table headers
Do not force social-media sentence case into technical docs
Format code elements, commands, parameters, package names, and expressions in monospace
Format directories, file names, and paths in monospace using backticks
Use angle brackets inside monospace for variables inside paths, such as /home/<username>/.login
Format error messages and strings in quotation marks, keeping literal code strings in code formatting when clearer
Format UI buttons, menus, fields, and labels in bold
Use angle brackets between UI labels for menu paths, such as File > Save As
Use italics for new terms on first use, sparingly and only when introducing the term
Use italics for publication titles
Format keyboard shortcuts in plain text, such as Press Ctrl+Alt+Delete
Use owner/repo link text for GitHub repositories, preferring [NVIDIA/NeMo](link) over prose references like 'the GitHub repo'
Introduce every code block with a complete sentence
Do not make a code block complete the grammar of the previous sentence
Do not continue a sentence after a code block
Use syntax highlighting when the format supports it for code blocks
Avoid the word 'snippet' unless the surrounding docs already use it as a term of art
Keep inline method, function, and class references consistent with nearby docs, omitting empty parentheses for prose readability when no call is shown
Use descriptive anchor text that matches the destination title when possible for links
Avoid raw URLs in running text
Avoid generic anchor text such as 'here,' 'this page,' and 'read more'
Include acronyms in link text when a linked term includes an acronym
Do not link long sentences or multiple sentences
Avoid links that pull readers away from a procedure unless the link is a p...

Files:

  • RELEASING.md
**/*.{md,mdx}

📄 CodeRabbit inference engine (AGENTS.md)

Update README.md, fern/, package READMEs, and binding-support notes when public behavior, package names, examples, or supported bindings change.

**/*.{md,mdx}: Prefer the documented public API, not internal shortcuts
Keep package names, repo references, and build commands current
Keep release-process and release-notes guidance in repo-maintainer docs such as RELEASING.md, not as user-facing docs pages or CHANGELOG.md
Keep stable user-facing wrappers at scripts/ root in docs and examples; only point at namespaced helper paths when documenting internal maintenance work
When detailed dynamic plugin guides exist, keep Rust native plugin examples, Python worker plugin examples, and grpc-v1 protocol details on separate pages

If links in documentation change, run just docs-linkcheck.

Files:

  • RELEASING.md
**/*.{md,markdown,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Add the SPDX license header to all Markdown/MDX documentation files using the HTML comment block form.

Files:

  • RELEASING.md
RELEASING.md

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

Keep release-tag policy aligned with RELEASING.md: raw SemVer tags only, no leading v.

Document release tags as raw SemVer without a leading v, and keep release history and release-note links pointing to GitHub Releases rather than CHANGELOG.md or docs pages.

Files:

  • RELEASING.md
{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}

⚙️ CodeRabbit configuration file

{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency across language bindings.
Flag stale examples, missing SPDX headers where required, and instructions that no longer match CI or pre-commit behavior.

Files:

  • RELEASING.md
🧠 Learnings (3)
📚 Learning: 2026-05-03T04:23:07.497Z
Learnt from: willkill07
Repo: NVIDIA/NeMo-Flow PR: 46
File: .github/workflows/ci_rust.yml:31-64
Timestamp: 2026-05-03T04:23:07.497Z
Learning: In GitHub Actions workflow YAML, it’s valid to conditionally disable a service container by setting the service container’s `image` to an empty string (`''`) via a matrix variable (e.g., `redis_service_image: ''`). This intentionally makes the runner skip service initialization for that matrix entry rather than failing the job. When reviewing workflows, don’t flag this as an error if the workflow uses an empty `image` to disable the service on specific matrix entries (e.g., OS-specific setups); verify the `image` is sourced from the matrix variable and that the service is only expected to be available when a non-empty image is provided.

Applied to files:

  • .github/workflows/ci_check.yml
  • .github/workflows/ci_rust.yml
  • .github/workflows/ci_node.yml
📚 Learning: 2026-04-15T18:16:52.951Z
Learnt from: bbednarski9
Repo: NVIDIA/NeMo-Flow PR: 1
File: docs/atof-event-format.md:381-381
Timestamp: 2026-04-15T18:16:52.951Z
Learning: In docs/atof-event-format.md (and when reviewing references to this format across the NeMo-Flow repo), treat `AtifExporter.events_to_steps()` as the intended public/API method name. Do not flag it as inconsistent with internal Rust symbol names (e.g., `event_to_steps` in `crates/core/src/atif.rs`)—the documentation’s public-facing naming may differ intentionally from internal implementation details.

Applied to files:

  • .gitlab-ci.yml
📚 Learning: 2026-05-01T13:41:07.485Z
Learnt from: willkill07
Repo: NVIDIA/NeMo-Flow PR: 34
File: .gitlab-ci.yml:95-103
Timestamp: 2026-05-01T13:41:07.485Z
Learning: In NVIDIA/NeMo-Flow’s .gitlab-ci.yml, when listing GitHub Actions runs for a tag-triggered workflow, use `gh run list --branch "$tag"` to filter runs by the tag name. For annotated tag pushes in this repo, GitHub sets `headBranch` to the tag (e.g., `0.1.0-rc.5`), so `--branch "$tag"` returns only the tag-triggered run. Prefer this over `--commit <sha>`, which can be less precise because it may include both the tag run and a main-branch run that share the same commit SHA.

Applied to files:

  • .gitlab-ci.yml
🪛 ast-grep (0.45.0)
scripts/tests/test_package_node_bin.py

[info] 51-51: use jsonify instead of json.dumps for JSON output
Context: json.dumps(source_manifest)
Note: [CWE-116] Improper Encoding or Escaping of Output.

(use-jsonify)

scripts/package-node-bin.py

[info] 94-94: use jsonify instead of json.dumps for JSON output
Context: json.dumps(manifest, indent=2)
Note: [CWE-116] Improper Encoding or Escaping of Output.

(use-jsonify)


[info] 115-115: use jsonify instead of json.dumps for JSON output
Context: json.dumps(manifest, indent=2)
Note: [CWE-116] Improper Encoding or Escaping of Output.

(use-jsonify)

🪛 Ruff (0.16.0)
scripts/tests/test_package_node_bin.py

[warning] 17-17: Assertion should be broken down into multiple parts

Break down assertion into multiple parts

(PT018)


[warning] 27-27: Avoid specifying long messages outside the exception class

(TRY003)

scripts/package-node-bin.py

[warning] 68-68: Prefer TypeError exception for invalid type

(TRY004)


[warning] 68-68: Avoid specifying long messages outside the exception class

(TRY003)


[warning] 71-71: Prefer TypeError exception for invalid type

(TRY004)


[warning] 71-71: Avoid specifying long messages outside the exception class

(TRY003)


[warning] 92-92: Avoid specifying long messages outside the exception class

(TRY003)

🪛 zizmor (1.28.0)
.github/workflows/ci_node.yml

[warning] 211-211: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)


[warning] 313-314: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[warning] 344-344: ad-hoc installation of packages (adhoc-packages): installs a package outside of a lockfile

(adhoc-packages)

.github/workflows/ci.yaml

[error] 538-538: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)

🔇 Additional comments (17)
scripts/package-cli-bin.py (3)

119-125: LGTM! Confirmed this resolves the earlier "pip installs as 0644 / permission denied" finding via stat.S_IFREG + explicit mode, and create_system = 3.


180-203: LGTM! LICENSE now resolves via ROOT / "LICENSE" instead of cwd-relative Path("LICENSE"), addressing the earlier cwd-dependency finding, and the renamed nemo-relay-bin-npm-* output naming matches the CI/publish scripts and RELEASING.md.

Also applies to: 248-267


92-110: LGTM!

scripts/package-node-bin.py (1)

76-98: LGTM! Matches the test coverage in scripts/tests/test_package_node_bin.py (native package name/os/cpu/libc/main, metapackage file inclusion/exclusion, and optionalDependencies version propagation).

Also applies to: 101-121

scripts/tests/test_package_cli_bin.py (1)

34-107: LGTM! Assertions align with the current package-cli-bin.py implementation (regular-file wheel entry mode, renamed nemo-relay-bin-npm-* tarballs, PEP 440 translation cases).

scripts/tests/test_package_node_bin.py (1)

34-89: LGTM! Covers native package manifest fields, .node exclusion from the metapackage, and optionalDependencies version propagation for both release and dev (+sha) versions.

justfile (2)

1565-1624: LGTM! node_platform auto-derivation only runs when the CI-set value is empty, and --metapackage is scoped to the single linux-amd64 build, matching the analogous --npm-launcher-only-on-linux-amd64 pattern in ci_rust.yml.


1741-1756: LGTM!

.github/workflows/ci_rust.yml (2)

281-307: LGTM! Version derivation intentionally diverges from the raw binary asset's dev-<sha> label since wheel_version() requires a strict SemVer-like format; using <cargo-version>+<sha> here is correct for that constraint.


316-335: LGTM! Artifact naming (cli-binary-*, cli-python-wheel-*, cli-npm-package-*) aligns with the downstream collectors in ci.yaml and .gitlab-ci.yml.

.github/workflows/ci_node.yml (1)

175-178: LGTM! node_platform wiring matches package-node-bin.py's PLATFORMS keys, and the new smoke test correctly asserts exactly one native package plus all documented entrypoints resolve.

Also applies to: 203-222, 290-364

.github/ci-path-filters.yml (1)

62-65: LGTM!

Also applies to: 85-89, 105-108, 135-137

.github/workflows/ci.yaml (2)

272-345: LGTM! Verified the expect_count glob patterns don't collide across CLI binaries, wheels, and npm tarballs, and the counts (5/5/5/6/6) correctly account for 5 platforms plus one shared launcher/metapackage each for CLI and Node.


452-458: LGTM! Download patterns line up with the upload names in ci_rust.yml/ci_node.yml.

Also applies to: 487-506

.github/workflows/ci_check.yml (1)

224-229: LGTM! Node.js is already provisioned earlier in this job, which the launcher subprocess test in test_package_cli_bin.py needs.

.gitlab-ci.yml (1)

304-304: LGTM! Split-per-platform npm publish loops for both Node and CLI packages are consistent with the removal of the old consolidated-artifact before_script tooling.

Also applies to: 324-331

RELEASING.md (1)

34-37: LGTM! Package/platform names (nemo-relay-node-linux-x64-gnu, nemo-relay-cli-bin-linux-x64, etc.) match package-node-bin.py's Platform.package_name and the CLI npm naming used in package-cli-bin.py/tests exactly.

Also applies to: 149-156, 257-273, 320-323, 354-357

Comment thread .github/workflows/ci_node.yml
Comment thread .github/workflows/ci_rust.yml
Comment thread .gitlab-ci.yml
Comment thread scripts/package-node-bin.py
Signed-off-by: Will Killian <wkillian@nvidia.com>
Comment thread .github/workflows/ci.yaml
@willkill07

Copy link
Copy Markdown
Member Author

/merge

@rapids-bot
rapids-bot Bot merged commit 75567f9 into NVIDIA:main Jul 29, 2026
75 of 76 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jul 30, 2026
2 tasks
@willkill07
willkill07 deleted the feat/relay-532-cli-packages branch August 4, 2026 00:30
@coderabbitai coderabbitai Bot mentioned this pull request Aug 4, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature a new feature lang:python PR changes/introduces Python code size:XL PR is extra large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants