NeMo-Relay icon indicating copy to clipboard operation
NeMo-Relay copied to clipboard

[Bug]: Latency benchmark observability fixtures use unsupported config version 3

Open Ashitaka-Laputa-IV opened this issue 3 weeks ago • 2 comments

Affected area

Build, packaging, or CI; Observability or exporters.

Current behavior

The latency benchmark ships two observability plugin fixtures that still use configuration version 3:

  • scripts/latency_benchmark/config/plugins-file.toml
  • scripts/latency_benchmark/config/plugins-otlp.toml

The current observability plugin only accepts version 4 (crates/observability/src/plugin.rs, validate_version). With the default unsupported_value = "error" policy, validate_static_plugin_config returns an error and initialize_plugins_exact_inner aborts activation with PluginError::InvalidConfig.

The benchmark starts Relay with --plugin-config-path for these fixtures (scripts/latency_benchmark/src/processes.py), so the relay-file and relay-otlp variants cannot activate the observability plugin.

Expected behavior

The shipped benchmark fixtures should satisfy the current observability plugin schema and use version = 4.

Steps to reproduce

  1. Build the CLI with just build-cli.
  2. Run the latency benchmark, for example just latency-benchmark --tests startup --samples 1 --warmup 0.
  3. Observe that the relay-file / relay-otlp variants fail during startup, or that observability is not activated for those variants.

A direct static check also shows the mismatch: both fixtures set [components.config] version = 3, while docs/configure-plugins/observability/configuration.mdx and validate_version require version 4.

Environment

  • NeMo Relay version or commit: main at 3c29c9d2
  • OS and architecture: Windows x86_64 (the configuration issue is platform-independent)
  • Rust version: N/A (not installed in the environment used for the report)
  • Python version: 3.14.10 (uv-managed)
  • Node.js version: 24.22.1
  • Go version: N/A
  • Install/build command: not run; the issue was confirmed by reading the validation and benchmark startup paths

Impact

Anyone running the latency benchmark with the default relay-file or relay-otlp variants gets a failed or invalid benchmark result for those variants. The benchmark is intended to measure observability plugin overhead, so this silently undermines the comparison.

Proposed fix

Change version = 3 to version = 4 in both fixture files and add a small static-fixture test so future schema bumps cannot leave the benchmark fixtures stale.

Ashitaka-Laputa-IV avatar Nov 13 '26 03:11 Ashitaka-Laputa-IV

Opened #1740 with the two fixture updates and a static-fixture guard. I kept the change scoped to the benchmark configuration; happy to adjust or drop the guard if you prefer a different shape.

Ashitaka-Laputa-IV avatar Nov 13 '26 03:11 Ashitaka-Laputa-IV

Per maintainer guidance, #1740 now targets release/0.11 and has been rebased onto that branch. The same benchmark fixtures still use observability config version 3 on 0.11, while the validator there also requires version 4.

The 1.0 line will reset plugin versioning, so I kept this fix on the maintained 0.11 branch.

Ashitaka-Laputa-IV avatar Nov 13 '26 15:11 Ashitaka-Laputa-IV