Fleetroll MVP streamlines host state visibility and configuration management. It's a tool for auditing, monitoring, and managing Linux and macOS hardware (i.e. long-running) hosts in the Mozilla FirefoxCI Taskcluster environment using Puppet. It's designed for the Mozilla Release Operations team.
Fleetroll MVP spec: specs/README_FleetRoll_MVP.md
See the documentation index for operational guides, reference contracts, designs, and historical material.
Fleetroll MVP aims to solve the problems mentioned in Problem Statement section of the Fleetroll (non MVP) spec (specs/FleetRoll_Product_Spec_v5.md).
Fleetroll MVP current functionality includes:
- host file management: files critical to the deployment process
- override file management: read/set/unset actions
- set performs file syntax validation
- vault.yaml file management: read/set actions
- audit logging: all write (set/unset) operations are logged
- override file management: read/set/unset actions
- host data collection
- override and vault.yaml information, uptime, and other various system metrics.
- puppet run metadata generation and collection: collector script gathers data generated via provided shell function
- ensures a more positive confirmation that an override or git sha has been applied
- taskcluster data collection: gathers data on connectivity and job status on monitored hosts
- reporting: view all (or almost all) of the collected data
- two display modes: live-updating interactive curses TUI or non-interactive single report mode
- includes columns to help make a decision about the state of a rollout
Fleetroll MVP lacks the full features of Fleetroll including:
- fleet management (integration with other datasources, global state database, ingestion of hosts)
- orchestration of the rollout process
- define a rollout including branch to test (to generate the override) and an optional vault.yaml, rollout speed, hosts
- start/stop/pause/rollback the rollout
- monitoring of the rollout process
- distributed application architecture
- network-accessible API with authentication and authorization
- persistence / data store
For background on the puppet lifecycle in our environment, see docs/puppet-execution-mechanisms.md.
Fleetroll uses a puppet state metadata file for ground-truth tracking of what puppet has actually applied on each host. This eliminates the need for complex timestamp-based heuristics when verifying rollout health.
Location: /etc/puppet/last_run_metadata.json (Linux), /opt/puppet_environments/last_run_metadata.json (macOS)
What it does:
- Written automatically by the puppet wrapper script after each run
- Contains git SHA, override SHA, vault SHA, success status, and timestamps
- Read by
fleetroll gather hostvia SSH to populate monitor data - Supports checksum-based convergence checks and expected-revision comparisons
Integration:
- Reference implementations available in
references/directory - See
docs/reference/puppet-state-tracking.mdfor complete details - See
references/README.mdfor deployment guide
A modern terminal emulator is required for the curses-based monitor interface:
- WezTerm: Works well (recommended)
- Ghostty: Works well (minor help menu rendering issue)
- Traditional terminals (Terminal.app, older xterm) may have display issues
FleetRoll supports both Linux and macOS (Darwin) hosts with automatic OS detection:
- Linux: Uses paths
/etc/puppet/ronin_settings(override),/root/vault.yaml(vault) - macOS: Uses paths
/opt/puppet_environments/ronin_settings(override),/var/root/vault.yaml(vault) - Both: Use
/etc/puppet_role(role)
Paths are automatically detected based on the remote host's operating system.
Install dependencies with the following commands.
# install uv (https://docs.astral.sh/uv/getting-started/installation/)
curl -LsSf https://astral.sh/uv/install.sh | sh
# install python deps
uv sync
# if you run `source ./.venv/bin/activate` to activate the uv venv you can drop
# the `uv run` from fleetroll commands (below and in general).fr is a shortcut for fleetroll: use uv run fr <command>, or
fr <command> when the virtual environment is activated.
Refer to --help for complete usage.
Commands are grouped by resource: host, override, vault, note, gather,
fleet, rollout, data, and debug; web stands alone. For example,
fr override --help lists override actions. fr is a shortcut for fleetroll.
The former flat command names remain supported as hidden compatibility aliases.
Use fr gather all HOST_OR_FILE for combined host, Taskcluster, and GitHub
collection; the legacy fr gather HOST_OR_FILE spelling also works. The gather
action names all, host, tc, and gh are reserved: use ./host for a file
named host, or a FQDN for a hostname matching an action name. Action options
follow the action, for example fr gather all --quiet hosts.list.
# gather mac data (host data, TC data, and Git data)
./tools/gather-generic.sh configs/host-lists/mac/all.list
# you can use `watch` to run this every X minutes
# display data in an interactive TUI
uv run fleetroll host monitor configs/host-lists/mac/all.listData has to be gathered before running reports.
Running these with watch -n 300 <command> is how I'm currently using them. In the future, there may be a command that runs both scans regularly on a set of hosts.
The gather host command stores host observations in SQLite (~/.fleetroll/fleetroll.db) and places all observed overrides and vault.yamls in ~/.fleetroll/overrides and ~/.fleetroll/vault_yamls.
# audit a single host
uv run fleetroll gather host t-linux64-ms-238.test.releng.mdc1.mozilla.com
# audit several hosts in one invocation
uv run fleetroll gather host t-linux64-ms-001 t-linux64-ms-173
# audit a list of hosts
uv run fleetroll gather host configs/host-lists/linux/all.listgather host accepts one or more hostnames, or a host-list file. When gathering
multiple hosts, pass all hostnames in the same command; use a host-list file for
larger sets.
Linux/macOS gathers also store versioned configuration collection evidence for Puppet metadata, override and vault files. It distinguishes absence from failed reads, checks snapshot stability, and retains prior component evidence with its original timestamps after partial failures. See configuration evidence for the JSON contract and producer limitations.
Monitor text snapshots and the web view use CONFIG, ACTIVITY, VERIFY_AGE,
and VERIFY_WHY to report configuration verification, linked TC activity, and
source freshness. JSON publishes verification schema v1 with component reasons
and provenance.
Use --filter 'config=not_verified|unknown' for configuration review. Existing
HEALTHY/PP_MATCH queries keep their compatibility meanings. See
configuration verification,
including why producer v1 null checksums can leave no-override hosts unknown.
Use configs/host-lists/linux/all.list for Moonshot operations. It is generated
solely from the maintained all_moonshots.list in the same directory; regenerate with
uv run tools/generate_all_host_lists.py. The old OS, half, canary, and batch
lists have been removed. Mac and Windows host lists keep their existing sources.
Use the baseline with monitor filters for current selections:
uv run fleetroll host monitor configs/host-lists/linux/all.list \
--filter-file configs/filters/linux-2404.yaml
uv run fleetroll host monitor configs/host-lists/linux/all.list \
--once --filter-file configs/filters/linux-unobserved.yamlThe Ubuntu views infer assignment from the last observed role; they do not verify
OS version or freshness. Failed gathers can retain an old role. Inspect the
unfiltered baseline and evidence ages as well: a filtered view can omit hosts
whose assignment is unknown. Refresh with gather host and gather tc after a
rebuild or pool change. Baseline completeness is unverified; successful selection
or fresh data does not establish complete fleet coverage. See
filtering and saved selections.
Gather also accepts --filter QUERY or --filter-file FILE.yaml directly:
# select from hosts already known to the local database
uv run fleetroll gather all --filter 'override=present' --quiet
# restrict the same selection to the Moonshot baseline
uv run fleetroll gather all configs/host-lists/linux/all.list \
--filter 'override=present' --quietWithout a host/file argument, a filter is required. Combined collection selects once for both host and TC steps; zero matches succeed without collection. Selection uses recorded evidence and can retain old state after failed gathers; it does not discover unobserved hosts or establish freshness. The tmux launcher collects override-selected Linux hosts every three minutes and the whole Linux baseline every ten minutes. See gather selection.
# fetch TaskCluster worker data for hosts (stores in ~/.fleetroll/fleetroll.db)
uv run fleetroll gather tc configs/host-lists/linux/all.list
# verbose output (shows API calls)
uv run fleetroll gather tc -v configs/host-lists/linux/all.listFor Linux and macOS, gather host records the configured Taskcluster worker
identity (provisioner, pool, group, and worker ID). gather tc uses that identity,
so new roles and pools do not need entries in Fleetroll's role mapping. Refresh
host observations after changing worker configuration. Configuration identifies
which worker to query; it does not establish that the worker is running.
Older observations without identity collection metadata use the legacy
role/override mapping with a warning. An explicit identity collection failure
requires a successful gather host refresh; Fleetroll does not fall back to a
possibly outdated pool. Unresolved hosts, missing workers, and API failures make
gather tc exit nonzero, including in quiet mode. Successful hosts are still
saved, and failed hosts retain their previous TC observation timestamps.
The latest completed lookup attempt is stored separately for each requested host,
including failures. Monitor JSON exposes that result and its queried identity
without refreshing the retained successful observation's timestamp. See the
monitor JSON contract for lookup statuses and migration.
Quiet mode prints status, collected/requested counts, and elapsed time in at most
80 characters. Use
uv run fleetroll gather tc -v <host-list> for per-host diagnostics.
See worker identity collection for configuration sources and supported launch configurations.
Linux gather host also records optional, bounded gwhc diagnostics. In monitor
text snapshots and the web view, columns GW_RUN, DISK, and GWHC_AGE show
generic-worker process evidence, filesystem free space, and observation age.
Missing checks remain unknown and evidence is
stale after 15 minutes. See recorded diagnostics
for thresholds, query fields, timestamps and JSON contracts.
For SSH-unreachable hosts, monitor JSON also exposes a durable historical worker
identity with its original timestamp and contradiction signals. An explicit
uv run fleetroll gather tc --use-historical-identity HOST_OR_FILE queries that
exact identity without changing normal lookup behavior. Historical lookup success
does not clear contradictions or authorize recovery. See the
version 3 historical identity contract.
fleetroll rollout report groups hosts within a role into verified master
and each distinct override, then compares their recent Taskcluster outcomes.
The same report works after overrides are removed: no special mode is needed.
Refresh the relevant hosts and GitHub references first:
uv run fleetroll gather all configs/host-lists/linux/all.list
uv run fleetroll rollout report --role gecko_t_linux_2404_talos
# Pool selection keeps different roles/pools separate
uv run fleetroll rollout report --worker-type gecko-t-linux-talos-2404
# Explicit hosts, including hosts whose overrides were removed
uv run fleetroll rollout report t-linux64-ms-016 t-linux64-ms-017 --jsonThe report includes outcome totals, rates, applied revisions, task-name failure
patterns, and pairwise differences against master over shared time windows.
It also gives master and each override an independent health statement based on
their verified report-window tasks, including when no control cohort is available.
This works while deploying overrides or removing them, without choosing a direction.
Only jobs attributable to verified applied configurations enter comparisons;
unknown jobs remain visible as exclusions with coverage counts. Missing controls,
small samples, and incomplete evidence are explicit, not automatic approval.
Defaults are a 24-hour report window, a one-hour observation-gap bound, 20 finished
tasks per comparison side, and an 80% attribution coverage warning threshold.
Low attribution qualifies the observed result without blocking a comparison;
unattributed failures inside its shared window are highlighted separately. Use --help
for time-window, evidence-threshold, and per-host detail options.
SQLite retains ten full observations per host and a compact 30-day configuration
timeline. Stable scans extend existing spans; transitions, failures, and writes
preserve uncertainty boundaries. Reports expose the retention cutoff, provenance,
and unknown ranges. See compact configuration history
for the evidence contract and measured storage costs. Use repeatable
--observations-file saved-gather.json options to supply saved gather-host or
host-monitor JSON when older convergence evidence or finer observation anchors are needed. The report
reads these snapshots without modifying the database.
The report uses local Taskcluster credentials in ~/.tc_token and queries at most
20 recent task runs per host. Full windows warn that earlier jobs may be omitted.
Exit 1 indicates classified task failures/unknown outcomes or query errors;
exit 2 indicates invalid input or unavailable local evidence. Exit 0 is not a
rollout go-ahead. See rollout report for the
history model, limitations, and versioned JSON schema.
Complete Puppet history can also support a task when historical host identity collection was unavailable, using Queue-verified identity for that exact run. This requires a fresh observed host identity for querying and preserves write, conflict, transition, and gap boundaries. JSON identifies the proof method and limits identity coverage to the task window; current host verification remains separate. See independent task identity proof.
uv run fleetroll rollout compare-pools \
--candidate-pool releng-hardware/gecko-t-linux-talos-2404-tc-v115 \
--baseline-pool releng-hardware/gecko-t-linux-talos-2404The comparison uses one fixed time window and Fleetroll's recorded worker
population. It shows observed and configuration-attributed outcomes on both
sides, then compares verified tasks with matching names and Puppet roles. Exact
names take precedence; unmatched replay names automatically try a Replay:
prefix fallback, with its use reported. Use --exact-task-names to disable it.
Use --details for worker and workload breakdowns, or --json for the versioned
comparison contract. Small samples, workload differences, missing workers and
attribution limits remain visible. See pool comparison
for selection rules, limits and exit status.
data freshness reports host-audit and Taskcluster observation freshness
separately. Producing a report exits successfully even when data is stale or
missing; use --require-fresh when freshness is a prerequisite for automation.
# Human-readable report for a host population
uv run fleetroll data freshness configs/host-lists/linux/all.list
# Fail closed unless every host has fresh host and TC data
uv run fleetroll data freshness \
--min-fresh-pct 100 \
--require-fresh \
--json \
configs/host-lists/linux/all.listTaskcluster freshness uses the stored observation timestamp, not the worker's last-activity timestamp.
Fleetroll uses a hybrid storage architecture optimized for different data access patterns:
| Data | Storage | Location |
|---|---|---|
| Audit log (set/unset/vault ops) | JSONL (append-only) | ~/.fleetroll/audit.jsonl |
| Host observations | SQLite | ~/.fleetroll/fleetroll.db |
| TaskCluster workers | SQLite | ~/.fleetroll/fleetroll.db |
| GitHub refs | SQLite | ~/.fleetroll/fleetroll.db |
| Override content | Content-addressed files | ~/.fleetroll/overrides/ |
| Vault YAML content | Content-addressed files | ~/.fleetroll/vault_yamls/ |
SQLite features:
- WAL mode for concurrent reader/writer access
- Hybrid schema: indexed lookup columns + JSON blob for full record
- Retention: keeps latest N records per key (default 10)
- Maintenance:
fleetroll data maintainperforms WAL checkpoint + VACUUM
uv run fleetroll host monitor configs/host-lists/linux/all.list --once# list hostnames matching an override filter (e.g. audit a specific override rollout)
uv run fleetroll host monitor --filter 'ovr_bch~05032026-1804-resolverd-wedging' --once configs/host-lists/linux/all.list --hostname-onlyFilters are space-separated conditions (all must match). Each condition is COLUMN OP VALUE.
Operators
| Op | Meaning |
|---|---|
~ |
contains (case-insensitive substring) |
= |
equals |
!= |
not equals |
> < >= <= |
numeric for time columns, lexicographic otherwise |
Columns
| Column | Aliases | Type | Description |
|---|---|---|---|
host |
string | hostname | |
os |
string | operating system | |
role |
string | Puppet role | |
override |
string | Recorded file presence: present / absent; unknown evidence matches neither |
|
ovr_bch |
ovr_branch |
string | Raw override branch; excludes checksum and worker-pool annotations |
ovr_checksum |
ovr_sha_full |
string | Full override file checksum: = exact, ~ substring (including prefixes) |
sha |
ovr_sha |
string | Legacy formatted override branch / SHA text, including annotations |
wt_ovr |
string | override sets a TC worker pool: y/n/- (filter-only †) |
|
vlt_sha |
string | vault SHA | |
uptime |
duration | host uptime | |
pp_last |
duration | time since last Puppet run | |
pp_sha |
string | SHA Puppet last applied | |
pp_exp |
string | expected SHA | |
pp_match |
string | Puppet SHA match status | |
tc_act |
duration | TaskCluster last activity | |
tc_j_sf |
tc_t_dur |
duration | TC job time since finish |
tc_quar |
string | TC quarantine status | |
pool |
string | actual TC worker pool name (filter-only †) | |
data |
duration | max(audit age, TC age) | |
healthy |
health |
string | recorded revision/vault/activity signal (y/n; empty for unknown) |
note |
string | notes |
Time columns (pp_last, tc_act, uptime, tc_j_sf, data) accept duration values like 20h, 90m, 2d.
† wt_ovr and pool can be filtered/sorted on but are not shown as columns in the display yet (e.g. wt_ovr=y, pool~bug2031822).
Fleetroll compares the Puppet revision reported by a host (PP_SHA) with the
expected branch revision fetched by gather gh (PP_EXP). For an override that
points to a private GitHub repository, Fleetroll's local GitHub API token must
have read access to that repository. The host's own Git credentials do not
provide access to the local gather gh process.
If gather gh cannot fetch the private branch, the override branch and applied
Puppet revision can still appear, but PP_EXP, PP_MATCH, and HEALTHY show
- when no expected revision is stored. This means Fleetroll cannot determine
health from its current data; it does not mean Puppet failed. To enable the
comparison, configure a token with repository read access under [github]
api_token in ~/.fleetroll/config.toml, then run
uv run fleetroll gather gh --override-delay. HEALTHY becomes Y only when
Puppet successfully applied the expected revision and Taskcluster activity is
less than one hour old. On Linux/macOS it also requires equal, valid full deployed
and Puppet-applied vault checksums. A vault mismatch changes an otherwise positive
result to N; missing vault evidence changes it to -. PP_MATCH remains the
revision comparison; Windows keeps its separate pool-hash/activity check.
Older observations without the applied vault checksum can no longer produce
HEALTHY=Y on Linux/macOS. Refresh host observations after Puppet has run with a
metadata-writing wrapper. healthy=n excludes unknown rows; healthy!=y includes
both negative and unknown rows, and healthy= selects unknown. This remains a
recorded signal: inspect DATA and collection status separately. See
rollout verification for its limits.
Special syntax
col=— match rows where column is missing/emptycol!=— match rows where column has a value- For
data, a value means at least one parseable host-audit or Taskcluster age;?/-and-/-count as empty. os=M|L— pipe-separated alternatives for=and!=sort:COL[:asc|desc][,COL...]— sort by one or more columns (unknown values sort last)
Examples
# hosts where Puppet hasn't run in over 20 hours
healthy=n pp_last>20h
# hosts with a specific override branch
ovr_bch~05032026-1804-resolverd-wedging
# hosts whose worker pool is set by an override (or in a specific pool)
wt_ovr=y
pool~bug2031822
# Linux hosts sorted by most-stale Puppet run
os=L sort:pp_last:desc
# hosts with no note set, sorted by TC activity
note= sort:tc_act:desc
# hosts running either macOS or Linux
os=M|LWith --once --json, monitor emits one JSON object keyed by full hostname,
even when selecting a single host. Each value preserves raw host audit fields
and adds configured worker pool,
host-collected identity, and Taskcluster evidence with timestamps and statuses.
Use .["hostname"] to select a host or .[] to iterate over host values;
numeric indexing such as .[0] requires an array. Convert the values to an
array with [.[]] if needed.
See the versioned monitor JSON contract for examples,
follow-mode semantics, and automation migration guidance.
See tool integrations for consumers, supported interfaces, ownership, and compatibility coordination when changing these contracts.
# emit one snapshot object keyed by full hostname instead of a table
uv run fleetroll host monitor configs/host-lists/linux/all.list --once --json
# select one host's observation timestamp and raw audit fields
uv run fleetroll host monitor t-linux64-ms-226.test.releng.mdc1.mozilla.com --once --json \
| jq '.["t-linux64-ms-226.test.releng.mdc1.mozilla.com"] | {ts, observed}'
# extract unique roles across all hosts
uv run fleetroll host monitor configs/host-lists/all.list --once --json \
| jq -r '[.[].observed.role] | map(select(.)) | unique[]'
# extract unique operating systems across all hosts
uv run fleetroll host monitor configs/host-lists/all.list --once --json \
| jq -r '.[].observed.os_type' | sort | uniquv run fleetroll host monitor configs/host-lists/linux/all.list
# keys: q quit, up/down (or j/k) scroll, left/right horizontal scroll, PgUp/PgDn pageOVR_BCH colors group overrides with identical literal settings, ignoring comments,
blank lines, assignment order, spacing, and quote style. Every active variable
(including repo, branch, mail, and worker type) and its export flag participates.
Files containing shell expressions, repeated assignments, or unavailable local
contents fall back to checksum-based colors. This is a conservative comparison
without executing shell code. Displayed checksums and Puppet convergence checks
continue to use the exact file bytes; matching colors do not establish application
success. The finite palette can reuse colors for different configurations.
Left/Right (or h/l) jump between columns, keeping HOST and its separator
frozen. Columns wider than the viewport use overlapping sections so their full
content is readable; this works the same for ROLE, NOTE, and every other column.
Partial columns remain visible at the screen edges. The header shows the
visible column range. Column widths reflect all filtered hosts, including hosts
on other pages.
# single process (uses pre-built frontend)
uv run fleetroll web
# open http://localhost:23847
# dev mode (live frontend reloading)
uv run fleetroll web --dev # terminal 1
pnpm --dir web dev # terminal 2
# open http://localhost:5173To rebuild the frontend after changes: pnpm --dir web build
Create an override from an upstream branch, a PR number, or a GitHub PR URL:
uv run fleetroll override create my-branch
uv run fleetroll override create my-branch --worker-type gecko-t-linux-talos-2404-tc-v115
uv run fleetroll override create 123 --output-dir configs/overrides
uv run fleetroll override create https://github.com/mozilla-platform-ops/ronin_puppet/pull/123 --output rollout.overrideThe command verifies the exact branch exists before creating the file, resolves
fork repositories for PRs, and refuses to overwrite existing files. It requires
git and network access, plus gh for PR inputs. Output defaults to a generated
filename in the current directory; parent directories must already exist.
tools/create_override.sh remains a wrapper with configs/overrides as its
default output directory. Without --worker-type, generated files leave the worker
type assignment empty and commented out, and use the usual base filename. With
--worker-type <type>, the file sets WORKER_TYPE_OVERRIDE and its generated name
ends in -wt-<type>.override (for both branch and PR inputs). Pass a bare worker
type, without a provisioner prefix. An explicit --output path is used exactly
as supplied, including when a worker type is set. Verify that the worker type
matches every target host's role before deployment.
When an override sets WORKER_TYPE_OVERRIDE, override set checks each
host's latest successful recorded role against its normal worker type. The base
type or a nonempty hyphenated suffix is accepted. Unknown roles and mismatches
block the entire deployment; use --allow-worker-type-mismatch for intentional
exceptions. Previews show the role observation timestamp so operators can decide
whether to refresh with gather host. There is no freshness cutoff or automatic
refresh. See worker type safety for details.
Summarize override coverage for a recorded Puppet role or Taskcluster pool:
uv run fleetroll fleet status --role gecko_t_linux_2404_talos
uv run fleetroll fleet status --worker-type releng-hardware/gecko-t-linux-talos-2404 --json
uv run fleetroll fleet status --role gecko_t_linux_2404_talos configs/host-lists/linux/all.listBoth commands accept a bare worker type, which defaults to the releng-hardware
provisioner, or an explicit provisioner/worker-type.
Percentages use confirmed matching hosts as the denominator. Unknown membership,
failed refreshes, and Fleetroll writes awaiting verification are reported separately.
The latest successful observations are used regardless of age; manual changes after
an observation may not be reflected. Without a host list, the population consists of
hosts identifiable from Fleetroll's recorded observations.
Use --verbose to show host lists, or --json for machine-readable details.
Both fleet status and rollout report fetch the current approximate number of
pending Taskcluster tasks for each effective worker pool. Counts cover the whole
pool, including workers outside the selected hosts or role, and include a fetch
timestamp. Pools are resolved from recorded worker identities, with legacy
role/override mapping for older observations. Queue lookup failures appear as
unavailable and do not prevent the recorded report from rendering or change its
exit status. Public queue counts need network access but no Taskcluster credentials
(rollout report still needs credentials for its worker/task queries).
# show stored override contents by sha prefix or human hash
uv run fleetroll override show 0328af8c9d6f
uv run fleetroll override show freddie-arkansas
# set override (single host)
uv run fleetroll override set --from-file ~/.fleetroll/overrides/0328af8c9d6f t-linux64-ms-229.test.releng.mdc1.mozilla.com
# select a rollout population from recorded data; inspect it before deployment
uv run fleetroll host monitor configs/host-lists/linux/all.list \
--once --hostname-only --filter 'role=gecko_t_linux_2404_talos' \
> /tmp/rollout-targets.list
cat /tmp/rollout-targets.list
# preview override deployment/removal for the reviewed selection
uv run fleetroll override set --from-file ~/.fleetroll/overrides/0328af8c9d6f /tmp/rollout-targets.list
uv run fleetroll override unset /tmp/rollout-targets.listRemove an override population directly using a monitor query:
# Preview and save the exact selected hosts and deployed checksums.
uv run fleetroll override unset configs/host-lists/linux/all.list \
--filter 'ovr_bch=my-test-branch' --save-plan /tmp/remove-overrides.json
# Execute the reviewed population; live checksum mismatches are refused.
uv run fleetroll override unset --from-plan /tmp/remove-overrides.json --confirmFilters can also run directly with --confirm, reevaluating selection on each
invocation. Saved plans freeze the preview. Evidence ages and failed gathers
remain visible; removal does not establish Puppet convergence. See
population override removal for freshness, JSON,
partial failures, and concurrency limits.
Deploy to a target percentage of a recorded role population:
# Preview total 50% coverage, retaining existing exact-checksum canaries.
uv run fleetroll override set configs/host-lists/linux/all.list \
--role gecko_t_linux_2404_talos --target-percent 50 --from-file candidate.overrideAdd --confirm to deploy, or use --save-plan FILE and --from-plan FILE to
freeze a preview. Additions require fresh successful evidence and no conflicting
override; stale/failed role members remain in the denominator. Recent unverified
writes block further expansion until collection catches up. See
percentage deployment for rounding, 100% coverage,
unknown membership, JSON, and preview/execution semantics.
host hold inspects or changes /home/cltbld/operator_hold on one Linux host.
The flag prevents new jobs from running; setting it does not prove an existing
job has finished. These commands use live SSH checks and do not depend on gwhc.
uv run fleetroll host hold show t-linux64-ms-017
# Preview without contacting the host:
uv run fleetroll host hold set t-linux64-ms-017 --reason "maintenance"
uv run fleetroll host hold set t-linux64-ms-017 --confirm --reason "maintenance"
uv run fleetroll host hold clear t-linux64-ms-017 --confirm --reason "maintenance complete"Set and clear require --confirm, verify the resulting file state, and audit the
actor, optional reason, and outcome (including no-ops and failures). Repeating
an already-satisfied operation succeeds without changing the existing file.
show is read-only and needs no confirmation. All actions support --json and
the standard SSH options; failures return nonzero and never claim a verified
hold state. Unsupported OSes, missing worker homes, symlinks, and nonregular flag
paths are refused. The privileged file operation requires passwordless
sudo -n sh access. Recorded host observations and monitor columns are not
updated by these commands; use host hold show for current hold status.
host diagnose collects live Linux gwhc evidence without changing the host or
recorded observations. It preserves structured checks and valid unhealthy reports
on gwhc exit 1. A completed diagnosis exits 0 even when the worker is unhealthy;
collection or validation failures exit 1 with JSON still printed.
uv run fleetroll host diagnose t-linux64-ms-017 --jsonThe versioned Fleetroll envelope keeps health separate from collection status. Diagnosis envelope v2 supports upstream gwhc schema v1 and normalizes explicit zombie process evidence as present, absent, or unknown. Legacy unversioned reports remain diagnostic with unknown zombie status. See the diagnosis JSON contract for compatibility, fields, failures, and migration from idle diagnostics. Medic integration is separate.
host idle checks one Linux host over SSH using live sudo -n gwhc --json
and a separate Puppet process check. It reports the worker state (idle,
working, or unknown), whether Puppet is running, check timestamps, and
supporting health details. WORKING and BUSY health states both mean working.
The host is reported idle only when the worker is idle and Puppet is not running.
uv run fleetroll host idle t-linux64-ms-017
uv run fleetroll host idle t-linux64-ms-017 --jsonKnown idle and working results exit 0; unknown or failed checks exit 1, with the JSON result still printed. Missing gwhc, unsupported operating systems, SSH failures, and unavailable Puppet activity never count as idle. This command does not change the host or overwrite recorded host observations.
This is a snapshot of gwhc's current assessment, which uses heuristics and can miss stale worker state. It does not reserve or quarantine the worker; a new task may start immediately afterward. Recheck before taking an action.
uv run fr host run-puppet t-linux64-ms-017 --only-if-idle --confirm--only-if-idle uses the live Linux idle check immediately before starting
Puppet on each target. A worker running a task or already running Puppet is
skipped. An unavailable or unsupported check blocks Puppet and returns a
nonzero exit status. The check is best effort. A worker can still claim a task
after the check.
host reboot-if-idle checks a Linux host's live sudo gwhc --json output and
requests a reboot only when its top-level state is exactly IDLE. It targets
one host per invocation and requires --confirm to run the check and request
reboot:
# preview the target and action
uv run fleetroll host reboot-if-idle t-linux64-ms-001
# check gwhc and request reboot when state is IDLE
uv run fleetroll host reboot-if-idle t-linux64-ms-001 --confirmThis operator-triggered best-effort command does not quarantine the worker or
recheck its state. A task may be claimed after the check, and current gwhc
heuristics may report stale or unknown state as IDLE. Do not use it for
unattended or fleet-wide reboot policy. Fleetroll reports that a reboot was
requested; it does not claim the host recovered.
# show stored vault contents by sha prefix or human hash
uv run fleetroll vault show 0328af8c9d6f
uv run fleetroll vault show jupiter-lactose
# set vault (single host) - defaults to /root/vault.yaml
uv run fleetroll vault set --from-file vault.yaml t-linux64-ms-229.test.releng.mdc1.mozilla.com
# set vault (reviewed host selection, as in the override example above)
uv run fleetroll vault set --from-file vault.yaml /tmp/rollout-targets.list# print the remote audit script (useful for debugging)
uv run fleetroll debug host-script
# wrap as ssh-ready command
uv run fleetroll debug host-script --wrapuv run release-notes generates an Unreleased draft from committed changes after
the latest version bump. Choose and commit a version when preparing a release,
then generate its draft with uv run release-notes --version 0.3.0. See the
release notes workflow for review and publication
steps and the transition from version eras to release boundaries. Every release
gets a vX.Y.Z tag and a published
GitHub Release
using the reviewed notes committed in this repository.
Stored in beads. See AGENTS.md for more info.
# install testing deps
uv sync --all-groups
# prek (https://github.com/j178/prek, git commit hooks)
brew install prek
# actionlint (URL?, github actions linting)
brew install actionlinst
# beads-rust (https://github.com/Dicklesworthstone/beads_rust, repo issue tracking)
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/beads_rust/main/install.sh?$(date +%s)" | bash
# cass (https://github.com/Dicklesworthstone/coding_agent_session_search)
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/coding_agent_session_search/main/install.sh?$(date +%s)" \
| bash -s -- --easy-mode --verify
# testing
uv run pytest
# pytest-watcher (runs tests on any change)
uv run ptw .To reproduce CI coverage locally, including the tmux integration tests:
uv run pytest --cov=fleetroll --cov-report=xml --cov-report=termCoverage enables subprocess measurement so monitor code running inside tmux is
included in the combined report. Each test starts an isolated tmux server that
inherits the coverage environment. TUI teardown sends Ctrl-C and polls for exit
before removing the server, allowing Python cleanup and coverage writes to finish
even when a popup is open. If the app does not exit within five seconds, teardown
warns and forces shutdown; that process's coverage may be incomplete. Tests can
still run normally without --cov.
