Repository navigation
v0.3.0: gap visibility, JSON Lines, measured RMW matrix
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=1measures the largest inter-arrival
gap per endpoint per side and emitsJITTER <topic> <side> max_dt_ms=…, plus amax_gap_ms:
spec rule,WARN TOPIC <name> max_dt_ms=… expected_max_gap_ms=…, andpulse-checkgating.
This closes a soundness hole in the 0.2.0 rate alerting: a windowed mean cannot see a stall, so
at 50 Hz amin_hz: 45rule 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 coversRate-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_msrule enables it implicitly so a declared rule is never silently unchecked. pulse-checkexits 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=1suppresses 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 thedlsym(RTLD_NEXT)forwarding feeds both
consumers. Runs on the jazzy/kilted CI lanes (newlttng-tools/babeltracetest_depends);
skips on stock humble, whose tracetools ships no lttng-ust backend (detected vialdd). - RMW support matrix (ROADMAP R6):
test/rmw/run_rmw_matrix.shvalidates the probe
per-middleware in stockros:<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 thermw_zenohdrouter 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 undertest/rmw/out/. Containers get a
per-distroROS_DOMAIN_IDbecause DDS multicast discovery crosses the docker bridge,
without it a concurrent run's foreign talker doubles the listener's measured rate.
- a new fixed-size UInt64 talker/listener pair, because String is not SHM-eligible), and
- JSON Lines output (ROADMAP R6):
ROS_TOPIC_STATS_FORMAT=jsonlre-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_nsis a decimal string (int64 > 2^53 would lose digits as a JSON number; the
OTLP/JSONtimeUnixNanoconvention), absent keys mean "not measured" (mirroring the
JITTERhas-measured semantics),warnsare 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/parseLogsniff 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
(/tmpwhenTMPDIRis 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 setO_CLOEXEC; an explicit
ROS_TOPIC_STATS_OUTPUT_FILEkeeps 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.