Repository navigation
fix(replay): publish recordings after suite archive copy - #5100
Conversation
Size Report
Startup median (7 runs, lower is better):
|
There was a problem hiding this comment.
All reported issues were addressed across 18 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 1994657. The verdict and the full list are in the summary comment.
1994657 to
0cde418
Compare
|
This PR is ready at 0cde418, once the checks and the base PR noted below are done. Not blocking: these can be taken or left: could one No open review thread still applies, so these can be resolved: ordering check is fixed; late cleanup paths are omitted on purpose and documented; collect after lock is fixed; relative public paths are intended and tested; test cleanup scope is fixed; doc comment is fixed; late detached collection is skipped on purpose and documented; copy failure now returns a warning and keeps the source on the host. Not verified here: tests were not run locally, and the regression test was checked only by reading 1994657. The live Android evidence comes from 42b91eb (same patch as ba6c9ad) and is still treated as valid, because the later changes are host-side file handling only. It was not confirmed whether session close can leave a suite recording incomplete without an error. Nothing has failed in CI, and 16 checks passed. "Body rules" was cancelled, probably by a newer run. It validates the PR description and covers no code changed here. One other check is still queued. Before merge, "Body rules" needs a re-run and the queued check needs to finish. Then #5099 must merge first, because this PR is stacked on it. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 0cde418. The verdict and the full list are in the summary comment.
0cde418 to
bfd9e77
Compare
This comment has been minimized.
This comment has been minimized.
|
No code problems were found at bfd9e77, and the earlier clean review still holds. All 20 checks pass. No further change is needed before merge. Both open threads can be resolved. This one is fixed: ADR 0024 now states that the suite owns stop and that startup recovery settles without publishing, and the code matches. This one does not apply: the second argument of Not verified here: tests were not run locally. The upstream #5099 changes brought in by the rebase were checked only enough to confirm that they are base content and not logic from this PR. |
bfd9e77 to
76ed197
Compare
This comment has been minimized.
This comment has been minimized.
|
No code problems were found at 76ed197, and the result of the earlier review at bfd9e77 still holds. All 19 checks pass at this commit, and the required evidence is in place. Two open threads no longer apply and can be resolved. This one is fixed: ADR 0024 now says the suite owns the stop and startup recovery leaves files on the host, and a direct stop is refused. This one needs no change: the second Not verified here: tests, typecheck and a live device run were not performed. The upstream commit 118d16f from #5099 was read only for its interaction with this PR and was not reviewed on its own. Nothing else needs to change before merge. |
76ed197 to
f1f8089
Compare
This comment has been minimized.
This comment has been minimized.
f1f8089 to
5e5bf08
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 5e5bf08. The verdict and the full list are in the summary comment.
Apex Sentinel · ✅ Approve · review of
|
| Finding | Fixed by | Where |
|---|---|---|
| Suite recording collection failure and warning are dropped when close throws | thymikee | 58d16d8 · reply |
Reviewed with this repository's own Sentinel configuration (2d29b6d6e348).
💬 Talking to Sentinel
In a finding's thread, reply with:
| 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.
|
No code problems found at 58d16d8. Recordings are now collected only after the close with retry settles. If the close throws, collection is skipped, so a publication warning can no longer be computed and then silently lost. The earlier thread no longer applies for that reason and can be resolved. One limit remains. When the close fails, the recording now stays only on the daemon host, with no ID and no warning, and the infrastructure failure is the only signal. At 76ed197 it was copied and published. This is treated as the deferred publication choice that the PR description documents and #5104 tracks, not as a regression. Not verified here: whether base 9f44fe3 put a recording stopped during cleanup into the archive on this route. The recording was written straight to the requested archive path there, and its artifact path membership was not traced. The PR description reports 32 focused tests and typecheck passing at this commit. Not verified here: the focused tests were not run for this review. The live run at bfd9e77 predates this commit. The new behavior is limited to the close failure route, which a live run cannot easily reach, and the success route is unchanged. The only check that did not pass is Body rules, which was cancelled. It validates the PR description, not code, and this change does not touch its route, so it is likely unrelated to the code. All other checks are green. Before merge, update the PR description as needed so that Body rules passes. |
Summary
Stacked on #5099. Refs #4970 and #5104. Remote
test --record-videocopies verified recordings into the suite archive before publishing standalone IDs.Before / after
Validation
9f44fe308b. At58d16d8c5f, 32 focused tests and typecheck passed. The failed-close regression reproduced copying before the fix and now verifies the export stays on the host. All 13 runnable affected checks passed withexactCommit: true.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.