Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Stop unclear PBS task history marking jobs unknown

rcourtman3c391b5f7d32
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index dc0b729ce2..c6c5c5a5ad 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -5078,6 +5078,20 @@ keeps its columns aligned. Rows stay 32px, the accessible names are unchanged,
and the phone bar narrows from 5rem to 4rem to make room. Which workloads each
reason selects is unchanged.
+### Task history no longer marks a datastore job family unknown (2 November 2026)
+
+`summarizeDatastoreJobs` treats a family as unread for every datastore only
+when a storeless entry that is not OK is a failed read (`evidenceScope`
+`partial-read` or an `error`) or a failed or warned run. PBS task history
+arrives with no store, one entry per past run,
+and on a real PBS one run with an unclear status turned the Jobs cell for every
+datastore to "Prune unknown" even though all six configured prune jobs reported
+OK from `/admin/prune`. Configured jobs with a store still speak for their
+datastore; a storeless partial read or failed task-history run still yields
+"unknown", never OK. Attaching task history to its datastore upstream would be
+the fuller fix, but older runs of a configured job would then need to defer to
+its latest result.
+
### Backup servers rows are named by their datastore (2 November 2026)
The Backup servers table keeps one row per datastore, but each row is now
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 592d862fcc..ac04eb74a2 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -222,6 +222,14 @@ narrow browser proof exercises the same producer through the inventory consumer
with native interactions and inspected pixels. No API, provider, guest, polling,
auth, resource identity or protection-policy change, nor installed recovery claim.
+### Storeless PBS task history is not an unread job family (2 November 2026)
+
+The Backups Jobs column reads `PBSJobHealthEvidence.evidenceScope`: a
+storeless entry that is not OK marks a job family unknown across the datastores
+of a PBS resource only when it is a failed read (`partial-read` or carrying an
+`error`) or a failed or warned run. A storeless `observed-task` run whose
+status is merely unclear no longer does.
+
### Backup servers rows name the datastore, then its PBS resource (2 November 2026)
`ProxmoxBackupServersTable` still renders one row per datastore of a `pbs`
diff --git a/frontend-modern/browser-verification/ae737d402ccca251.json b/frontend-modern/browser-verification/ae737d402ccca251.json
new file mode 100644
index 0000000000..1c33ed0633
--- /dev/null
+++ b/frontend-modern/browser-verification/ae737d402ccca251.json
@@ -0,0 +1,36 @@
+{
+ "version": 1,
+ "base_sha": "9964e03b5c627131fcd6db8895944402dcadcf7e",
+ "verified_at": "2026-11-02T19:10:00Z",
+ "result": "passed",
+ "changed_paths": [
+ "frontend-modern/src/features/proxmox/proxmoxBackupServerJobs.ts"
+ ],
+ "content_sha256": {
+ "frontend-modern/src/features/proxmox/proxmoxBackupServerJobs.ts": "05c355e254779a75e8ad22c79e517afa3d9310649dfa166f85ba36e2c24ff773"
+ },
+ "routes": [
+ "/proxmox/backups/date"
+ ],
+ "viewports": [
+ {
+ "width": 1440,
+ "height": 1000
+ },
+ {
+ "width": 375,
+ "height": 812
+ }
+ ],
+ "states": [
+ "real-config clone built from this branch on pulse-dev, reading the maintainer PBS",
+ "Backup servers Jobs cell for a PBS whose task history holds one unclear prune run",
+ "desktop and phone layouts, mock mode for the phone check"
+ ],
+ "interactions": [
+ "read job health evidence from the maintainer's real PBS 3 through the fixed client: six configured prune jobs and two verify jobs report OK; the only storeless entry that is not OK is one prune task-history run with status unknown",
+ "rebuilt the maintainer's real-config clone from this branch on pulse-dev and opened Proxmox > Backups; before this change the Backup servers Jobs cell read 'Prune unknown' on both arr-secondary and main",
+ "unit coverage pins the three storeless cases: an unclear task-history run leaves the configured OK result, a failed task-history run still marks the family unknown, a partial read still marks it unknown",
+ "built the same branch in mock mode on pulse-dev and opened Proxmox > Backups at 1440x1000 and 375x812 in dark and light themes: the Backup servers table renders 33px and 32px rows with no horizontal page overflow at either width"
+ ]
+}
diff --git a/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupServerJobs.test.ts b/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupServerJobs.test.ts
index b67efc2e19..547e08a620 100644
--- a/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupServerJobs.test.ts
+++ b/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupServerJobs.test.ts
@@ -91,6 +91,68 @@ describe('summarizeDatastoreJobs', () => {
expect(summary.label).toBe('GC unknown');
});
+ it('does not let storeless task history mark a family unread', () => {
+ // A real PBS: configured prune jobs report OK, while bounded task history
+ // also returns every past run with no store, one of them with an unclear
+ // status. That history is not a failed read of the prune family.
+ const summary = summarizeDatastoreJobs(
+ [
+ job({ id: 'prune-main-delly', family: 'prune' }),
+ job({
+ id: 'prune:main:delly',
+ family: 'prune',
+ store: undefined,
+ confidence: 'task-history-only',
+ evidenceScope: 'observed-task',
+ posture: 'unknown',
+ postureReason: 'last-run-state-unknown',
+ }),
+ ],
+ 'main',
+ );
+ expect(summary.state).toBe('ok');
+ expect(summary.label).toBe('OK');
+ });
+
+ it('keeps a failed run from storeless task history visible', () => {
+ const summary = summarizeDatastoreJobs(
+ [
+ job({ id: 'prune-main-delly', family: 'prune' }),
+ job({
+ id: 'prune:main:manual',
+ family: 'prune',
+ store: undefined,
+ confidence: 'task-history-only',
+ evidenceScope: 'observed-task',
+ posture: 'critical',
+ postureReason: 'last-run-failed',
+ }),
+ ],
+ 'main',
+ );
+ expect(summary.state).toBe('unknown');
+ expect(summary.label).toBe('Prune unknown');
+ });
+
+ it('still treats a storeless partial read as an unread family', () => {
+ const summary = summarizeDatastoreJobs(
+ [
+ job({ id: 'prune-main-delly', family: 'prune' }),
+ job({
+ id: 'prune:partial',
+ family: 'prune',
+ store: undefined,
+ confidence: 'partial-permission',
+ evidenceScope: 'partial-read',
+ posture: 'unknown',
+ }),
+ ],
+ 'main',
+ );
+ expect(summary.state).toBe('unknown');
+ expect(summary.label).toBe('Prune unknown');
+ });
+
it('names a job that has not run yet without calling it healthy', () => {
const summary = summarizeDatastoreJobs(
[job({ id: 'v-1', posture: 'unknown', postureReason: 'no-run-observed' })],
diff --git a/frontend-modern/src/features/proxmox/proxmoxBackupServerJobs.ts b/frontend-modern/src/features/proxmox/proxmoxBackupServerJobs.ts
index 47b552417e..e66cc113e7 100644
--- a/frontend-modern/src/features/proxmox/proxmoxBackupServerJobs.ts
+++ b/frontend-modern/src/features/proxmox/proxmoxBackupServerJobs.ts
@@ -86,11 +86,22 @@ export function summarizeDatastoreJobs(
const store = datastoreName?.trim();
if (!store || !evidence?.length) return { state: 'none', label: '—', entries: [] };
- // A family whose read failed for the whole server (no store attached) leaves
- // every datastore's result for that family unknown, never silently OK.
+ // A family whose read failed for the whole server (a partial read with no
+ // store attached) leaves every datastore's result for that family unknown,
+ // never silently OK. PBS task history arrives with no store too: a failed or
+ // warned run there keeps that same server-wide signal, but a run whose
+ // status is merely unclear is not a failed read, and one such run among
+ // hundreds must not mark every datastore unknown while its configured jobs
+ // report their results.
const unreadFamilies = new Set(
evidence
- .filter((entry) => !entry.store?.trim() && stateForPosture(entry.posture) !== 'ok')
+ .filter((entry) => {
+ if (entry.store?.trim()) return false;
+ const state = stateForPosture(entry.posture);
+ if (state === 'ok') return false;
+ const failedRead = entry.evidenceScope === 'partial-read' || Boolean(entry.error?.trim());
+ return failedRead || state === 'critical' || state === 'warning';
+ })
.map((entry) => normalize(entry.family))
.filter(isDatastoreFamily),
);