Review findings: DURATION tag range check, test cleanup #9

Merged
khyretos merged 1 commit from fix/review-findings into main 2026-11-09 09:12:10 +01:00
Owner

Requested by Kees

Clears the open Kreative PR findings from #5, #6 and #8.

Fixed here:

  • KK-66b658a0de: stream_duration returns no length for a DURATION tag with out-of-range minutes/seconds instead of a wrong one
  • KK-9ccee64fa5: RealFiles cleans its temp folder with addClassCleanup, so a failing setUpClass leaves nothing behind

Dismissed as false positives (reason recorded in the findings ledger):

  • KK-636033240b: _vmaf_score only parses the GPU output when rc == 0
  • KK-f1a1d61e69: run is the injected process runner, there is no recursion
  • KK-cf487d87c7: FakeRun is a unit-test fake on purpose; the real ffmpeg path is covered by the GPU check against the CPU score
  • KK-42ec94f1e3: encoder qsv always means av1_qsv here (encoders are qsv/vaapi/nvenc/svt, all AV1)
  • KK-e57fe08f18: the hwaccel chain is meant for the first (encoded) input only; the finding itself says the logic is sound
  • KK-4e0d72164a: input options must come before -i in ffmpeg, so the order check is the behaviour under test
  • KK-d4906bdf60: on a timeout video_packets_after returns True on purpose (never keeps a short copy by mistake)

🤖 Generated with Claude Code

<!-- claude-projects-attribution: {"github_login":"Khyretos"} --> _Requested by **Kees**_ Clears the open Kreative PR findings from #5, #6 and #8. Fixed here: - KK-66b658a0de: `stream_duration` returns no length for a DURATION tag with out-of-range minutes/seconds instead of a wrong one - KK-9ccee64fa5: `RealFiles` cleans its temp folder with `addClassCleanup`, so a failing `setUpClass` leaves nothing behind Dismissed as false positives (reason recorded in the findings ledger): - KK-636033240b: `_vmaf_score` only parses the GPU output when `rc == 0` - KK-f1a1d61e69: `run` is the injected process runner, there is no recursion - KK-cf487d87c7: FakeRun is a unit-test fake on purpose; the real ffmpeg path is covered by the GPU check against the CPU score - KK-42ec94f1e3: encoder `qsv` always means av1_qsv here (encoders are qsv/vaapi/nvenc/svt, all AV1) - KK-e57fe08f18: the hwaccel chain is meant for the first (encoded) input only; the finding itself says the logic is sound - KK-4e0d72164a: input options must come before `-i` in ffmpeg, so the order check is the behaviour under test - KK-d4906bdf60: on a timeout `video_packets_after` returns True on purpose (never keeps a short copy by mistake) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- stream_duration ignores a DURATION tag whose minutes or seconds are out of
  range instead of returning a wrong length (KK-66b658a0de)
- RealFiles removes its temp folder through addClassCleanup, so a failing
  setUpClass leaves nothing behind (KK-9ccee64fa5)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Collaborator

/review

/review
Collaborator

PR Reviewer Guide 🔍

(Review updated until commit 10a38d10e2)

Here are some key observations to aid the review process:

🧪 No relevant tests
🔒 No security concerns identified
⚡ No major issues detected
## PR Reviewer Guide 🔍 <!-- pr-agent:review:full --> #### (Review updated until commit https://git.kreative-kompas.com/khyretos/kk-reencoder/commit/10a38d10e25e34ed1364376995a826378169ae0f) Here are some key observations to aid the review process: <table> <tr><td>🧪&nbsp;<strong>No relevant tests</strong></td></tr> <tr><td>🔒&nbsp;<strong>No security concerns identified</strong></td></tr> <tr><td>⚡&nbsp;<strong>No major issues detected</strong></td></tr> </table>
Collaborator

/review

/review
Author
Owner

/review

/review
khyretos deleted branch fix/review-findings 2026-11-09 09:12:10 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
khyretos/kk-reencoder!9
No description provided.