Repository navigation
fix(qa): keep diagnostics package identity current [AI] - #120636
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 12:39 PM ET / 16:39 UTC. ClawSweeper reviewWhat this changesThis PR updates the diagnostics OpenTelemetry managed-install E2E to derive registry, install, and persisted-record versions from the staged plugin manifest instead of a stale literal. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. Current main still builds a managed-plugin E2E registry identity that disagrees with the packed OpenTelemetry artifact; this focused test-only PR removes that duplicate version owner. The maintainer label and incomplete exact-head CI require normal maintainer review rather than automated cleanup. Priority: P2 Review scores
Verification
How this fits togetherThe QA runtime test stages and packs the diagnostics OpenTelemetry plugin, publishes it through a local registry, then installs it through the managed-plugin path. Its assertions verify that the persisted install record and telemetry scenarios refer to the artifact actually packed. flowchart LR
A[Plugin source manifest] --> B[Staged package]
B --> C[Packed tarball and version]
C --> D[Local fixture registry]
D --> E[Managed plugin install]
E --> F[Persisted install record]
F --> G[Telemetry scenario assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +5. Total +5 across 1 file. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk options
Maintainer options:
Technical reviewBest possible solution: Retain the single manifest-derived artifact identity flow and merge it after exact-head CI is green. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main packages a manifest at 2026.8.1 but advertises and asserts 2026.7.2 through the same local registry/install path; the PR body also supplies an exact Testbox reproduction and after-fix run. Is this the best way to solve the issue? Yes. Reading the staged manifest at the packing boundary is the narrowest canonical source of truth and matches the adjacent diagnostics Prometheus fixture. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 13e30a9d55e6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Land-ready proofExact head: The defect was a duplicate fixture-version owner: the test registry advertised a stale literal while serving a tarball built from the current diagnostics-otel manifest. The candidate makes the staged manifest authoritative for the tarball, registry, requested spec, and persisted install-record assertions. Proof:
No external live boundary applies: this is an isolated test registry/package-identity fixture, and the real managed pack/install/restart/telemetry path is the focused E2E proof above. |
|
Merged via squash.
|
(cherry picked from commit a413b16)
Closes #120635
What Problem This Solves
Fixes an issue where the managed diagnostics-otel install E2E published the current source tarball as the stale hard-coded version
2026.7.2. The packed package manifest was already2026.8.1, so the persisted install record correctly disagreed with the fixture registry and both runtime tests failed before reaching telemetry behavior.Why This Change Was Made
The packed artifact is the authoritative identity.
packPlugin()now reads the staged package manifest once and returns its version alongside the tarball. That exact value is threaded through the local registry, requested npm spec, and persisted install-record assertions.This matches the adjacent diagnostics-prometheus install fixture and removes the duplicate version owner. Production plugin install semantics are unchanged.
User Impact
Plugin version bumps no longer make the managed OpenTelemetry install/runtime proof fail on an artificial registry/package mismatch. The E2E test can reach and verify configuration precedence, sampling, flushing, and preloaded-SDK behavior again.
Evidence
Pre-fix isolated behavior:
specandresolvedVersion:2026.7.2version:2026.8.1Exact candidate:
CI=1 pnpm test test/e2e/qa-lab/runtime/diagnostics-otel-install-runtime.e2e.test.tstbx_01kzh2zgbstbs2jzz12hkka8s9Additional proof:
AI Assistance
AI-assisted. The failing install record, source package manifest, registry fixture, sibling diagnostics fixture, and final diff were reviewed directly before publication.