chore: update parser module to v20.0.0

This commit is contained in:
Mikhail Chusavitin committed 2026-10-17 00:53:53 +03:00
1 parent 475318fc2b
commit 23cda0fc83
52 files changed
+85 -63

No files matched your search

+9 -4
View File
@@ -3,9 +3,14 @@
## 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/v13` (a plain Go module dependency, see
live in `git.mchus.pro/reanimator/parser/v20` (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 vendor coverage matrix, detection rules, per-vendor data-quality notes, and the
`VendorParser` contract are documented in that repository's own `bible-local/`
(`06-parsers.md` equivalent, decisions log) — read it there, not here, when working on
@@ -33,7 +38,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/v13`'s `Service`:
Two entry points on `git.mchus.pro/reanimator/parser/v20`'s `Service`:
- `Service.AnalyzeArchivePayload(filename string, payload []byte) (*models.AnalysisResult, string, error)`
— uploaded archive parsing. Used by `internal/server/handlers.go` (upload flow) and
@@ -49,12 +54,12 @@ Two entry points on `git.mchus.pro/reanimator/parser/v13`'s `Service`:
Top-level helpers also used directly: `ListParsersInfo()`, `IsSupportedArchiveFilename()`,
`SupportedArchiveExtensions()`, `ParseInDefaultArchiveLocation()`, `PrivacyScanEnabled()`,
and the `pciids` package (`git.mchus.pro/reanimator/parser/v13/pciids`) for PCI
and the `pciids` package (`git.mchus.pro/reanimator/parser/v20/pciids`) for PCI
vendor/device name lookups in both the live collector and the exporter.
## models package
`git.mchus.pro/reanimator/parser/v13/models` is used directly everywhere in logpile;
`git.mchus.pro/reanimator/parser/v20/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.