Skip to content

Releases

v0.8.0: prometheus alert rules, exporter on port 10061

Choose a tag to compare

@TanayK07 TanayK07 released this 02 Nov 14:15
2b362cb

pulse-top 0.7.0: pulse-export moves to port 10061, ships Prometheus alerting rules, and stops exporting leftover logs and duplicate warn series. Also carries pulse-top 0.6.1's lower Textual floor. The probe and pulse_bridge are unchanged.

Changed

  • pulse-export listens on port 10061 by default, not 9464. The
    Prometheus default-port list
    gives 9464 to the OpenTelemetry Node.js exporter, so the two could not run on one host with
    their defaults. The exporter range 9100-9999 is full, and 10061 is the next free port in the
    10000+ block that continues it. To keep an existing scrape config, pass --port 9464.
    examples/grafana/ now publishes and scrapes 10061. A changed default, so pulse-top goes to
    0.7.0, not 0.6.2.
  • Textual floor lowered from 8.2.7 to 2.0 (issue #71), released as pulse-top 0.6.1 on
    2026-10-21.
    Every Textual from 4.1
    on requires pygments>=2.19.2, so on Ubuntu 24.04 pip install --break-system-packages
    replaced Debian's python3-pygments (2.17.2). Textual 2.0 to 4.0 need only rich>=13.3.3, which
    Debian's python3-rich (13.7.1) satisfies; install with "textual<4.1" there to keep both. The
    terminal theme falls back to Textual's pre-8.2.5 name for it (textual-ansi). CI runs the
    suite on the floor and on the Ubuntu 24.04 set as well as on the latest Textual.
  • pulse-top installs with pipx in the docs. pulse-top imports nothing from ROS, so the README,
    the docs.ros.org guide and docs/EXPORT.md now lead with pipx install ros2-pulse-top (in apt on
    22.04 and 24.04), with uv tool install, a ros:<distro> container recipe and the capped
    system-pip line as alternatives, instead of a bare pip3 install.

Added

  • Prometheus alerting rules for pulse-export in examples/prometheus/ros2_pulse_alerts.yml:
    the probe's topic_rate, topic_gap and node_missing warns, a warn that keeps coming back
    (info), a recv_lag deficit, a topic that stopped publishing while its process still writes
    windows, a process that stopped writing windows (warning), and pulse-export itself down.
    ros2_pulse_alerts_test.yml tests them on synthetic series, and a new CI job runs
    promtool check rules and promtool test rules (Prometheus 3.5.0) and checks the compose
    example's config. A pytest checks every metric and label the rules use against pulse-export's
    metric catalogue. examples/grafana/ loads the rules and evaluates them every 5 s.
    docs/EXPORT.md has a new Alerting section.
  • The RMW matrix runs in CI. .github/workflows/rmw-matrix.yml runs
    test/rmw/run_rmw_matrix.sh on humble, jazzy and kilted when the probe or the matrix changes,
    and on main. The script gains a rmw_zenoh leg with Zenoh shared memory that fails unless a
    pool-sized shared-memory segment shows up and no process logs a ShmProvider error.
  • README: a "Used with" section (ros2_data_collection, ros2-kubernetes-lab).

Fixed

  • pulse-export no longer scrapes logs of exited processes as live. The follower replays every
    matching log on attach and the probe never deletes its log, so on each start pulse-export
    exported one leftover topic_freq.<pid>.log per process of every earlier run with its last
    rates and an age of 0, until it forgot them five minutes later. It now skips a log whose mtime
    is older than the forget horizon (--once still reads any log). It also forgets a process on
    its jsonl exit window ("partial": true after another window), as pulse_bridge's
    /diagnostics already did, and keeps a process for four window periods when that is longer
    than five minutes, so a slow window is not forgotten between two flushes.
  • pulse-export no longer repeats a ros2_pulse_warn_active series in one scrape. The probe's
    warns carry no side or transport, so a spec with a pub and a recv rule on one topic (or an
    inter and an intra one) that both warned in a window gave two samples with the same labels,
    and Prometheus rejects a scrape with a duplicate series. Each label set is now one sample, in
    the scrape and in the OTLP push, and ros2_pulse_warns_total still counts every warn read. A
    node listed twice in the spec's nodes: did the same to warn_active and node_up.
  • examples/grafana/README.md said the probe must log jsonl. pulse-export reads the default
    text format too.

v0.7.0: /diagnostics, rclcpp topic statistics parity, per-endpoint counts

Choose a tag to compare

@Tanay10x Tanay10x released this 21 Oct 08:36
010ba60

/diagnostics for diagnostic_aggregator, the rest of rclcpp's removed topic statistics (MINIMUM, STDDEV, message_age), graph-monitor messages, per-endpoint counts, and a package guide on docs.ros.org. pulse-top 0.6.0 reads the endpoint fields.

Changed

  • The probe counts per publisher and per subscription, attributed to the owning node.
    Counters used to be keyed by topic per process, so every endpoint of a topic in one process
    shared one counter. Two subscriptions on one topic (a component container, or one node
    subscribing twice) interleaved one inter-arrival stream, two subscriptions of one node summed
    into one rate, and every node's /rosout and /parameter_events endpoints shared one counter,
    so one node's log line kept every node of the process in the NODE list (found in the #68 and
    #70 reviews). Each rcl publisher handle and rcl subscription handle now has its own counter,
    attributed to the node whose handle its init carried (including the /rosout publisher rcl
    creates before rcl_node_init's tracepoint fires). The hot path is still one relaxed add, on
    the handle's own counter; the per-topic TOPIC / PUB / RECV / LOAN rates are summed at
    flush time and are unchanged, and the per-topic JITTER gap keeps measuring the gap between
    any two messages of the topic. With gap tracking on, each arrival also updates its handle's
    own gap from the same clock read (one more atomic exchange). Node liveness now looks only at a
    node's own endpoints. A publisher or subscription address reused after a destroy re-homes its
    endpoint, which also stops a recycled publisher handle from counting into its previous topic.
  • Destroyed publishers, subscriptions and nodes are retired. There is no destroy tracepoint,
    so the probe now also wraps rcl_publisher_fini, rcl_subscription_fini and rcl_node_fini
    by name (graph-rate calls, the per-message path is unchanged). A destroyed endpoint is written
    once more if its last window carried traffic, then dropped; before, a subscription removed in a
    lifecycle on_cleanup (or by unloading a component) stayed in every window as a stalled
    inter=0.0 endpoint of a live node, and a destroyed publisher's open gap grew without bound
    with gap tracking on. A node address reused by the next node no longer hands that node the
    destroyed node's endpoints: only the new node's own pre-init /rosout publisher is claimed.
    A callback address reused by a re-created subscription is re-resolved (its endpoint is proven
    again for KNOWN_ISSUES #12, and counts no longer go to the destroyed subscription), and the
    thread-local cache is tagged by kind, so a publisher handle address reused as a subscription
    handle (or the reverse) is never served the other one's endpoint (PR #72 review).

Added

  • pulse_bridge publishes /diagnostics (diagnostics:=true). One
    diagnostic_msgs/DiagnosticArray per poll for diagnostic_aggregator: a status per
    expected-rate rule (ros2_pulse: /scan (recv), WARN while the probe warns topic_rate or
    topic_gap for it, with hz, the rule's bounds and the measured gap as values), per spec node
    (ERROR on node_missing), and per log (ERROR stale once no window arrived for two
    window periods plus a poll; a log whose latest window is the probe's exit window is dropped
    instead, a clean exit is not a fault). The levels come from the probe's warns; the bridge reads the
    spec (expected_file, default $ROS_TOPIC_STATS_EXPECTED) only to know the rules, so a rule
    that holds reports OK. New parameters: diagnostics, diagnostics_topic, hardware_id,
    diagnostics_all_topics (also report topics without a rule), expected_file. package.xml
    now declares diagnostic_msgs. The jsonl reader (sLogWindow::warns) now parses warns;
    pulse-check still ignores them and judges the raw rates.
  • Per-endpoint breakdown in the output, additive. jsonl records gain an endpoints array
    (always present in probe output): one entry per publisher / subscription with topic,
    side (pub / recv), a process-unique id, node (absent when unknown), inter_hz,
    intra_hz, and max_dt_ms / loaned_hz when measured. Text windows get the same as EP
    lines with the new ROS_TOPIC_STATS_ENDPOINTS=1; without it the text output is unchanged.
    Same emit gates as the topic lines; filtered topics stay filtered. pulse-check's reader
    (and so pulse_bridge) parses both into sLogWindow::endpoints; pulse-top parses them into
    Window.endpoints and treats EP as a known line kind. One malformed endpoints element
    costs pulse-top that element only, never the window. Text EP lines need pulse-top
    0.6.0: pulse-top / pulse-export 0.5.0 count each EP line as a skipped line
    (ros2_pulse_lines_skipped_total); jsonl works with 0.5.0, which ignores the key.
  • pulse_bridge publishes the rest of what rclcpp's built-in topic statistics did. Those
    were removed from Rolling by rclcpp#3203. With
    ROS_TOPIC_STATS_JITTER=1, message_period messages now carry MINIMUM and STDDEV of the
    received inter-arrival period next to AVERAGE, MAXIMUM and SAMPLE_COUNT, in
    libstatistics_collector's order (AVERAGE, MAXIMUM, MINIMUM, SAMPLE_COUNT, STDDEV).
    With metrics_source:=metric every message carries all five points, NaN when unmeasured, as
    upstream did; the default topic layout leaves an unmeasured point out. The probe keeps the
    minimum and the running sums for these per subscription, next to that subscription's own gap
    accumulator, and pools them per topic at flush time, so two subscriptions on one topic never
    interleave their intervals: lock-free, about +3 ns per receive, and only while gap tracking is
    on.
  • message_age. The rmw_take hook now also reads the DDS source timestamp it already
    received, and with gap tracking on records local wall clock minus that timestamp per
    inter-process take, for rclcpp subscriptions too (their receive is still counted at
    callback_start). The new metrics_source:=metric bridge parameter publishes it as rclcpp
    did: metrics_source is message_age / message_period (in that order, one pair per
    receive-side topic, message_age empty with SAMPLE_COUNT 0 when unmeasured; publisher-only
    topics are left out), measurement_source_name the node.
    This matches rclcpp Jazzy+ (now - message_info.source_timestamp, negative ages from a
    publisher whose clock runs ahead are kept); Humble / Iron rclcpp used header.stamp, which
    needs the message type.
    Intra-process deliveries never reach rmw_take and carry no age, with one exception: with
    intra-process comms on and a remote subscriber present, the DDS copy that rclcpp takes and
    discards in the same-process subscription is still age-sampled at rmw_take (counts and the
    receive period are unaffected). Cost: one wall-clock read per take with a source timestamp,
    about +26 ns on x86-64.
  • jsonl topic entries gain recv_min_dt_ms, recv_stddev_dt_ms and recv_age_avg_ms /
    recv_age_min_ms / recv_age_max_ms / recv_age_stddev_ms / recv_age_count, each group
    only when measured. The text format is unchanged. recv_age_stddev_ms (and the age STDDEV
    point) is dropped for a window whose ages spread over more than ~71 min rather than reported
    wrapped; a constant cross-host clock skew does not affect it.
  • jsonl endpoints entries of a subscription gain its own receive distributions, the
    per-subscription twins of the topic keys above: avg_dt_ms / min_dt_ms / stddev_dt_ms /
    dt_count and age_avg_ms / age_min_ms / age_max_ms / age_stddev_ms / age_count, each
    group only when measured (gap tracking on). Drained from the accumulators the topic already
    pools, at flush time; the hot path is unchanged. Text EP lines are unchanged.
  • jsonl windows gain "partial":true on the probe's first window after attach and its exit
    window, the two it already grace-skips for alerts (absent otherwise, so existing records are
    byte-identical). pulse-check's reader parses it into sLogWindow::partial; pulse-top
    ignores it. The text format is unchanged.
  • pulse_bridge: rosgraph_monitor_msgs/TopicStatistics for graph-monitor
    (graph-monitor#14).
    With
    graph_monitor:=true the bridge also publishes each window on /topic_statistics
    (graph_monitor_topic): PUBLISHED_PERIOD / RECEIVED_PERIOD per (node, topic), with
    window_count, mean = 1 / rate and max = largest gap when jitter tracking is on. With
    jitter tracking on, RECEIVED_PERIOD takes mean / min from the subscription's own
    interval distribution and TAKE_AGE carries its message age (mean / min / max, a negative
    age sent as 0); PUBLISHED_PERIOD min stays 0 (not tracked). Each endpoint is reported
    under its owning node from the per-endpoint split, so a component container reports every
    node; two handles of one node on one topic and side report the slower one, not the sum. A
    partial window sends no PUBLISHED_PERIOD, and RECEIVED_PERIOD only from a measured
    interval mean. Messages are stamped with the bridge's system clock at publish, like
    graph-monitor's shim, and the bridge warns once per log when window_s + poll_period_s
    reaches graph-monitor's stale timeout (graph_monitor_stale_timeout_ms, 3000 by default);
    the README example sets ROS_TOPIC_STATISTICS_PUBLISH_PERIOD=1. A log without the split (an
    older probe) falls back to per-process sums, and a process with several active nodes is then
    skipped with a warning, repeated at most once a minute (PR #68 review). Off by default;
    rosgraph_monitor_msgs is a new <depend> found QUIET, so a source build without it still
    builds the bridge. Mapping in the pure core (topic_statistic_mapper), 30 unit tests, 6
    bridge integr...
Read more

v0.6.0: rclpy receives, loaned-message counts, tracetools version

Choose a tag to compare

@TanayK07 TanayK07 released this 14 Oct 16:39
fa7fbb1

Receive rates for rclpy nodes, loaned-message counts, and the tracetools version in the banner. pulse-top 0.5.0 reads the loan fields.

Added

  • Receive rates for rclpy and every other non-rclcpp rcl client. The probe now also hooks the
    rmw_take tracepoint, which carries the rmw subscription handle and a taken flag, and counts
    a successful take into the topic's RECV inter rate. The handle maps to the topic through
    rcl_subscription_init, which was already hooked. rcl_take is not used: its tracepoint carries
    only the message pointer and fires even when nothing was taken. rclcpp subscriptions stay on
    callback_start, decided per subscription through rclcpp_subscription_init, so an rclcpp
    delivery is never counted twice, and the intra-process plus external subscriber case (rclcpp
    takes and drops its own DDS copy) does not inflate the rate. Takes on rmw-internal readers and
    empty takes are ignored. Needs an rmw that emits rmw_take: Cyclone DDS and Fast DDS on every
    distro, Connext from Jazzy. On Humble, serialized and loaned takes emit nothing.
  • tracetools version in the startup banner, and a warning on an untested one. The banner now
    ends with tracetools=<version>, read from the tracetools package.xml next to the
    libtracetools.so serving the hooks (the rcl_init tracepoint's version field is added inside
    tracetools, the interposer never sees it). A major other than the ones CI runs (4.x Humble,
    8.x Jazzy to Lyrical, 9.x Rolling) prints a one-line warning; counting still proceeds, since
    upstream deprecates tracepoint arguments rather than removing them.
  • Loaned-message counts per topic (rclcpp#3153 follow-up). A loaned message cannot be told
    apart from a copy at the tracepoint level (Jazzy+ fires the plain rcl_publish tracepoint for
    a loaned publish, only Rolling traces the loaned take, Humble traces neither), so the probe
    now also interposes rcl_publish_loaned_message and rcl_take_loaned_message by name. rclcpp
    calls them only when the middleware can loan, so a successful call is a real loan. New
    additive LOAN <topic> pub|recv hz= text lines and pub_loaned_hz / recv_loaned_hz jsonl
    keys, absent when zero (loan-free logs are byte-identical). They are subsets: TOPIC /
    pub_inter_hz stays the total publish rate on every distro, without double counting the
    Jazzy+ tracepoint, which the probe detects at run time on the first loan. pulse-check's
    reader, pulse-top and pulse-export read the new fields; pulse-export adds
    ros2_pulse_topic_loaned_rate_hertz{side=pub|recv}. The two rcl symbols join the export map
    by exact name; unlike tracepoints their signatures are stable per distro, not promised across
    distros (README Limitations, docs/DESIGN.md). The real functions are found through
    RTLD_NEXT, or through the already-loaded librcl when a plugin loaded it RTLD_LOCAL, so the
    wrappers never turn a working loaned call into an error. Verified end to end on Humble with
    Fast DDS data sharing (test/integration/test_loaned.py), and the same code without the
    profile counts zero loans.
  • pulse-top 0.4.0: pulse-export, Prometheus / OTLP exporter and a Grafana example. A
    second entry point in ros2-pulse-top that tails the probe's jsonl logs with pulse-top's
    follower and parser and serves /metrics in the Prometheus text format on port 9464 from a
    stdlib HTTP server: per-topic publish and callback rate per path, largest gap, recv_lag
    deficit, active warns, node up and last-seen age, per-process window period, age and
    timestamp, and window / warn / skipped-line counters, labelled pid (from
    topic_freq.<pid>.log), topic, node. --otlp URL pushes the same series as OTLP/HTTP
    JSON through urllib (gauges, cumulative sums, UCUM units; checked against OpenTelemetry
    Collector 0.128.0). Absent keys stay absent series, never 0; a process that stops flushing
    loses its topic series after two periods and keeps a growing age. No new dependency.
    examples/grafana/ holds a docker compose (exporter, Prometheus, Grafana) and a provisioned
    dashboard, --demo included; docs page docs/EXPORT.md. default_log_path moved from
    app.py to reader.py so the exporter does not import the TUI. 19 new pulse-top tests.
  • pulse-top 0.3.0: recv_lag warn (issue #50). When a publisher's process and a
    subscriber's process are both probed, pulse-top pairs the topic's publish rate (busier path)
    with its callback rate (inter + intra) and warns once the callbacks sit more than --lag-tol
    (default 10%) and more than two messages per window under the publish rate for
    --lag-windows (default 3) consecutive windows; it clears under half the tolerance and holds
    in between. A publish observation older than 1.5 periods cannot pair, so a dead or idle
    publisher (recv reads an explicit 0.0, KNOWN_ISSUES #12) is not lag; trackers are keyed by
    topic and source log, so a healthy subscriber process does not mask a lagging one, and a warn
    whose subscriber stopped flushing clears by time. Amber in the table (RECV cell), strip and
    Warns tab, with deficit, windows and source file in the sidebar; the text says the probe
    counts callbacks, not wire samples, so it cannot tell a drop from a backlog. Derived by the
    consumer: the probe, its output format, the spec grammar and pulse-check are unchanged.
    Test node mode slow_listener <ms> and test/integration/test_recv_lag.py prove the two
    logs carry the gap and the model derives the warn from them; 21 new pulse-top tests.
  • Blog post, "Watching a ROS 2 topic changes it"
    (docs/blog/2026-09-18-watching-a-ros2-topic-changes-it.md, on the docs site under Blog).

    The observer-effect bench written up for a systems-programming audience: what a subscriber
    costs (hz 7 %, echo 31 % of a core per watched 100 KB topic), why hz on an
    intra-process topic switches serialization on in the watched process (+52 % CPU, 10/10
    trials), how LD_PRELOAD interposition of the ros_trace_* symbols counts in-process
    instead, and what that costs (+1.9 % ± 0.7 % paired). Every number cites its file and line
    in a trailing comment. Two figures under docs/assets/blog/, regenerated from the committed
    CSV by bench/plot_observer_effect.py. site/build.py now rewrites links relative to the
    page's own directory (pages under blog/), and folds ../ in link targets, so a results
    page linking ../../bench/RESULTS.md lands on the benchmarks page instead of GitHub.

Fixed

  • A loaned publisher on Humble had no TOPIC line. Humble's rcl_publish_loaned_message
    fires no tracepoint, so a node publishing through borrow_loaned_message() with a
    loan-capable middleware (Fast DDS with data sharing on) was invisible on the publish side. The
    new loaned-message wrapper (see Added) counts it in the total as well.
  • pulse-top 0.4.1: pulse-top found no files on a default-format stack (issue #58). With the
    probe in .bashrc and no ROS_TOPIC_STATS_FORMAT, every log is in the default text format.
    pulse-top parsed jsonl only, and it redrew the top bar only after a parsed window, so a
    directory of healthy text logs read "0 file(s)" forever even though the glob had matched them
    all. pulse-top and pulse-export now read the text format as well, sniffed per line like the C++
    log_reader, and a text window maps to the same Window its jsonl twin parses to (a line the
    probe did not print stays an absent field, never 0). The top bar is redrawn every tick, puts the
    file count before the path, and a notice line says why the table is empty: no file matches yet,
    N files found and waiting for the first window, or which files are not probe output. The
    follower now keeps blank lines, which close a text window, so no window arrives one period late.
    pulse-export's lines_skipped_total counts only lines that are in neither format.
  • pulse-top 0.4.1: --theme light|dark|terminal and PULSE_TOP_THEME (issue #59). The colours
    were hard-coded for a dark background, unreadable on the white terminals used outdoors. light
    is black on white with warn colours picked to read on white (amber is brown, not yellow);
    terminal paints nothing and uses the terminal's own background and ANSI palette (Textual's
    ansi-dark theme); dark stays the default. The stylesheet now takes every colour from the
    Textual theme. The active tab's label was invisible while the tab bar had focus (purple on
    purple) and is readable again. Textual floor raised to 8.2.7 for the ANSI theme.
  • A publisher frozen by SIGSTOP read as a ~0 ms gap after it resumed. The flush timer
    advanced its deadline one interval per fire, so when the whole probed process was frozen (the
    flush thread with it) it replayed every missed tick back to back on SIGCONT: one window
    carrying the stall, then a burst of ~0-length windows with a near-0 pub_max_dt_ms /
    recv_max_dt_ms and nonsense Hz (50,000 Hz in one run). pulse-top and pulse-export keep the
    latest window, so a 5 s camera freeze showed as a 0.03 ms gap and the topic_gap warn was
    buried. The timer now re-phases instead of replaying: after a stall there is exactly one long
    window holding the full gap (5021 ms on the same repro), then normal cadence, and no window is
    ever shorter than half a period. Same fix on the receive side (a frozen subscriber process).
    The gap accounting itself was already right and is unchanged; the hot path is untouched.
    Regression test Timer.NoCatchUpBurstAfterStall.

Changed

  • docs/ALTERNATIVES.md compares against NVIDIA's greenwave_monitor, the packaged subscriber-based
    monitor a Discourse reader said they were switching from; section plus a positioning-table row.

v0.5.0

Choose a tag to compare

@TanayK07 TanayK07 released this 14 Sep 15:05
3a611b0

Adds an optional /statistics sidecar. The probe itself is unchanged.

Added

  • pulse_bridge (ros2 run ros2_pulse pulse_bridge): tails the probe's jsonl log(s) and
    republishes every window on /statistics as statistics_msgs/MetricsMessage, in the shape
    rclcpp's built-in topic statistics use (unit ms, AVERAGE = message period,
    SAMPLE_COUNT, MAXIMUM = largest gap when measured), so existing consumers of that topic
    read pulse windows, intra-process included, with no integration work. Parameters: files,
    glob (default $TMPDIR/topic_freq.*.log, re-expanded every poll), topic, unit
    (ms|Hz), poll_period_s, source_name. Runs as its own process so the probe stays out of
    the DDS graph and free of rclcpp; package.xml now declares rclcpp and statistics_msgs
    for this executable only. Rate is measured at the subscription when the process has one, at
    the publisher otherwise; inter/intra report the busier path, never the sum. Text-format logs
    are refused with one warning per file. Asked for on ROS Discourse (topic 57637).
  • core metrics_mapper and line_follower: the window-to-sample mapping and the
    incremental line reader behind the bridge, ROS-free so both run in the standalone gtest lane
    (16 tests). test/integration/test_bridge.py covers the message shape, tail-follow of a
    window appended after startup, the Hz unit and text-log refusal (3 tests).
  • apt install instructions. The rosdistro entries for humble, jazzy and kilted merged on
    2026-08-30 and the build farm has published ros-<distro>-ros2-pulse 0.4.1-2 to
    ros2-testing; README now documents apt install plus how to enable the testing repository
    before the next sync to the main ROS 2 repository.
  • Social preview card (docs/assets/social-preview.png). Used as the repository's social
    preview and as og:image / twitter:image on the docs site, so links to either render a
    real card instead of GitHub's default. The docs metadata lives in site/overrides/main.html,
    wired up with theme.custom_dir.

Full changelog: https://github.com/TanayK07/ros2_pulse/blob/main/CHANGELOG.md

v0.4.1: packaging fix for the apt release

Choose a tag to compare

@TanayK07 TanayK07 released this 23 Aug 15:40
028d093

Packaging fix, no behaviour change: babeltrace is no longer a declared test dependency (no RHEL rosdep mapping; it blocked RPM generation for the build farm). The LTTng coexistence test skips without a trace viewer; CI installs babeltrace2 explicitly. Full notes in CHANGELOG.md.

v0.4.0: pulse-top live dashboard, Orin-validated aarch64 numbers

Choose a tag to compare

@Tanay10x Tanay10x released this 23 Aug 06:47

Launch release: the live dashboard lands, and every performance claim now has an aarch64
row behind it: v0.3.0 was run on a production Jetson AGX Orin and the numbers, raw trials
and a redacted production log are committed. pulse-top was then fixed against that very log.

Added

  • pulse-top (tools/pulse-top/): live terminal dashboard over the probe's jsonl log
    (pip install ./tools/pulse-top, command pulse-top). A pure log consumer (no ROS
    dependency, no node, no subscriptions), so watching costs the probed system nothing and
    works over ssh or on a dead log post-mortem, unlike graph-joining monitors (ros2top,
    ornis, ...), and it sees the intra-process rates only the in-process probe can measure.
    Topics table with 60-window sparklines and warn-colored rows, namespace tree, node
    liveness, and a retained structured-warns view with ages (a one-window stall stays
    readable instead of blinking for one window period). Two rules carried into the
    UI: an absent jsonl key renders as — (never 0), and a topic absent from the current
    window renders as stale <age>, never as its old rate. Hardened by review (#32/#33):
    byte-exact tail-following (rotation/truncation-safe, partial multi-byte holds),
    tail-seek attach with a per-poll read cap, and log-derived text rendered without any
    markup parsing so a hostile or corrupt log cannot crash the viewer. pulse-top --demo
    runs a scripted-incident graph; 36 tests (model, byte-exact reader, headless pilot) plus a
    hostile-log smoke run in a dedicated no-ROS CI lane.
  • On-Orin validation (test/orin/RESULTS.md, raw under test/orin/out/): v0.3.0 run on a
    production Jetson AGX Orin (L4T R36.4, Humble/CycloneDDS, 77 nodes). Hot-path bench on
    aarch64: 0.9 ns/op fixed, 2.1 ns/op alternating; the opt-in jitter clock read costs
    +51 ns/msg ± 0.6 (x86: +24) and the CLOCK_MONOTONIC vDSO works; the syscall-fallback
    risk from the R5 design is closed. Probe loaded into every process of the deployed stack on
    stock binaries, 0 sockets, all v0.3.0 features (JITTER, jsonl, QUIET) verified on
    target. Production log committed with operator node/topic names redacted. README, bench
    results and the R5 design note carry the aarch64 numbers.
  • test/orin/run_orin_probe_test.sh honors ROS_TOPIC_STATS_OUTPUT_FILE and records process
    names with the CPU samples so ON/OFF runs can be matched across a stack restart.
    ORIN_RUNBOOK.md Phase 0 no longer needs git credentials on the robot.

Fixed

  • pulse-top on a multi-process stack. Staleness was counted in windows, but windows from
    every probed process interleave (77 nodes ≈ 15 windows/s), so a healthy 5 Hz topic read
    stale 3w and every row re-rendered every tick; /tf_static lost its PUB rate whenever a
    subscriber's window landed; the sparkline took one sample per process-window instead of per
    period; and the default path followed only the newest topic_freq.<pid>.log, one node of
    the graph. Now: staleness is wall time from the window timestamps (stale 12s past
    1.5× the topic's window), publish and receive sides merge per topic, one history sample per
    period, every matching per-pid file is followed (new ones picked up live), and only cells
    whose text or style changed are pushed to the table; Textual's DataTable.update_cell
    invalidates and refreshes unconditionally, so the idle repaint cost over ssh is now zero.
    Found on the Orin run (2026-08-23).

Full numbers: bench/RESULTS.md, test/orin/RESULTS.md.

v0.2.0: hardening, expected-rate alerting, three-distro CI

Choose a tag to compare

@TanayK07 TanayK07 released this 02 Aug 05:52

Hardening release: two full test-first audit rounds (15 issues found, fixed and
regression-tested) plus a review round on R1 (7 more), the Iron+ publish-side intra tracepoint,
expected-rate alerting, a three-distro CI matrix, and benchmarks with error bars.

Added

  • Expected-rate alerting (ROADMAP R1): ROS_TOPIC_STATS_EXPECTED spec file (documented
    YAML subset, zero-dependency parser), flush-time WARN TOPIC / WARN NODE lines with both
    lifecycle transients grace-skipped (attach ramp-up and the atexit window), and the no-ROS
    pulse-check CLI (exit 0/1/2) for watchdogs/CI, with --skip-last for post-run gates.
  • One topic may carry several rules when they constrain different endpoints, so "the driver
    publishes ~20 Hz and we receive ~20 Hz" is one spec; rules are deduplicated on
    (topic, side, transport) rather than topic name.
  • Publish-side intra-process rates on Iron+ (ROADMAP R3): the probe hooks
    rclcpp_intra_publish and emits an additive PUB <topic> inter=… intra=… line (on Humble
    the tracepoint doesn't exist; receive-side intra still covers it).
  • CI matrix: blocking industrial_ci lanes on ros:humble / ros:jazzy / ros:kilted plus a
    non-blocking rolling lane, and three standalone core lanes (fast / TSan / ASan+UBSan).
  • Size-based output rotation (ROS_TOPIC_STATS_MAX_BYTES, default 10 MiB, <path>.1).
  • Per-process default output path (topic_freq.<pid>.log).
  • Stall visibility: proven receive endpoints emit an explicit RECV … 0.000000 line.
  • Idle-topic suppression by default with ROS_PULSE_EMIT_IDLE=1 opt-in.
  • docs/: KNOWN_ISSUES tracker (15 issues, all fixed), ROADMAP,
    ALTERNATIVES (CARET / diagnostic_updater / rclpy positioning), DESIGN.

Fixed

  • First window reported up to ~2× Hz (timer first-fire off-by-one + nominal instead of
    measured window denominator).
  • Exit-time use-after-free: tracepoints firing during static destruction (leaky-singleton
    runtime + atexit final flush).
  • fork() without exec: child inherited a dead flush thread and never wrote counts
    (pthread_atfork quiescence + rwlock reinit + child re-arm).
  • Same-process pub+sub double-count: counters split into pub/recv × inter/intra buckets.
  • Env parsing could std::terminate the host on malformed values (noexcept whole-token
    parsers with fallbacks).
  • Probe exported 74 symbols into every preloaded process; now exactly the 8 ros_trace_*
    interposers (visibility flags + linker version script, pinned by CI).
  • Thread-local hot-path cache: single-entry thrash (round 2), then stride-aliasing at
    realistic allocator layouts (round 3), now 256 slots with a stride-breaking hash
    (~0.3-1.2 ns/op; end-to-end cost bounded in bench/RESULTS.md).
  • transport: any on side: pub summed the two publish buckets, but one publish() fires
    both rclcpp_intra_publish and rcl_publish for the same message on Iron+ whenever a
    non-intra subscriber is matched (or the QoS is TransientLocal, Jazzy+), so a healthy 50 Hz
    intra-process publisher read as 100 Hz and tripped max_hz. Now the larger bucket; receive
    side keeps the sum, where the buckets are disjoint deliveries.
  • Expected-rate alerting judged the atexit window, so a graceful stop could log
    WARN TOPIC … hz=0.000000 on a perfectly healthy stack: a sub-period tail makes
    count/window_s a one-sample estimate. Both transients are now skipped; rates still logged.
    pulse-check judged that same window, which broke the post-run CI gate the README
    advertises; use --skip-last there.
  • A bad ROS_TOPIC_STATS_EXPECTED path could stall or balloon the host inside rcl_node_init:
    character devices never reached EOF, a FIFO blocked forever in fopen, an oversize file was
    read whole (2.76 s and 2.05 GiB RSS for 2 GiB, per process), and a directory yielded empty
    text that parsed as a valid zero-rule spec, so alerting silently armed as a permanent no-op.
    Spec files are now S_ISREG-gated, opened non-blocking and capped at 1 MiB, and a spec with
    no rules warns and disables. Shared with pulse-check, so --spec /dev/zero fails fast.
  • A leading UTF-8 BOM made a Windows-authored spec fail with an error visually identical to a
    misspelled key (the bytes render invisibly), silently disabling alerting.
  • A key repeated inside one rule ({min_hz: 1, min_hz: 2}) silently last-won instead of erroring.

Changed

  • Benchmarks rewritten with paired, order-alternated trials and SEM error bars across all
    three distros: ≈ +2 % workload CPU at a harsh 4,900 msg/s stress (pooled
    +1.9 % ± 0.7 %), with controlled attribution; this replaces the earlier "within noise" claim.
  • README: compatibility matrix, measured overhead figures, positioning vs CARET/eBPF/LTTng.
  • The [ros2_pulse] active banner reports spec=N topics, M nodes, or spec=none for every
    path that disables alerting: unset, unreadable, malformed, or no rules.
  • pulse-check documents that it sums receive rates across logs, so K subscriber processes on
    one topic report K× the publish rate: bound side: recv with min_hz for liveness and put
    max_hz on side: pub.

Upgrade note

A side: pub rule with the default transport: any now reports the true produce rate instead
of the inter+intra sum. On Iron+ with intra-process comms enabled, specs whose bounds were
tuned against the doubled figure will need their max_hz (and any min_hz above the real rate)
revisited. Humble is unaffected; it has no publish-side intra tracepoint.

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

Choose a tag to compare

@Tanay10x Tanay10x released this 20 Aug 08:36

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.