Repository navigation
Conversation
A remote `test --record-video` whose script ends with `close` answered `success: true` with no `recordingArtifacts`, and the attempt folder in the `test-artifacts` download had no `recording.mp4`, while the MP4 stayed on the daemon host. That close retires the attempt session inside the replay action, so suite cleanup resolved no session for the attempt and returned before collecting the export its close had just committed. Cleanup now settles against the attempt's last pinned ref, which still names the session directory and the lifetime the committed export is guarded by, and the attempt keeps that ref instead of overwriting it with an unresolvable pin.
Size Report
Startup median (7 runs, lower is better):
|
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
|
The code in 0d6d9e7 looks ready: the replay cleanup now collects a suite recording that its script closed early, and the new unit test covers that route. Not blocking, and fine to take or leave: the |
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
This PR is ready at a33ad0d. The code looks correct, and the production route is unchanged since the earlier head, so the change is only the stronger test, which now checks the archived telemetry sidecar contents, the inventory type and the recording artifact id and client path. The 18 checks at this head show none failing, and there are no conflicts. Merge needs only the code lanes to stay green. The open inline thread asking for telemetry sidecar assertions at #5428 (comment) is fixed at this head, so it can be resolved. Not blocking, and each can be taken or left: Not verified here: the live run is the author's report on 0d6d9e7, with no pasted output, and it ran on iOS 27.0 where the issue reported 27.2. The tests were not run locally, and the base-failure property was judged from the code path, not from a base run. Whether a lease-expiry reap of the attempt session commits a suite token through the same teardown, and whether attempt session names are unique per suite and retry, were not traced. |
Summary
A remote
test --record-videowhose script closes its own session delivers its recording (#5421).Suite cleanup closes the attempt session it owns. A script that already ran
closeretires it inside the replay action, so cleanup found no live session and returned before collecting the export that close's teardown had committed:success: true, atest-artifactsdownload with norecording.mp4, norecordingArtifacts, no warning, and a valid MP4 left on the daemon host.Cleanup now settles against the attempt's last pinned ref, which still names the session directory and the lifetime guarding that committed export. ADR 0024 ownership, expiry and lease scope are unchanged.
Before / after
close: base gave norecordingArtifactsandcopiedArtifacts: screenshot.png. Head deliversrecording.mp4plus telemetry and names both ids.close: unchanged, both files once.Validation
Head
0d6d9e79cb, base17aadacb13(origin/0.22). Production +24/-8.pnpm check:affected --run --base origin/0.22 --head 0d6d9e79cb: all runnable checks passed,exactCommit=true. Receipt.tmp/validation/run-oYrrM9/receipt.json.a33ad0d2ac, the expanded test verifies delivery of both the MP4 and telemetry. The test and typecheck passed.0.22.0-devdaemon, proxy and client state dir; iPhone 17 Pro, iOS 27.0. The report was 27.2.CI owns Coverage and device lanes.