An empty or failed smaps read left a false zero breakdown or erased the whole memory-watch result. Keep the sample fields aligned, report unavailable class medians without estimating from partial coverage, and keep the independent RSS verdict and measured counters.
Change-source: pulse-maintainer
The optional heap profile read can outlive the first liveness check. Preserve the observed wait when Pulse exits before the stop request or returns an unexpected status after it, so complete RSS samples cannot turn an incomplete run green. Bound optional profiling and keep partial downloads out of the evidence.
Change-source: pulse-maintainer
Write an incomplete comparison with the affected run and observed wait statuses when Pulse exits before the watch stops it or the load driver fails. A full sample window cannot clear a failed run, and a wait status does not identify its cause.
Contract-Neutral: Records why an already-failed memory watch is incomplete; workloads, sampling budgets, thresholds, and release gates do not change.
Change-source: pulse-maintainer
The scheduled Proxmox comparison ran one server without its metrics listener because both used the fixed default port. Bind each test server to a kernel-assigned loopback port so the watch measures the same startup paths without exposing a listener or adding scrape load.
Change-source: pulse-maintainer
Contract-Neutral: CI fixture launch parity only; production listener defaults, sample coverage, thresholds and release gates are unchanged.
Use the same planned steady-state window for baseline and candidate so an early stop or missing sample interval cannot read as no RSS regression. Report incomplete observations separately and preserve the existing memory thresholds.
Change-source: pulse-maintainer
The paired runtime proof exposed that ResourceFrontend sends lastSeen as Unix milliseconds. Read the actual wire type and keep malformed, seconds and unrelated updates from satisfying the freshness check.
Change-source: pulse-maintainer
A complete startup roster and another dashboard message can outlive PVE polling. Bind fresh guest sightings to the end of RSS sampling and retain the observed counts without changing the RSS gate or PBS group coverage.
Change-source: pulse-maintainer
General PBS requests and a configured fixture count do not prove that the backup collector fetched snapshots. Require successful nonempty responses for all configured backup groups on each synthetic instance and datastore, and report observed coverage without treating served rows as displayed or retained.
Contract-Neutral: Synthetic memory-watch workload admission and CI evidence only; no Pulse runtime, release, or public API contract change.
Change-source: pulse-maintainer
Serve the configured synthetic guests through the authoritative cluster inventory and verify them in the dashboard state. A busy WebSocket no longer counts as coverage when the monitored guests are missing.
Contract-Neutral: Synthetic CI memory-watch input and evidence only; no runtime, release, or public interface contract changes.
Change-source: pulse-maintainer
The final-third median misses transient growth and is not an LXC headroom test. Retain Linux VmHWM alongside each sample and report the final observation separately, without changing the existing steady-state gate or substituting sampled RSS for missing peak data.
Change-source: pulse-maintainer
Add PULSE_FOOTPRINT_ESTATE=proxmox to scripts/memory/compare_release_memory.sh
backed by scripts/memory/proxmox_load.py and reported in
summarize_release_memory.py.
The mock and agents estates never exercised Proxmox VE polling, PBS snapshot
inventory, recovery.db ingestion, protection posture refreshes, or PBS backup
cloning. The proxmox estate drives a non-mock Pulse with 1 synthetic 3-node
PVE cluster (35 guests), 2 PBS instances (~5,250 snapshots), and 1 subscribed
WebSocket dashboard.
The footprint watch ends each agent load driver with SIGTERM once its
sampling loop finishes. The driver's own deadline was the same length, so
it could expire as the signal arrived; Python then exited by the signal
(143) instead of handling it, and a run with every report accepted failed
as "agent load failed". Seen on pulse-dev with both builds at 360 of 360
reports. Give the driver two minutes of headroom so the harness signal
always ends it.
The newly landed agent estate can accept every report while its WebSocket never connects or carries state. Require an initial state and a subsequent nonempty update on one connection, keep arbitrary frames distinct from verified state in the retained summary, and reassemble fragmented messages without counting ping/pong traffic. Exercise rejected, idle, heartbeat-only, welcome-only, missing-baseline and unusable-state dashboards while retaining accepted-report statistics.
Contract-Neutral: Diagnostic load-driver admission and evidence accuracy only; no runtime, frontend, auth, release qualification or performance threshold changes.
Change-source: pulse-maintainer
The memory watch only runs mock mode, and mock mode drops pushed agent
reports and skips state broadcasts without a subscriber. It can never
reach the cost #2199 measured: every accepted report refreshes the
unified resource registry and broadcasts state to connected dashboards.
Add scripts/memory/agent_load.py, a stdlib-only driver that mints one
install token per synthetic Unified Agent through the dev admin bypass,
posts gzip host reports from 30 agents every 30s (6 also send Docker
reports with 40 containers each), and keeps one dashboard WebSocket
connected. It counts a report as failed after the agent's own 15s
timeout and fails the run when reports were not accepted, so a run that
missed the path cannot pass as a measurement. compare_release_memory.sh
takes PULSE_FOOTPRINT_ESTATE=agents to start a real, authenticated Pulse
under that load, and a new compare-agents job runs it nightly. It reports
without gating (PULSE_MEMORY_GATE=0) and the issue reporter does not read
it, so the new estate cannot open the memory watch issue.
Five-minute runs on pulse-dev, v6.7.0 against main: all 360 reports
accepted on both builds, 270 resources registered, and a CPU profile
showed HandleReport -> ApplyHostReport -> replaceRegistryLocked and the
websocket merge patch, the #2199 chain. Both builds used 5.7% of a core,
wrote about 6.5 GB/day, and answered host reports at a 50 ms median but
a 1.7-1.9 s p95 and 4 s maximum. Mock runs are unchanged apart from the
legacy key path, which keeps hosts with an installed Pulse from refusing
to start.
The memory watch compares resident memory with the last stable, but
#2199 (sustained CPU) and #1966 (tens of GB/day of writes) are the same
class of regression and nothing measured them. Sample CPU ticks from
/proc/<pid>/stat and storage and write-call bytes from /proc/<pid>/io
beside RSS, and report steady-state CPU and MiB/day over the existing
final-third window.
The new rates are reported, not gated: budgets need a measured noise
floor first. A 5-minute run of main against itself on pulse-dev gave
0.6% CPU on both builds and 472 vs 461 MiB/day of disk writes, so writes
vary about 2.5% between identical builds and write calls about 11%.
Memory grew release after release with nothing comparing it (#1803):
a 256 MB LXC that ran v5 for a year needed 1 GB by v6.3. The existing
memory test only checks growth within one run.
The daily watch builds the latest stable release and main from source,
runs both for 15 minutes against the same small mock estate, and splits
steady-state resident memory into the Go heap, memory outside Go and
file pages. It fails past both 15% and 16 MiB, uploads both heap
profiles with a per-function growth list, and keeps one issue open
while it fails. It runs on a schedule rather than in the pull request
benchmarks job because a 15-minute whole-server run is too slow and
noisy to gate every PR. Mock fixtures live in the heap, so the summary
says to check internal/mock first.
Checked end to end on pulse-dev: v6.5.0 against this branch measured
123.5 and 117.2 MiB, no regression; a synthetic 40% growth exits 1.
Related to #1803