From 23cda0fc83f0a76720a8ccd286d91e2af2cfcdd1 Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Sat, 17 Oct 2026 00:53:53 +0300 Subject: [PATCH] chore: update parser module to v20.0.0 --- bible-local/02-architecture.md | 6 +++--- bible-local/04-data-models.md | 2 +- bible-local/06-parsers.md | 13 +++++++++---- bible-local/08-build-release.md | 2 +- bible-local/10-decisions.md | 17 +++++++++++++++++ bible-local/BACKLOG.md | 2 +- bible-local/README.md | 4 ++-- cmd/logpile-cpu-audit/main.go | 4 ++-- cmd/logpile-cpu-audit/main_test.go | 2 +- cmd/logpile/main.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- internal/analyzer/analyzer.go | 2 +- internal/collector/ipmi_mock.go | 2 +- internal/collector/redfish.go | 4 ++-- internal/collector/redfishprofile/matcher.go | 2 +- .../collector/redfishprofile/profiles_common.go | 2 +- internal/collector/redfishprofile/types.go | 2 +- internal/collector/types.go | 2 +- internal/exporter/exporter.go | 2 +- internal/exporter/exporter_csv_test.go | 2 +- internal/exporter/generate_example_test.go | 2 +- internal/exporter/reanimator_converter.go | 4 ++-- internal/exporter/reanimator_converter_test.go | 2 +- internal/exporter/reanimator_event_logs_test.go | 2 +- .../exporter/reanimator_integration_test.go | 2 +- internal/privacy/customer.go | 2 +- internal/privacy/privacy.go | 2 +- internal/privacy/rules.go | 2 +- internal/privacy/sanitized.go | 2 +- internal/privacy/unit_test.go | 2 +- internal/server/chart_view_test.go | 2 +- internal/server/collect_handlers_test.go | 2 +- internal/server/collect_test_helpers_test.go | 2 +- internal/server/device_repository.go | 2 +- internal/server/device_repository_test.go | 2 +- internal/server/handlers.go | 4 ++-- internal/server/handlers_firmware_test.go | 2 +- internal/server/handlers_gpu_test.go | 2 +- internal/server/handlers_serials_test.go | 2 +- internal/server/manual_input_inspect_test.go | 2 +- internal/server/privacy_scan_test.go | 2 +- internal/server/raw_export.go | 2 +- internal/server/raw_export_test.go | 2 +- internal/server/sanitize_handlers_test.go | 2 +- internal/server/server.go | 4 ++-- internal/server/source_metadata_test.go | 2 +- internal/server/topology_view.go | 2 +- internal/server/topology_view_test.go | 2 +- internal/topology/build.go | 2 +- internal/topology/build_test.go | 2 +- internal/topology/render.go | 2 +- 52 files changed, 85 insertions(+), 63 deletions(-) diff --git a/bible-local/02-architecture.md b/bible-local/02-architecture.md index 1626239..03ccc73 100644 --- a/bible-local/02-architecture.md +++ b/bible-local/02-architecture.md @@ -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` diff --git a/bible-local/04-data-models.md b/bible-local/04-data-models.md index 9bec7cd..d04ce26 100644 --- a/bible-local/04-data-models.md +++ b/bible-local/04-data-models.md @@ -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. diff --git a/bible-local/06-parsers.md b/bible-local/06-parsers.md index ef6c5f8..e7656b1 100644 --- a/bible-local/06-parsers.md +++ b/bible-local/06-parsers.md @@ -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. diff --git a/bible-local/08-build-release.md b/bible-local/08-build-release.md index 0460925..e76fb8f 100644 --- a/bible-local/08-build-release.md +++ b/bible-local/08-build-release.md @@ -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 diff --git a/bible-local/10-decisions.md b/bible-local/10-decisions.md index cd7f7d3..8229ada 100644 --- a/bible-local/10-decisions.md +++ b/bible-local/10-decisions.md @@ -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. diff --git a/bible-local/BACKLOG.md b/bible-local/BACKLOG.md index 1d99f4b..96256c9 100644 --- a/bible-local/BACKLOG.md +++ b/bible-local/BACKLOG.md @@ -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` **Что нужно сделать:** diff --git a/bible-local/README.md b/bible-local/README.md index e4f5fb2..4e761dd 100644 --- a/bible-local/README.md +++ b/bible-local/README.md @@ -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` diff --git a/cmd/logpile-cpu-audit/main.go b/cmd/logpile-cpu-audit/main.go index ad788db..74ab134 100644 --- a/cmd/logpile-cpu-audit/main.go +++ b/cmd/logpile-cpu-audit/main.go @@ -16,8 +16,8 @@ import ( "time" "git.mchus.pro/mchus/logpile/internal/exporter" - parser "git.mchus.pro/reanimator/parser/v13" - "git.mchus.pro/reanimator/parser/v13/models" + parser "git.mchus.pro/reanimator/parser/v20" + "git.mchus.pro/reanimator/parser/v20/models" ) const auditSchema = "logpile.cpu-identity-audit.v1" diff --git a/cmd/logpile-cpu-audit/main_test.go b/cmd/logpile-cpu-audit/main_test.go index f7df226..9d51b3b 100644 --- a/cmd/logpile-cpu-audit/main_test.go +++ b/cmd/logpile-cpu-audit/main_test.go @@ -6,7 +6,7 @@ import ( "testing" "git.mchus.pro/mchus/logpile/internal/exporter" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func TestIsAuditCandidate(t *testing.T) { diff --git a/cmd/logpile/main.go b/cmd/logpile/main.go index 11a02c2..36ba87c 100644 --- a/cmd/logpile/main.go +++ b/cmd/logpile/main.go @@ -13,7 +13,7 @@ import ( "git.mchus.pro/mchus/logpile/internal/server" "git.mchus.pro/mchus/logpile/web" - parser "git.mchus.pro/reanimator/parser/v13" + parser "git.mchus.pro/reanimator/parser/v20" ) var ( diff --git a/go.mod b/go.mod index b29ea21..14305fc 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,6 @@ go 1.24.0 require reanimator/chart v0.0.0 -require git.mchus.pro/reanimator/parser/v13 v13.0.0 +require git.mchus.pro/reanimator/parser/v20 v20.0.0 replace reanimator/chart => ./internal/chart diff --git a/go.sum b/go.sum index d48ce49..f50a1d0 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -git.mchus.pro/reanimator/parser/v13 v13.0.0 h1:GAcRPHX28Blrs+52+7sgyYTmvHJA68j1BrhImfEzqVQ= -git.mchus.pro/reanimator/parser/v13 v13.0.0/go.mod h1:42mPd0BbOj9k9x8JAQIinJXJIsvS8X8L6SPXExGUcB0= +git.mchus.pro/reanimator/parser/v20 v20.0.0 h1:hH7X+VvKjAQRboRaV4DTW545Pu6zd13U7zcMsq7OnqU= +git.mchus.pro/reanimator/parser/v20 v20.0.0/go.mod h1:hkb0lxWdVPWOsi8DsIDJ30S5WD4ddRl9ab7rR3BarCQ= diff --git a/internal/analyzer/analyzer.go b/internal/analyzer/analyzer.go index ff9c90f..9d75459 100644 --- a/internal/analyzer/analyzer.go +++ b/internal/analyzer/analyzer.go @@ -1,6 +1,6 @@ package analyzer -import "git.mchus.pro/reanimator/parser/v13/models" +import "git.mchus.pro/reanimator/parser/v20/models" // Analyzer processes parsed IPMI data type Analyzer struct { diff --git a/internal/collector/ipmi_mock.go b/internal/collector/ipmi_mock.go index d594872..1bb7dce 100644 --- a/internal/collector/ipmi_mock.go +++ b/internal/collector/ipmi_mock.go @@ -4,7 +4,7 @@ import ( "context" "time" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) type IPMIMockConnector struct{} diff --git a/internal/collector/redfish.go b/internal/collector/redfish.go index 335d64b..4ca6ca2 100644 --- a/internal/collector/redfish.go +++ b/internal/collector/redfish.go @@ -19,8 +19,8 @@ import ( "time" "git.mchus.pro/mchus/logpile/internal/collector/redfishprofile" - parser "git.mchus.pro/reanimator/parser/v13" - "git.mchus.pro/reanimator/parser/v13/models" + parser "git.mchus.pro/reanimator/parser/v20" + "git.mchus.pro/reanimator/parser/v20/models" ) type RedfishConnector struct { diff --git a/internal/collector/redfishprofile/matcher.go b/internal/collector/redfishprofile/matcher.go index adc3880..9bd1818 100644 --- a/internal/collector/redfishprofile/matcher.go +++ b/internal/collector/redfishprofile/matcher.go @@ -3,7 +3,7 @@ package redfishprofile import ( "sort" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) const ( diff --git a/internal/collector/redfishprofile/profiles_common.go b/internal/collector/redfishprofile/profiles_common.go index db37eed..14c14af 100644 --- a/internal/collector/redfishprofile/profiles_common.go +++ b/internal/collector/redfishprofile/profiles_common.go @@ -3,7 +3,7 @@ package redfishprofile import ( "strings" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) type staticProfile struct { diff --git a/internal/collector/redfishprofile/types.go b/internal/collector/redfishprofile/types.go index 01dc35f..400acb0 100644 --- a/internal/collector/redfishprofile/types.go +++ b/internal/collector/redfishprofile/types.go @@ -3,7 +3,7 @@ package redfishprofile import ( "sort" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) type MatchSignals struct { diff --git a/internal/collector/types.go b/internal/collector/types.go index f08b72e..1cd7451 100644 --- a/internal/collector/types.go +++ b/internal/collector/types.go @@ -3,7 +3,7 @@ package collector import ( "context" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) type Request struct { diff --git a/internal/exporter/exporter.go b/internal/exporter/exporter.go index bfa521e..6854216 100644 --- a/internal/exporter/exporter.go +++ b/internal/exporter/exporter.go @@ -6,7 +6,7 @@ import ( "io" "strings" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) // Exporter handles data export in various formats diff --git a/internal/exporter/exporter_csv_test.go b/internal/exporter/exporter_csv_test.go index 6fd451a..a66e102 100644 --- a/internal/exporter/exporter_csv_test.go +++ b/internal/exporter/exporter_csv_test.go @@ -5,7 +5,7 @@ import ( "encoding/csv" "testing" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func TestExportCSV_IncludesAllComponentTypesWithUsableSerials(t *testing.T) { diff --git a/internal/exporter/generate_example_test.go b/internal/exporter/generate_example_test.go index 98bc1b4..80a1cd3 100644 --- a/internal/exporter/generate_example_test.go +++ b/internal/exporter/generate_example_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) // TestGenerateReanimatorExample generates an example reanimator.json file diff --git a/internal/exporter/reanimator_converter.go b/internal/exporter/reanimator_converter.go index 83ca3ef..709495f 100644 --- a/internal/exporter/reanimator_converter.go +++ b/internal/exporter/reanimator_converter.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "git.mchus.pro/reanimator/parser/v13/models" - "git.mchus.pro/reanimator/parser/v13/pciids" + "git.mchus.pro/reanimator/parser/v20/models" + "git.mchus.pro/reanimator/parser/v20/pciids" ) var cpuMicrocodeFirmwareRegex = regexp.MustCompile(`(?i)^cpu\d+\s+microcode$`) diff --git a/internal/exporter/reanimator_converter_test.go b/internal/exporter/reanimator_converter_test.go index 21c3ca8..22ccb42 100644 --- a/internal/exporter/reanimator_converter_test.go +++ b/internal/exporter/reanimator_converter_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func intPtr(v int) *int { return &v } diff --git a/internal/exporter/reanimator_event_logs_test.go b/internal/exporter/reanimator_event_logs_test.go index 7e9cd01..8b52cf8 100644 --- a/internal/exporter/reanimator_event_logs_test.go +++ b/internal/exporter/reanimator_event_logs_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func TestConvertEventLogs_UndatedEventHasNoEventTime(t *testing.T) { diff --git a/internal/exporter/reanimator_integration_test.go b/internal/exporter/reanimator_integration_test.go index 76d343d..12d4ea4 100644 --- a/internal/exporter/reanimator_integration_test.go +++ b/internal/exporter/reanimator_integration_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) // TestFullReanimatorExport tests complete export with realistic data diff --git a/internal/privacy/customer.go b/internal/privacy/customer.go index 8f3ff6f..65f1496 100644 --- a/internal/privacy/customer.go +++ b/internal/privacy/customer.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) // Multi-label public suffixes handled explicitly; every other final label is diff --git a/internal/privacy/privacy.go b/internal/privacy/privacy.go index 1c8d99d..4c257ba 100644 --- a/internal/privacy/privacy.go +++ b/internal/privacy/privacy.go @@ -13,7 +13,7 @@ import ( "strings" "unicode/utf8" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) // File is one unit of scanned content (an extracted archive member, or a diff --git a/internal/privacy/rules.go b/internal/privacy/rules.go index 7c0d8ed..db05ec0 100644 --- a/internal/privacy/rules.go +++ b/internal/privacy/rules.go @@ -5,7 +5,7 @@ import ( "regexp" "strings" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) const ( diff --git a/internal/privacy/sanitized.go b/internal/privacy/sanitized.go index c7de25d..29bcc38 100644 --- a/internal/privacy/sanitized.go +++ b/internal/privacy/sanitized.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) // A dotted quad, permissive about leading zeros so it also matches the diff --git a/internal/privacy/unit_test.go b/internal/privacy/unit_test.go index 4313f3e..7386bb0 100644 --- a/internal/privacy/unit_test.go +++ b/internal/privacy/unit_test.go @@ -3,7 +3,7 @@ package privacy import ( "testing" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func TestIsSensitiveIP(t *testing.T) { diff --git a/internal/server/chart_view_test.go b/internal/server/chart_view_test.go index 2e7dfed..4b454bf 100644 --- a/internal/server/chart_view_test.go +++ b/internal/server/chart_view_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func TestHandleChartCurrent_RendersCurrentReanimatorSnapshot(t *testing.T) { diff --git a/internal/server/collect_handlers_test.go b/internal/server/collect_handlers_test.go index e8d2fbb..183b962 100644 --- a/internal/server/collect_handlers_test.go +++ b/internal/server/collect_handlers_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func newCollectTestServer() (*Server, *httptest.Server) { diff --git a/internal/server/collect_test_helpers_test.go b/internal/server/collect_test_helpers_test.go index 77c9b0e..f3ebd65 100644 --- a/internal/server/collect_test_helpers_test.go +++ b/internal/server/collect_test_helpers_test.go @@ -6,7 +6,7 @@ import ( "time" "git.mchus.pro/mchus/logpile/internal/collector" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) type mockConnector struct { diff --git a/internal/server/device_repository.go b/internal/server/device_repository.go index ff89142..0da0f4b 100644 --- a/internal/server/device_repository.go +++ b/internal/server/device_repository.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) type slotFirmwareInfo struct { diff --git a/internal/server/device_repository_test.go b/internal/server/device_repository_test.go index 3f5b0c0..247be21 100644 --- a/internal/server/device_repository_test.go +++ b/internal/server/device_repository_test.go @@ -6,7 +6,7 @@ import ( "net/http/httptest" "testing" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func intPtr(v int) *int { return &v } diff --git a/internal/server/handlers.go b/internal/server/handlers.go index d4598e3..44e8be8 100644 --- a/internal/server/handlers.go +++ b/internal/server/handlers.go @@ -26,8 +26,8 @@ import ( "git.mchus.pro/mchus/logpile/internal/collector" "git.mchus.pro/mchus/logpile/internal/exporter" "git.mchus.pro/mchus/logpile/internal/sanitize" - parser "git.mchus.pro/reanimator/parser/v13" - "git.mchus.pro/reanimator/parser/v13/models" + parser "git.mchus.pro/reanimator/parser/v20" + "git.mchus.pro/reanimator/parser/v20/models" chartviewer "reanimator/chart/viewer" ) diff --git a/internal/server/handlers_firmware_test.go b/internal/server/handlers_firmware_test.go index 0976395..994b7bf 100644 --- a/internal/server/handlers_firmware_test.go +++ b/internal/server/handlers_firmware_test.go @@ -3,7 +3,7 @@ package server import ( "testing" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func TestExtractFirmwareComponentAndModel_GPUUsesPartNumberFromParentheses(t *testing.T) { diff --git a/internal/server/handlers_gpu_test.go b/internal/server/handlers_gpu_test.go index 2461c13..183e196 100644 --- a/internal/server/handlers_gpu_test.go +++ b/internal/server/handlers_gpu_test.go @@ -6,7 +6,7 @@ import ( "net/http/httptest" "testing" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func TestHandleGetSerials_WithGPUs(t *testing.T) { diff --git a/internal/server/handlers_serials_test.go b/internal/server/handlers_serials_test.go index b3367a5..594813a 100644 --- a/internal/server/handlers_serials_test.go +++ b/internal/server/handlers_serials_test.go @@ -1,7 +1,7 @@ package server import ( - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" "testing" ) diff --git a/internal/server/manual_input_inspect_test.go b/internal/server/manual_input_inspect_test.go index a23bdf4..7f6918e 100644 --- a/internal/server/manual_input_inspect_test.go +++ b/internal/server/manual_input_inspect_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) // TestManualInspectInput is a persistent local debugging harness for checking diff --git a/internal/server/privacy_scan_test.go b/internal/server/privacy_scan_test.go index f5f4b37..2a77494 100644 --- a/internal/server/privacy_scan_test.go +++ b/internal/server/privacy_scan_test.go @@ -8,7 +8,7 @@ import ( "net/http/httptest" "testing" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func samplePrivacyScan() *models.PrivacyScan { diff --git a/internal/server/raw_export.go b/internal/server/raw_export.go index 018b8ed..28dc3de 100644 --- a/internal/server/raw_export.go +++ b/internal/server/raw_export.go @@ -14,7 +14,7 @@ import ( "time" "git.mchus.pro/mchus/logpile/keys" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) const rawExportFormatV1 = "logpile.raw-export.v1" diff --git a/internal/server/raw_export_test.go b/internal/server/raw_export_test.go index c6c1b42..55a5305 100644 --- a/internal/server/raw_export_test.go +++ b/internal/server/raw_export_test.go @@ -3,7 +3,7 @@ package server import ( "testing" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func TestBuildParserFieldSummary_MirrorsBoardInfoToTopLevel(t *testing.T) { diff --git a/internal/server/sanitize_handlers_test.go b/internal/server/sanitize_handlers_test.go index c65fd63..e1e51c6 100644 --- a/internal/server/sanitize_handlers_test.go +++ b/internal/server/sanitize_handlers_test.go @@ -12,7 +12,7 @@ import ( "strings" "testing" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func leakDumpBytes(t *testing.T) []byte { diff --git a/internal/server/server.go b/internal/server/server.go index 53af1cc..943fff3 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -10,8 +10,8 @@ import ( "time" "git.mchus.pro/mchus/logpile/internal/collector" - parser "git.mchus.pro/reanimator/parser/v13" - "git.mchus.pro/reanimator/parser/v13/models" + parser "git.mchus.pro/reanimator/parser/v20" + "git.mchus.pro/reanimator/parser/v20/models" chartviewer "reanimator/chart/viewer" ) diff --git a/internal/server/source_metadata_test.go b/internal/server/source_metadata_test.go index 8309558..9f2d69e 100644 --- a/internal/server/source_metadata_test.go +++ b/internal/server/source_metadata_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func TestApplyArchiveSourceMetadata(t *testing.T) { diff --git a/internal/server/topology_view.go b/internal/server/topology_view.go index f2aa28c..a36f358 100644 --- a/internal/server/topology_view.go +++ b/internal/server/topology_view.go @@ -6,7 +6,7 @@ import ( "git.mchus.pro/mchus/logpile/internal/exporter" "git.mchus.pro/mchus/logpile/internal/topology" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func currentTopologyDocument(result *models.AnalysisResult) (*models.TopologyDocument, error) { diff --git a/internal/server/topology_view_test.go b/internal/server/topology_view_test.go index 6bcb9a3..783f682 100644 --- a/internal/server/topology_view_test.go +++ b/internal/server/topology_view_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func topologyTestResult() *models.AnalysisResult { diff --git a/internal/topology/build.go b/internal/topology/build.go index 5dfcdcc..d70c83e 100644 --- a/internal/topology/build.go +++ b/internal/topology/build.go @@ -9,7 +9,7 @@ import ( "strings" "git.mchus.pro/mchus/logpile/internal/exporter" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) const ContractVersion = "1.0" diff --git a/internal/topology/build_test.go b/internal/topology/build_test.go index b8c5c16..9ea046d 100644 --- a/internal/topology/build_test.go +++ b/internal/topology/build_test.go @@ -6,7 +6,7 @@ import ( "testing" "git.mchus.pro/mchus/logpile/internal/exporter" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) func intp(v int) *int { return &v } diff --git a/internal/topology/render.go b/internal/topology/render.go index fb284a1..828e0f2 100644 --- a/internal/topology/render.go +++ b/internal/topology/render.go @@ -6,7 +6,7 @@ import ( "sort" "strings" - "git.mchus.pro/reanimator/parser/v13/models" + "git.mchus.pro/reanimator/parser/v20/models" ) type card struct {