Repository navigation
Install ExifTool and FFmpeg for CI Unit Tests via the Pre-Test Hook - #290
Conversation
The CI runner has neither tool, so the media tests skip there. Add the hub's opt-in pre-test hook, which each .NET unit-test leg runs before the SDK setup, and install both tools from apt in it. The hook ships in hub release 2.0.1495, so every hub pin moves from 2.0.1473 to that release in lockstep. Between the two tags only validate-task.yml changed among the tasks this repository calls, and it adds no required input. OPERATIONS.md no longer says CI never runs against a real exiftool or ffmpeg install. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #290 +/- ##
============================================
+ Coverage 41.73% 76.91% +35.18%
============================================
Files 27 27
Lines 4445 4445
Branches 390 390
============================================
+ Hits 1855 3419 +1564
+ Misses 2520 910 -1610
- Partials 70 116 +46
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🔵 Needs a closer look
Static review cannot verify that the pinned workflow invokes the apt-based hook successfully on a live runner or that the media tests actually execute, so the post-change CI log is required.
No open issues 🎉
What changed in this PR
This pull request enables CI unit tests to exercise media-dependent behavior by installing ExifTool and FFmpeg through a pre-test hook, updates reusable workflow pins, and corrects the local verification documentation.
Changes:
- Add a composite pre-test action that installs and reports ExifTool and FFmpeg.
- Update reusable workflow pins to version
2.0.1495. - Document the revised CI media-tool setup in
OPERATIONS.md.
| File | Description |
|---|---|
| OPERATIONS.md | Updates local verification documentation to describe CI installation and use of ExifTool and FFmpeg. |
| .github/workflows/test-pull-request.yml | Updates validation and smoke-build reusable workflow pins. |
| .github/workflows/publish-release.yml | Updates reusable workflow pins used by the release workflow chain. |
| .github/workflows/merge-bot-pull-request.yml | Updates the merge-bot reusable workflow pin. |
| .github/actions/pre-test/action.yml | Adds a composite pre-test action that installs ExifTool and FFmpeg before .NET tests run. |
Review effort: Lite
|
Answer to the verdict headline on the review round covering 6fad0abe, (1) item:
|
|
@coderabbitai review |
Action performed
|
Summary
The CI unit-test job had neither
exiftoolnorffmpeg, so the tests that need them skipped through the shared media fixture. This adds the hub's opt-in pre-test hook, which installs both tools before the .NET tests run..github/actions/pre-test/action.yml, a composite action with no inputs or outputs. It installslibimage-exiftool-perlandffmpegfrom apt and prints each tool's version.2.0.1473to2.0.1495(a1fa51ccced11f464ec4d4bd2b14533293405932), the release that ships the hook. Between the two tags,validate-task.ymlis the only workflow this repository calls that changed. It gains the pre-test step and an optionaltest-matrix-fileinput, and no required input.OPERATIONS.md"Local Verification", which said CI never runs against a realexiftool/ffmpeginstall.Closes on promotion: #277
Verification
check-jsonschema --builtin-schema vendor.github-actionspasses on the new action, and shellcheck passes on itsrun:body.dotnet testwith both tools installed: 433 total, 426 passed, 7 skipped.🤖 Generated with Claude Code
Summary by CodeRabbit