Repository navigation
fix: release failed canvas captures and ratchet coverage - #50
Merged
sarthakagrawal927 merged 1 commit intoOct 13, 2026
Merged
Conversation
sarthakagrawal927
deleted the
agent/motion-26-recorder-coverage-20261014
branch
October 16, 2026 19:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If MediaRecorder construction fails after canvas capture succeeds, the captured tracks kept running. Release them through the existing teardown path before reporting the unchanged error. A regression reproduces the leak, verifies every track stops exactly once, and proves a successful retry; companion tests cover normal local recording/download cleanup and unsupported browsers.
Ratchet production coverage to the measured improvement without changing included files. Enable coverage on the existing iOS test invocation and upload xccov JSON/text evidence. Keep the eight intentional Swift lint findings explicit; no UI, protocol, camera, permission or dependency changes.
Validation:
pnpm check: 19 files / 88 tests, zero complexity violations or duplication, zero critical/high advisories across 323 audited dependencies.The 66 Periphery findings were inspected: 12 unused delegate parameters, 41 parked recording/tap/view findings, 10 protocol/relay helpers, and 3 currently unreferenced lifecycle stop methods. None were deleted to reduce the count. Native coverage export is pending this PR's CI execution; the existing 14 tests previously passed on exact main. Physical camera/ReplayKit and release behavior are separate and unqualified by this change.
Refs #26. No release or deployment.