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.

Format task timing regression cases

pulse-triage[bot]d2dd6124962f
diff --git a/frontend-modern/src/features/proxmox/__tests__/backupTaskEvidence.test.tsx b/frontend-modern/src/features/proxmox/__tests__/backupTaskEvidence.test.tsx
index 1061557a87..fc01232510 100644
--- a/frontend-modern/src/features/proxmox/__tests__/backupTaskEvidence.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/backupTaskEvidence.test.tsx
@@ -134,7 +134,12 @@ describe('latest backup task evidence through the inventory consumer', () => {
{ status: 'OK', endTime: '2026-10-04T10:59:00Z', duration: 'Unknown' },
{ status: 'OK', endTime: '2026-10-04T12:00:01Z', duration: 'Unknown' },
{ status: 'running', endTime: '2026-10-04T11:05:00Z', duration: 'Unknown' },
- { status: 'OK', startTime: '2027-01-01T00:00:00Z', endTime: '2027-01-01T00:05:00Z', duration: 'Unknown' },
+ {
+ status: 'OK',
+ startTime: '2027-01-01T00:00:00Z',
+ endTime: '2027-01-01T00:05:00Z',
+ duration: 'Unknown',
+ },
{ status: 'OK', endTime: undefined, duration: 'Not reported' },
{ status: 'OK', endTime: '2026-10-04T11:00:00.100Z', duration: '0s' },
])('does not invent completion or protection for $status / $duration', async (extra) => {
diff --git a/frontend-modern/src/features/proxmox/__tests__/taskDurationEvidence.test.ts b/frontend-modern/src/features/proxmox/__tests__/taskDurationEvidence.test.ts
index 254ad93c43..63a37a2d04 100644
--- a/frontend-modern/src/features/proxmox/__tests__/taskDurationEvidence.test.ts
+++ b/frontend-modern/src/features/proxmox/__tests__/taskDurationEvidence.test.ts
@@ -70,7 +70,11 @@ describe('Coverage task duration needs observed, consistent endpoints', () => {
task: { startTime: '2026-10-04T13:00:00+02:00', endTime: '2026-10-04T08:05:00-03:00' },
seconds: 300,
},
- { name: 'observed subsecond rounds to zero', task: { endTime: '2026-10-04T11:00:00.1Z' }, seconds: 0 },
+ {
+ name: 'observed subsecond rounds to zero',
+ task: { endTime: '2026-10-04T11:00:00.1Z' },
+ seconds: 0,
+ },
])('retains $name', ({ task: input, seconds }) => {
const task = observe(input).coverageRows[0].latestTask!;
expect(task.durationSeconds).toBe(seconds);
@@ -78,6 +82,8 @@ describe('Coverage task duration needs observed, consistent endpoints', () => {
});
it('does not fabricate elapsed time without a finite observation clock', () => {
- expect(observe({}, Number.NaN).coverageRows[0].latestTask).toMatchObject({ durationUnknown: true });
+ expect(observe({}, Number.NaN).coverageRows[0].latestTask).toMatchObject({
+ durationUnknown: true,
+ });
});
});