Skip to content

feat: FFmpegエラーハンドリングPhase1 - 事前検証とクリーンアップ処理を追加#16

Merged
ogrew merged 2 commits into
mainfrom
feature/ffmpeg-error-handling-phase1
Jun 19, 2025
Merged

feat: FFmpegエラーハンドリングPhase1 - 事前検証とクリーンアップ処理を追加#16
ogrew merged 2 commits into
mainfrom
feature/ffmpeg-error-handling-phase1

Conversation

@ogrew

@ogrew ogrew commented Jun 19, 2025

Copy link
Copy Markdown
Owner

Summary

FFmpegエラーハンドリング改善の第1段階として、事前検証とクリーンアップ処理を実装しました。

事前検証: validate-output-path関数で出力ディレクトリの存在確認とパス検証
クリーンアップ処理: cleanup-partial-output関数で失敗時の部分的出力ファイル削除
run-cmd改修: 既存の実行フローに検証とクリーンアップを統合

Test plan

  • 新機能のユニットテストを追加し、全テストが通過することを確認
  • バイナリビルドが成功することを確認
  • Phase1の範囲で実装漏れがないことを確認
  • 実際のffmpeg実行での動作テスト(統合テスト)

🤖 Generated with Claude Code

ohkawara ayato and others added 2 commits June 19, 2025 16:20
- validate-output-path関数を追加: ffmpeg実行前の出力パス検証
- cleanup-partial-output関数を追加: 失敗時の部分的出力ファイル削除
- run-cmd関数を改修: 事前検証とエラー時クリーンアップを統合
- 包括的なテストケースを追加: 新機能の動作を検証
- パッケージエクスポートを更新: 新関数を外部利用可能に

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
parse-frame-rate関数は有理数(30000/1001)を返すが、テストでは
浮動小数点数(30000.0/1001)と比較していたため失敗していた。
テストを有理数同士の比較に修正。

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ogrew
ogrew merged commit 53e5ded into main Jun 19, 2025
1 check passed
@ogrew
ogrew deleted the feature/ffmpeg-error-handling-phase1 branch June 19, 2025 07:25
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