27 Commits

Author SHA1 Message Date
pulse-triage[bot]
087efc14ca Distinguish PBS listing volume from snapshot coverage
Show per-datastore completed snapshot responses beside distinct groups in the same memory sampling window. A repeat adds fixture work without expanding coverage; a missing count is not zero. Keep the Proxmox estate advisory and preserve the existing RSS observations.

Change-source: pulse-maintainer
2026-11-26 02:12:38 +00:00
pulse-triage[bot]
f36aba12b9 Keep Proxmox traffic evidence when memory sampling fails
Retain observed PVE/PBS traffic separately from an incomplete RSS comparison and distinguish missing windows from measured zero. Require a fresh evidence directory so earlier observations cannot become part of a new source pair.

Change-source: pulse-maintainer
2026-11-25 23:34:13 +00:00
pulse-triage[bot]
f355e8ef57 Require applied agent state in memory comparisons
A successful HTTP response and an unrelated dashboard frame were enough to accept an RSS sample with no observed agent state progress. Require two increasing in-window sightings from each configured host agent and each Docker reporting counterpart, separately from HTTP acceptance. Keep incomplete measurements and their counts without an RSS verdict.

Contract-Neutral: Corrects the existing report-only agent memory observer. Pulse runtime behavior, sampling, required PR checks and release gates are unchanged.
Change-source: pulse-maintainer
2026-11-25 21:31:41 +00:00
pulse-triage[bot]
a3230c9716 Expose long PBS status gaps in memory comparisons
A low process RSS measurement can coincide with a mostly quiet datastore even when every fixture datastore answered. Flag a lone status response or a gap covering more than half the same RSS window, without changing samples, polling, or the watch's gates.

Refs: https://github.com/rcourtman/Pulse/issues/1803
Contract-Neutral: Qualifies existing synthetic evidence only; keeps product behavior, raw receipts, workloads and thresholds unchanged.
Change-source: pulse-maintainer
2026-11-25 19:30:05 +00:00
pulse-triage[bot]
d79a5be616 Require agent traffic during steady memory sampling
Whole-run counters allowed an early dashboard update to validate a later RSS window with no observed state traffic. Bind repeated host and Docker report acceptances per agent and a subsequent same-connection dashboard update to the sampled window. Keep the counts on incomplete measurements without a comparative RSS verdict.

Contract-Neutral: Corrects the synthetic non-gating agent memory observer only. Public runtime behavior, required PR verdicts and release gates are unchanged.
Change-source: pulse-maintainer
2026-11-25 14:41:42 +00:00
pulse-triage[bot]
5e2a688067 Distinguish PBS snapshot listings from warmup in the memory watch
Report the distinct snapshot groups served per datastore during the same final third as RSS. Keep the whole-run requirement and status-traffic observations separate; missing or different final-window listings must not stand in for comparable backup work.

Contract-Neutral: Add internal synthetic watch evidence without changing Pulse behavior, validation thresholds, or release gates.
Change-source: pulse-maintainer
2026-11-24 01:13:18 +00:00
pulse-triage[bot]
b44011b07a Exercise mixed Proxmox archive listings in the memory watch
Give both builds the same shared archive with 24 restore points per guest plus ISOs and templates. Report completed full responses per node in the measured RSS window so startup, failed writes or ordinary guest traffic cannot stand in for archive load.

Refs: https://github.com/rcourtman/Pulse/issues/1803
Contract-Neutral: Changes only the synthetic workload and optional report; production polling, API, sampling thresholds and required checks are unchanged.
Change-source: pulse-maintainer
2026-11-23 19:51:01 +00:00
pulse-triage[bot]
0842e4a1fa Show polling limits beside Proxmox memory comparisons
The synthetic watch could report no RSS regression even when a guest had a long dashboard gap or a PBS datastore served no status in the measured window. Report the measured delta and existing thresholds while naming unavailable or adverse polling observations on each side. Preserve RSS values, traffic tables, result JSON, and all gates.

Refs: https://github.com/rcourtman/Pulse/issues/1803
Contract-Neutral: Qualifies the existing optional Proxmox report without changing workload, sampling, thresholds, required checks or product behavior.
Change-source: pulse-maintainer
2026-11-23 18:47:38 +00:00
pulse-triage[bot]
1fa983f6c1 Bind the memory watch to one exact source pair
A retained Proxmox watch artifact names baseline and candidate but not their commits. Each estate job also looks up latest stable independently, so a stable publication can change the comparison partway through one workflow.

