Update published parser dependency to v31 and expose FFDC archives

This commit is contained in:
Mikhail Chusavitin committed 2026-10-22 21:21:15 +03:00
1 parent c4870cfb36
commit 78e1a473cc
56 files changed
+115 -71

No files matched your search

+17 -8
View File
@@ -3,13 +3,22 @@
## Parsers live in a separate module
All archive/vendor-format parsing and the Redfish raw-payload replay/analysis engine
live in `git.mchus.pro/reanimator/parser/v20` (a plain Go module dependency, see
live in `git.mchus.pro/reanimator/parser/v31` (a plain Go module dependency, see
ADL-2026-10-08). logpile does not implement or register parsers itself anymore.
The dependency is pinned to `v20.0.0` (ADL-081). This includes PAX tar.gz
recognition, nvidia-smi inventory in Linux bundles, and Inspur audit-based
drive presence and hot-plug event classification. Reopen stored archives to
apply the updated parsing behavior.
The dependency is pinned to the published `v31.0.0` (ADL-084), without a local
parser replacement. This includes Lenovo XCC mini-log and full FFDC `.tzz`
archives, binary component journals, Linux service journals and structured
component activity with historical identities and firmware. Existing PAX tar.gz,
nvidia-smi inventory and Inspur audit support are retained. Reopen stored
archives to apply the updated parsing behavior.
The module supplies supported file extensions and registered parser versions
to `/api/file-types` and `/api/parsers`; upload and batch conversion use those
capabilities directly. Lenovo diagnostic/configuration evidence remains in
`raw_payloads.lenovo_xcc`; structured component activities remain on the shared
`AnalysisResult.events` model. Historical components do not become current
hardware inventory.
The vendor coverage matrix, detection rules, per-vendor data-quality notes, and the
`VendorParser` contract are documented in that repository's own `bible-local/`
@@ -38,7 +47,7 @@ what it hands to the module, and what comes back.
## What the module owns and how logpile calls it
Two entry points on `git.mchus.pro/reanimator/parser/v20`'s `Service`:
Two entry points on `git.mchus.pro/reanimator/parser/v31`'s `Service`:
- `Service.AnalyzeArchivePayload(filename string, payload []byte) (*models.AnalysisResult, string, error)`
— uploaded archive parsing. Used by `internal/server/handlers.go` (upload flow) and
@@ -54,12 +63,12 @@ Two entry points on `git.mchus.pro/reanimator/parser/v20`'s `Service`:
Top-level helpers also used directly: `ListParsersInfo()`, `IsSupportedArchiveFilename()`,
`SupportedArchiveExtensions()`, `ParseInDefaultArchiveLocation()`, `PrivacyScanEnabled()`,
and the `pciids` package (`git.mchus.pro/reanimator/parser/v20/pciids`) for PCI
and the `pciids` package (`git.mchus.pro/reanimator/parser/v31/pciids`) for PCI
vendor/device name lookups in both the live collector and the exporter.
## models package
`git.mchus.pro/reanimator/parser/v20/models` is used directly everywhere in logpile;
`git.mchus.pro/reanimator/parser/v31/models` is used directly everywhere in logpile;
there is no local `internal/models` anymore (fully repointed, 2026-10-08). The module's
`models` package is kept strictly additive against what logpile used to define, so this
needed no adapter.