chore: update parser module to v20.0.0
This commit is contained in:
1 parent
475318fc2b
commit
23cda0fc83
52 files changed
+85
-63
No files matched your search
@@ -29,7 +29,7 @@ web/ embedded UI assets
|
||||
```
|
||||
|
||||
Archive parsing, Redfish replay/analysis, and the `models` data contracts live in the
|
||||
external module `git.mchus.pro/reanimator/parser/v13` (see `06-parsers.md`, ADL-080) —
|
||||
external module `git.mchus.pro/reanimator/parser/v20` (see `06-parsers.md`, ADL-080) —
|
||||
not in this tree anymore.
|
||||
|
||||
The topology view is owned by LOGPile, not by the chart submodule. The main UI
|
||||
@@ -62,7 +62,7 @@ Failed or canceled jobs do not overwrite the previous dataset.
|
||||
2. The server resolves the source family
|
||||
3. JSON inputs are checked for raw-export package or `AnalysisResult` snapshot
|
||||
4. Non-JSON archives go through `parser.NewService().AnalyzeArchivePayload(...)`
|
||||
(`git.mchus.pro/reanimator/parser/v13`)
|
||||
(`git.mchus.pro/reanimator/parser/v20`)
|
||||
5. Archive metadata is normalized onto `AnalysisResult`
|
||||
6. Result becomes the current in-memory dataset
|
||||
|
||||
@@ -97,7 +97,7 @@ Redfish is being split into two coordinated phases:
|
||||
|
||||
Lookup order:
|
||||
|
||||
1. Embedded `pci.ids` inside `git.mchus.pro/reanimator/parser/v13/pciids`
|
||||
1. Embedded `pci.ids` inside `git.mchus.pro/reanimator/parser/v20/pciids`
|
||||
2. `./pci.ids`
|
||||
3. `/usr/share/hwdata/pci.ids`
|
||||
4. `/usr/share/misc/pci.ids`
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## Core contract: `AnalysisResult`
|
||||
|
||||
`git.mchus.pro/reanimator/parser/v13/models` (`models.go`) defines the shared result passed between
|
||||
`git.mchus.pro/reanimator/parser/v20/models` (`models.go`) defines the shared result passed between
|
||||
the parser module, collectors, server handlers, and exporters. logpile has no local `models`
|
||||
package anymore (ADL-080) — every import in this repo points at the module's package directly.
|
||||
|
||||
|
||||
@@ -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.
|
||||
@@ -29,7 +29,7 @@ Notes:
|
||||
|
||||
## Private module dependency
|
||||
|
||||
logpile depends on `git.mchus.pro/reanimator/parser/v13` (archive parsing, Redfish
|
||||
logpile depends on `git.mchus.pro/reanimator/parser/v20` (archive parsing, Redfish
|
||||
replay/analysis, `models`, `pciids` — see ADL-080 in `10-decisions.md`), a private Gitea
|
||||
host. `git.mchus.pro` has no public Go checksum database entry, so a clean module cache
|
||||
needs `GOPRIVATE=git.mchus.pro/*` set before `go mod tidy`/`go build`/`go get` can
|
||||
|
||||
@@ -2438,3 +2438,20 @@ data (archive parsing and Redfish-tree analysis) is now entirely the module's re
|
||||
- Any live-collection bug that turns out to actually be an interpretation bug now needs a fix
|
||||
landed and tagged in the parser repo, then repinned here — a one-extra-step loop that didn't
|
||||
exist when the code was local.
|
||||
|
||||
## ADL-081 — Update the parser dependency to v20
|
||||
|
||||
**Date:** 2026-10-17
|
||||
|
||||
**Context:** LOGPile pins parser v13.0.0. Published parser releases through v20.0.0
|
||||
add archive recognition and inventory fixes, including PAX tar.gz support,
|
||||
nvidia-smi inventory in Linux bundles, and Inspur audit-based drive presence
|
||||
and hot-plug classification.
|
||||
|
||||
**Decision:** Pin `git.mchus.pro/reanimator/parser/v20` at `v20.0.0` and migrate
|
||||
all parser, models, and pciids imports together. Keep the existing service
|
||||
boundary for archive parsing and Redfish replay.
|
||||
|
||||
**Consequences:** Uploads, batch conversion, and live Redfish analysis use the
|
||||
updated library. Existing archives must be reopened to receive the new parsing
|
||||
behavior. Historical decision records retain the module paths used at the time.
|
||||
@@ -27,7 +27,7 @@ Reanimator Hardware Ingest Contract v2.11 вводит массив `pcie_device
|
||||
|
||||
**Текущее состояние:**
|
||||
- Коллектор (`internal/collector/redfish.go`, `redfishPCIeDetailsWithSupplementalDocs`) собирает SFP как 5 скалярных `float64` на устройство через `redfishFirstNumericAcrossDocs`
|
||||
- Внутренняя модель (`git.mchus.pro/reanimator/parser/v13/models (models.go)`, struct `PCIeDevice`) не имеет SFP-полей — всё хранится в `Details map[string]any`
|
||||
- Внутренняя модель (`git.mchus.pro/reanimator/parser/v20/models (models.go)`, struct `PCIeDevice`) не имеет SFP-полей — всё хранится в `Details map[string]any`
|
||||
- Конвертер (`internal/exporter/reanimator_converter.go`, строки 864–868) читает скаляры из `Details` и кладёт в deprecated поля `ReanimatorPCIe`
|
||||
|
||||
**Что нужно сделать:**
|
||||
|
||||
@@ -32,9 +32,9 @@ Keep top-level docs minimal and put maintained architecture/API contracts here.
|
||||
|
||||
- Entry point: `cmd/logpile/main.go`
|
||||
- HTTP layer: `internal/server/`
|
||||
- Core contracts: `git.mchus.pro/reanimator/parser/v13/models`
|
||||
- Core contracts: `git.mchus.pro/reanimator/parser/v20/models`
|
||||
- Live collection: `internal/collector/`
|
||||
- Archive parsing and Redfish analysis: external module `git.mchus.pro/reanimator/parser/v13` (see `06-parsers.md`)
|
||||
- Archive parsing and Redfish analysis: external module `git.mchus.pro/reanimator/parser/v20` (see `06-parsers.md`)
|
||||
- Export conversion: `internal/exporter/`
|
||||
- Frontend consumer: `web/static/js/app.js`
|
||||
|
||||
|
||||
Reference in new issue
Block a user