Resolve the stable tag to a commit once, have each job build that commit and the exact event commit, and include both in measured and incomplete results. Preserve the three workloads, existing sampling and RSS verdicts, and the scheduled mock reporter outcome when stable lookup fails.

Refs: https://github.com/rcourtman/Pulse/issues/1803
Contract-Neutral: Changes source attribution in the synthetic memory watch only. Workloads, RSS thresholds, release and product contracts are unchanged.
Change-source: pulse-maintainer
2026-11-23 17:38:38 +00:00
pulse-triage[bot]
10a2b5a860 Report PBS datastore status gaps during the memory watch
The cumulative snapshot coverage can stay complete after a datastore stops responding during steady memory sampling. Count completed status responses and the longest gap for each configured synthetic datastore over the same RSS window. Keep archived snapshot traffic, PVE sightings, RSS and the existing non-gating disposition separate.

Refs: https://github.com/rcourtman/Pulse/issues/1803
Contract-Neutral: Adds diagnostic evidence to the synthetic memory watch only; no production polling, deployment, API, release or gate behavior changes.
Change-source: pulse-maintainer
2026-11-23 04:54:16 +00:00
pulse-triage[bot]
799b338a39 Report Proxmox guest poll gaps in the steady memory window
An end-of-run sighting can hide a long gap while RSS is sampled. Report advancing guest sightings and the longest gap over the actual steady window independently of end freshness, RSS, and PBS group coverage.

Refs: https://github.com/rcourtman/Pulse/issues/1803
Contract-Neutral: Adds diagnostic evidence in the synthetic memory watch only; no production polling, deployment, API, release, or gate behavior changes.
Change-source: pulse-maintainer
2026-11-22 23:33:33 +00:00
pulse-triage[bot]
537979eeb0 Keep RSS comparisons when kernel mapping data is missing
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
2026-11-22 14:18:29 +00:00
pulse-triage[bot]
6601e32eae Keep failed stops out of memory watch comparisons
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
2026-11-22 13:13:44 +00:00
pulse-triage[bot]
7deb4b9a20 Keep the memory watch report when a run stops early
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
2026-11-22 11:08:50 +00:00
pulse-triage[bot]
a3690d0593 Keep the memory watch's two metrics listeners independent
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.
2026-11-22 08:48:58 +00:00
pulse-triage[bot]
194c8bc37f Reject incomplete sampling in the memory watch
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
2026-11-22 04:30:35 +00:00
pulse-triage[bot]
c1b2626802 Use the WebSocket guest poll timestamp units
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
2026-11-22 03:22:10 +00:00
pulse-triage[bot]
72dc4f1f0d Require recent guest polls in the Proxmox memory watch
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
2026-11-22 03:10:57 +00:00
pulse-triage[bot]
4970f34255 Verify PBS snapshot traffic in the Proxmox memory watch
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
2026-11-22 01:28:55 +00:00
pulse-triage[bot]
e6201f2ee4 Exercise the real cluster guest path in the memory watch
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
2026-11-22 00:37:58 +00:00
pulse-triage[bot]
b164ee5001 Report process RSS high-water in memory comparisons
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
2026-11-21 20:36:57 +00:00
rcourtman
2938b984c7 test(memory): add Proxmox VE + PBS estate to memory harness (#1803)
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.
2026-11-21 19:22:33 +00:00
rcourtman
f01ecee33b Outlast the sampling window in the agent load driver
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.
2026-11-09 23:56:29 +00:00
pulse-triage[bot]
036e58c6da Require observed dashboard state traffic in the agent memory watch
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
2026-11-09 20:13:39 +00:00
rcourtman
9efeab37d4 Measure an agent-fed Pulse in the nightly memory watch
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.
2026-11-09 18:38:52 +00:00
rcourtman
02d293d466 Report CPU and disk writes in the nightly memory watch
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%.
2026-11-09 17:36:56 +00:00
rcourtman
44af307878 ci: compare memory with the latest stable release every day
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
2026-10-21 14:16:15 +01:00