Skip to content

fix: release failed canvas captures and ratchet coverage - #50

Merged
sarthakagrawal927 merged 1 commit into
mainfrom
agent/motion-26-recorder-coverage-20261014
Oct 13, 2026
Merged

sarthakagrawal927 merged 1 commit into
mainfrom
agent/motion-26-recorder-coverage-20261014

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

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:

  • Full pnpm check: 19 files / 88 tests, zero complexity violations or duplication, zero critical/high advisories across 323 audited dependencies.
  • Two dedicated coverage runs and the final full check agree: 46.6% lines, 42.23% branches, 56.09% functions, 46.85% statements. Checked-in minima: 46.6 / 42.2 / 56.0 / 46.8.
  • XcodeBuildMCP compile-only iOS simulator build succeeds on Xcode 26.6; Swift-format remains 8 and exact-index Periphery 3.8.0 remains 66. No app/simulator launch.

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.

@sarthakagrawal927
sarthakagrawal927 merged commit 61d4b94 into main Oct 13, 2026
2 checks passed
@sarthakagrawal927
sarthakagrawal927 deleted the agent/motion-26-recorder-coverage-20261014 branch October 16, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant