Repository navigation
Conversation
A rollover chunk whose recorder exits without writing left a zero-byte file. Its existence counted as readiness, so the sequential fallback never ran and record stop later failed on the empty artifact. Closes callstack#4550
There was a problem hiding this comment.
No issues found across 2 files
You’re at about 93% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
|
The code change at 5630ceb looks right for the reported case, but there is no live Android run of the route it changes yet. All 14 checks pass at this head.
Not blocking, and you can take or leave these: |
|
Thanks. Live run at
This emulator accepts a second concurrent recorder, so the refusal path is covered only by mocks. The size probe replaces the Your other points:
|
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
You’re at about 95% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
|
This PR is ready at 39d1896. The slow-first-write pin test is now in, the live Android run is posted, the production code is unchanged since that run, and all 14 checks pass. Not blocking, and you can take or leave it: on the real transport a size poll runs The review thread on the slow-first-write test does not apply, so you can resolve it: that test is a pin that passes on base, and the empty-artifact test is the one that fails on base (#4559 (comment)). The sequential fallback is covered only by mocks, as you noted. |
|
You are right, and my claim was wrong. On the real transport, I resolved the thread on the pin test, as you suggested. |
* origin/main: fix(alert): derive the request envelope from an alert wait window (#4581) fix(android): require a nonzero chunk before a recorder counts as ready (#4559) chore(deps): clear astro and node-forge security alerts (#4577) fix(ios): establish the screen origin of a full-screen private AX root (#4573) docs(agents): trace behavior claims during review (#4576) fix(mcp): trim the press plan text back under the always-loaded byte budget (#4572) refactor(alert): one helper owns the alert runner budget (#4563) feat(interaction): multi-ref press plan lowered through the ordinary press lane (#4296) fix(ios): use the caller's budget for alert get and type the watchdog outcome (#4540) feat(recovery): bound remote health and runner-busy recovery by the command's deadline (#4541) fix(ios): find the navigation bar back button outside the bar's subtree (#4542) feat(open): report device kind, model and osVersion on open and session identity (#4543) fix(apple): use typed screenshot timeouts and observed shutdown recovery (#4544) feat(device-status): report per device whether a new session can take it (#4547) fix(runner): type the refusals for a control the target cannot supply (#4548) refactor(transport): share outgoing transfer phase ownership (#4551) fix(remote): bound artifact preparation and upload phases (#4552)
Summary
Fixes #4550. A rollover chunk counted as ready as soon as its file existed. When the device refuses a second concurrent
screenrecord, the new recorder exits and leaves a 0-byte file. The rotation committed that chunk, the sequential fallback never ran, andrecord stopfailed withartifact is not stable.waitForReadynow needs a non-zero size, as the readiness check did before #1724 moved it ontoexists. A dead recorder with an empty file now fails the start, so the existing concurrent-start recovery runs. A live recorder still counts as ready after the bounded wait; while its file is empty, a start waits up to two 250 ms polls. If the sequential start also fails, the rotation gives today's typed error.Partial-recording return and the close/claim path are unchanged.
2 files:
chunks.tsandruntime.test.ts(two new cases; the SIGINT case now counts calls after start). No scope expansion.Validation
Base
d78be6c88, head5630ceb28.pnpm exec vitest run --project unit-core packages/platform-android/src/recording/runtime.test.ts: base 1 failed, 16 passed; head 17 passed.39d18960cadds a pin test (18 passed).pnpm check:quick: passed.pnpm check:affected --run --base upstream/main --head 5630ceb28(exactCommit: true): format, lint, typecheck, layering, fallow and build passed.vitest-relatedfailed by 5 s timeouts across 67 provider files on a loaded host.android-recording.test.tsalone times out on base and head alike. CI owns these.Live run at
5630cebon an Android 16 emulator: see the review reply. The refusal path is covered only by mocks.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.