fix: never use parse time as event or collection time

Dump data is always historical. Parsers stamped undated events with
time.Now() (Inspur component.log memory/fan status, IDL/H3C SEL with
unparsable time, NVIDIA summary/bug-report, generic, XigmaNAS, Unraid,
Redfish replay warnings), so an August dump opened in September showed
DIMM warnings dated the day of analysis.

- Events without a source time keep a zero timestamp.
- Yearless syslog timestamps take the year from the collection time via
  parser.ParseYearlessInDefaultArchiveLocation; zero when unknown.
- Archive/uploaded-snapshot collected_at is no longer defaulted to now;
  only live API collection uses the current time.

ADL-070.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Mikhail ChusavitinandClaude Opus 5.5 committed 2026-09-28 13:00:53 +03:00
1 parent 8794e0adec
commit f2ad0aca96
19 files changed
+95 -85

No files matched your search

+26
View File
@@ -2045,3 +2045,29 @@ BDF numbering.
- `CPU0` remains distinct from missing affinity.
- On systems with Sub-NUMA Clustering, the value represents physical CPU
affinity rather than an operating-system NUMA-domain ID.
---
## ADL-070 — Parse time never becomes a data timestamp
**Date:** 2026-09-28
**Context:** Several parsers stamped events with `time.Now()`: Inspur
component.log memory/fan status, IDL/H3C SEL entries with unparsable time,
NVIDIA summary/bug-report detection events, generic/XigmaNAS/Unraid info
events, Redfish replay health/collection warnings. Yearless syslog lines took
the current year. An August dump opened in September showed "not detected"
DIMM warnings dated the day of analysis.
**Decision:** Dump data is always historical. Parsers leave `Timestamp` zero
when an event has no time of its own, and it stays zero: no stage substitutes
parse time or collection time for an event time. Yearless syslog timestamps
use `parser.ParseYearlessInDefaultArchiveLocation`, which takes the year from
the collection time and yields zero when it is unknown. Archive and
uploaded-snapshot `CollectedAt` is never defaulted to now; only live API
collection may use the current time, because it is the collection time.
**Consequences:**
- An archive with no datable content keeps `collected_at` unset.
- `time.Now()` stays legitimate only for job bookkeeping, export metadata
(`exported_at`, `generated_at`), live-collection timing and the Redfish
live log-entry window.