feat(history): complete package lifecycle telemetry

Persist separate download, extraction, remux, post-processing, and total durations together with accurate file, byte, archive, part, output, and phase failure results. Keep download item counts independent from extraction and remux outcomes, distinguish partial and cancelled packages, and expose additive failure counters and fixed categories in history and Discord notifications. Track archive operations across parallel work, aborts, restarts, nested multipart sets, and skipped split files while deriving generation outputs from privacy-safe signatures and merging overlapping extraction intervals.
This commit is contained in:
Sucukdeluxe
2026-08-24 20:59:44 +02:00
parent 7fe438ba5d
commit e8046f3fa3
16 changed files with 1139 additions and 150 deletions
+23 -1
View File
@@ -1235,6 +1235,13 @@ describe("settings storage", () => {
partCount: 16,
outputCount: 15,
failurePhase: "extract",
errorCategory: "checksum",
downloadFailures: 2,
offlineFailures: 1,
extractionFailures: 3,
remuxFailures: 4,
cleanupFailures: 5,
postProcessFailures: 6,
archiveOperations: [{
id: "archive-1",
name: "Paket.part01.rar",
@@ -1274,6 +1281,13 @@ describe("settings storage", () => {
partCount: 16,
outputCount: 15,
failurePhase: "extract",
errorCategory: "Entpacken",
downloadFailures: 2,
offlineFailures: 1,
extractionFailures: 3,
remuxFailures: 4,
cleanupFailures: 5,
postProcessFailures: 6,
archiveOperations: [{
id: "archive-1",
name: "Paket.part01.rar",
@@ -1332,7 +1346,13 @@ describe("settings storage", () => {
}],
remuxOperations: [],
outputCount: 1,
outputBaselineSignatures: [
"a".repeat(64),
"invalid",
"b".repeat(64)
],
cleanupErrorCategory: "",
postProcessErrorCategory: "rename failed",
createdAt: 1_000,
updatedAt: 21_000
}
@@ -1358,7 +1378,9 @@ describe("settings storage", () => {
archiveOperations: [expect.objectContaining({ id: "archive-1", durationMs: 4_000 })],
remuxOperations: [],
outputCount: 1,
cleanupErrorCategory: ""
outputBaselineSignatures: ["a".repeat(64), "b".repeat(64)],
cleanupErrorCategory: "",
postProcessErrorCategory: "Nachbearbeitung"
}));
});