Add a standalone GPU history comparison view that reads and compares
Kongming workload history (workloads/runs/pods/events and metric
catalog) without creating a load-test experiment. Supports three
workload types, deleted-discovery resources, parent/child runs,
missing lifecycle timestamps and completeness evidence.
Backend:
- Add eight history API routes (list, by-id, catalog, metric query)
with POST and cancellation, reusing Kongming credentials, project,
cluster and TLS.
- Add structured RequestError retaining safe upstream evidence
(status/code/trace/message) without leaking response bodies or
credentials; redact secrets in error text.
- Enforce owner checks on connection reads, never send Kongming
credentials to the browser, and preserve existing credentials when
editing omits them.
- Generate Go and TypeScript clients from the contract sources.
Frontend:
- Add GPU history workbench with up to 4 comparison panes, each
keeping its own source, run/resource window, child-run toggle and Pod
UID; relative/absolute time axes, URL restore and re-authorization,
no persistent caching.
- Batch metric queries by source range, keeping separate series per
device/Pod UID/container/revision/shared attributes and both
timestamp kinds; gap breaks, no zero-fill, no cross-device sum.
- Add event cursor pagination, instance/container execution, GPU
attribution and redacted config diffs, with distinct states for
partial attribution, unsupported, no data, backend failure, invalid
credentials, insufficient permissions and user cancellation.
- Add shadcn-style Popover/Command/Select/Calendar/date-time picker
components for the filtered connection/project/cluster picker.
Tests, docs and verification:
- Add 5 Chromium tests plus Go history client/API integration and race
tests; verified against a real Kongming deployment (114 successful
inference requests, 12 metric series, 124 sampled points) after a
collector label fix.
- Add GPU history user guide and record integration and verification
details, including the pre-existing credential-source test failure
reproduced on unmodified HEAD.