Skip to content

Feature/ops tools - #48

Merged
SoleyRan merged 6 commits into
mainfrom
feature/ops-tools
Oct 29, 2026
Merged

SoleyRan merged 6 commits into
mainfrom
feature/ops-tools

Conversation

@SoleyRan

Copy link
Copy Markdown
Owner

No description provided.

SoleyRan and others added 6 commits October 27, 2026 21:13
- demo/scheduled_service_demo.cpp: a map component serves segment costs
  from a service trigger, and a planner sums a route with CallAsync on a
  single scheduler worker, triggered again by each reply. A second part
  makes the same call with a blocking Call, which times out because the
  map cannot get the worker the planner holds. Runs as a ctest.
- Server::ServePending returned requests taken, counting ones dropped
  unhandled because their client deadline had passed. It now returns
  requests handled; the budget still counts every request taken, so a
  backlog of expired requests cannot stretch a pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nodes in a system manifest can now say how a supervisor should treat
them:

- restart: "never" (default), "on_failure", or "always"
- max_restarts: restarts allowed before giving up (default 5; 0 = no limit)
- restart_delay_ms: wait before a restart (default 500)
- required: whether a node that exits for good stops the whole system
  (default true)
- stop_timeout_ms: grace period between asking a node to stop and
  killing it (default 5000)

Values are validated with errors naming the field.
`puppet_master_config system describe` prints them. They are read by the
launcher in the next commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Supervisor starts a manifest's nodes in order, restarts them by their
restart policy with a doubling delay (reset, along with the restart
count, by a stable run), ends the system when a required node ends for
good, and stops the rest in reverse order: a stop request, then a kill
after stop_timeout. Each node runs in a process group of its own and
can log to <log-dir>/<node>.log.

Process handling sits behind ProcessLauncher (posix_spawnp on POSIX,
CreateProcess with CTRL_BREAK on Windows), so the policy tests use fake
processes. Applications now also stop on SIGBREAK, which is how the
launcher stops a node on Windows.

The vehicle pipeline integration run now starts the system with
puppet_master_launch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
list shows the shm topics on this host from their segment headers
(Linux), or with --system the topics a manifest's nodes declare and
which components write and read them. echo prints each message's
sequence, size, latency, and bytes; hz reports the rate, intervals by
publish time, and losses per window.

echo and hz subscribe as an ordinary reader queued to the ring size,
so they never slow a writer; what they fall behind on is reported as
lost. With --system the type and ring size come from the manifest,
which also works on Windows and before the writer starts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
RecordingWriter and RecordingReader (transport/recording.h, core
library) store messages of several topics in one file: topic records
with the name, descriptor, and free-form parameters, then message
records with the topic id, time since the start, sequence, and
payload. Readers stop cleanly at a record cut off by a crash, skip
unknown record kinds, and refuse other format versions.

puppet_master_topic gains record (every shm topic found, or those
named; --count, --duration-ms), replay (all or named topics, at the
recorded pace times --rate, with the recorded domain and ring size or
--domain), and info. The recorder stores publish times so a replay
keeps the writers' pace, and reports what it lost per topic.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@SoleyRan SoleyRan self-assigned this Oct 29, 2026
@SoleyRan
SoleyRan merged commit 78e81d0 into main Oct 29, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant