feat(npm): re-enter the resolver on a virtual drain failure
What this MR does
VirtualReadResult now keeps, unexported, the virtual.Request that Resolve ran.
VirtualResolution.resolveDrainFailure hands a failed pre-header drain back to virtual.Resolver.ResolveDrainFailure over that same request.
The VirtualResolver seam gains ResolveDrainFailure for this.
Part 4 calls this entry point when the drain of a cold tarball HEAD fails.
internal/format/npm/virtual_operations.md records the entry point.
Tests
TestVirtualResolution_DrainFailureReportsAnUnbuiltFacadecovers the unbuilt facade.- The test fakes of the seam gain
ResolveDrainFailure. - Part 4 covers the served path through the handler, in the cold
HEADdrain cases ofvirtual_tarball_faults_test.go.
Split of !3111 (merged)
This MR is one part of a split of !3111 (merged) into six stacked MRs. Each part targets the branch of the part before it, so each diff shows only that part. Merge the parts in order: 1, 2, 3, 4, 5, then !3111 (merged) itself as part 6.
| Part | MR | Contents |
|---|---|---|
| 1 | !3150 (merged) | npm_files.created_at to the hosted tarball winner |
| 2 | !3147 (merged) | Resolver re-entry on a virtual drain failure |
| 3 | !3148 (merged) | VirtualTarballHandler, not wired |
| 4 | !3149 (merged) | Copy-fault accounting, kill log, cold HEAD drain failure |
| 5 | !3151 (merged) | Usage events |
| 6 | !3111 (merged) | Slot wiring, run recipe, docs |
The six parts together are byte-identical to the original !3111 (merged) diff (same git patch-id --stable).
The spec coverage table, the rulings (E1 to E22), and the spec gaps stay in the description of !3111 (merged).
E2E scenario catalog and user documentation
This part adds no e2e scenario and changes no file in docs/user/.
Nothing wires the virtual tarball handler before part 6, so the route still answers 501 and no client-visible behavior changes.
Related to #898 (closed)