fix(replay): publish recordings after suite archive copy
TH
15h ago+619+619+012345678901234567890123456789-95-95-01234567890123456789
Summary
Stacked on #5099. Refs #4970 and #5104. Remote test --record-video copies verified recordings into the suite archive before publishing standalone IDs.
Before / after
- The suite reports IDs for recordings collected before it responds. The producing lease can download them after archive consumption. Detached cleanup leaves its files on the daemon host.
- Copying happens after the attempt's device lock is released. A collection failure rolls back partial copies and adds a warning while preserving the test outcome.
- Public callers without a destination receive relative or basename-only paths. Remote failure paths use the same projection. Trusted requests with a client destination use a unique archive under the session directory.
- Attempt results add only recording paths produced during cleanup.
Validation
- Rebased on #5099 at
118d16f4a7with all four suite patches unchanged. At76ed197ff4, 29 focused tests and typecheck passed. All 13 runnable affected checks passed withexactCommit: true, including daemon wire compatibility. - Live at
bfd9e77132on Android 16. The HTTP suite passed 1/1 and all 229 video frames decoded. The standalone GET returned 401 without the lease and 200 with it after archive consumption. The bytes matched, and both consumed IDs returnedRESOURCE_EXPIRED. Direct stop delivered a decodable MP4 and telemetry. The test session and daemon closed, and the emulator shut down.