Repository navigation
fix(desktop): preserve Rewind writer error classification - #9818
Merged
Merged
Conversation
Pass caught VideoChunkEncoder/RewindIndexer failures to logError as structured errors so the existing #9193 disk-write classifier can inspect RewindError.storageWriteFailed underlying OS errors. Tests: - xcrun swift test --package-path Desktop --filter RewindStorageErrorClassificationTests - xcrun swift test --package-path Desktop --filter 'VideoChunkEncoderPresentationTimeTests|RewindEncoderDiagnosticsSourceTests' - python3 scripts/check_desktop_test_quality.py - make preflight (blocked only because this internal-only local branch has no no-changelog-needed PR label)
Preserve structured errors when stale, memory-pressure, and power-cadence finalization/flush paths fail so storage classification can inspect their wrapped causes. Keep each existing recovery path running after logging. Tests: xcrun swift test --package-path Desktop --filter RewindStorageErrorClassificationTests (passed before rebase); python3 scripts/check_desktop_test_quality.py; make preflight.
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.
Summary
Follow-up to #9193.
Preserves structured Rewind writer errors when logging writer-start, frame-write, frame-processing, and chunk-flush failures, allowing the existing storage-write classifier to inspect the real wrapped error rather than only an interpolated string.
Root cause and durable guard
Relevant catch paths called
logErrorwithout the caught error, bypassing established disk-write classification. A narrow wiring regression test covers every affected logging site. This does not suppress or alter unknown AVFoundation failures; writer retry/reset behavior is unchanged.Verification
xcrun swift test --package-path Desktop --filter RewindStorageErrorClassificationTests— 9 passedgit diff --check— passed