Skip to content

v0.3.0: gap visibility, JSON Lines, measured RMW matrix

Choose a tag to compare

@Tanay10x Tanay10x released this 20 Aug 08:36
· 46 commits to main since this release

Observability-formats + soundness release: gap visibility closes the stall blind spot in 0.2.0's
rate alerting, JSON Lines output lands for sidecar exporters, and the RMW matrix / LTTng
coexistence results make the compatibility claims measured rather than assumed.

Added

  • Gap visibility (ROADMAP R5): ROS_TOPIC_STATS_JITTER=1 measures the largest inter-arrival
    gap per endpoint per side and emits JITTER <topic> <side> max_dt_ms=…, plus a max_gap_ms:
    spec rule, WARN TOPIC <name> max_dt_ms=… expected_max_gap_ms=…, and pulse-check gating.
    This closes a soundness hole in the 0.2.0 rate alerting: a windowed mean cannot see a stall, so
    at 50 Hz a min_hz: 45 rule needs >0.5 s of dead time to fire and a 400 ms freeze passes at
    46 Hz. Max gap is window-length-independent, and it also covers Rate-driven control loops
    (ros2_control, Nav2, MoveIt Servo) that emit no timer tracepoint, via the topics they publish.
    Costs +24 ns per message when on (~0.012% of a core at 4900 msg/s); default off, and a
    max_gap_ms rule enables it implicitly so a declared rule is never silently unchecked.
  • pulse-check exits 2 when a spec requires a gap the logs cannot answer: measurement absence
    is not a health verdict. Violations it did measure are still printed.
  • Quiet banner (ROADMAP R6): ROS_TOPIC_STATS_QUIET=1 suppresses the [ros2_pulse] active
    stderr banner for stderr-parsing deployments. Narrow on purpose: it silences the
    informational banner only; the one-shot error diagnostics (unreadable/malformed/zero-rule
    spec, unwritable output file) always print, because silently disabled alerting is the 0.2.0
    bug class this flag must not reintroduce.
  • LTTng coexistence test (closes ROADMAP R3): test/integration/test_lttng_coexist.py
    asserts the probe and a live LTTng session capture the same run: probe log rates and >0
    ros2:* events via babeltrace, proving the dlsym(RTLD_NEXT) forwarding feeds both
    consumers. Runs on the jazzy/kilted CI lanes (new lttng-tools/babeltrace test_depends);
    skips on stock humble, whose tracetools ships no lttng-ust backend (detected via ldd).
  • RMW support matrix (ROADMAP R6): test/rmw/run_rmw_matrix.sh validates the probe
    per-middleware in stock ros:<distro> containers: rmw_fastrtps (control leg),
    rmw_cyclonedds plain and with iceoryx shared memory (iox-roudi + <SharedMemory> config
    • a new fixed-size UInt64 talker/listener pair, because String is not SHM-eligible), and
      rmw_zenoh (no DDS at all; needs the rmw_zenohd router for discovery), asserting
      publish-side, receive-side and intra-process rates at 50 Hz ±30% with the same parser the CI
      accuracy suite trusts. All four configurations green on ros:humble / ros:jazzy / ros:kilted
      (2026-08-08). README gained a per-RMW matrix with measured rates, exact package versions and
      the SHM-attribution caveat; evidence lands under test/rmw/out/. Containers get a
      per-distro ROS_DOMAIN_ID because DDS multicast discovery crosses the docker bridge,
      without it a concurrent run's foreign talker doubles the listener's measured rate.
  • JSON Lines output (ROADMAP R6): ROS_TOPIC_STATS_FORMAT=jsonl re-encodes each flush
    window as one JSON object per line (jsonlines.org) for sidecar exporters and log shippers,
    same emit gates, values and precisions as the text format, which stays the byte-identical
    default. ts_ns is a decimal string (int64 > 2^53 would lose digits as a JSON number; the
    OTLP/JSON timeUnixNano convention), absent keys mean "not measured" (mirroring the
    JITTER has-measured semantics), warns are structured objects (topic_rate / topic_gap
    / node_missing) rather than preformatted strings, and user-controlled names are escaped
    per RFC 8259 so a hostile topic name cannot break the one-object-per-line framing. Unknown
    format values warn once on stderr and fall back to text. pulse-check/parseLog sniff the
    format per line, so jsonl logs keep full CI/watchdog gating (a non-probe file still exits 2,
    never a silent pass); golden-byte unit tests pin both formats.

Fixed

  • The default output path was /root/ssd2tb/logs/topic_freq.<pid>.log, the original field-test
    machine's SSD mount. On any machine without that directory a fresh install silently dropped
    every window after a single stderr warning. The default is now $TMPDIR/topic_freq.<pid>.log
    (/tmp when TMPDIR is unset, empty, or relative). Because the new default lives in a
    world-writable sticky directory under a pid-predictable name, its open now refuses symlinks
    (O_NOFOLLOW, CWE-379) and both open paths set O_CLOEXEC; an explicit
    ROS_TOPIC_STATS_OUTPUT_FILE keeps full symlink freedom.

Upgrade note

Deployments that read the old default location must either set
ROS_TOPIC_STATS_OUTPUT_FILE=/root/ssd2tb/logs/topic_freq.$$.log explicitly or start reading
from /tmp. Anyone setting the path explicitly (the documented practice) is unaffected.