Skip to content

Promote CI Media Tests via the Pre-Test Hook to Main - #291

Merged
ptr727 merged 1 commit into
mainfrom
develop
Nov 19, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Promotes one feature pull request from develop to main.

PR Change Closes
#290 CI unit tests install exiftool and ffmpeg through the hub's new pre-test hook, and all hub pins move to 2.0.1495 #277

Fixes #277

🤖 Generated with Claude Code

…290)

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]>
Copilot AI lite review requested due to automatic review settings November 18, 2026 23:54
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.91%. Comparing base (3731ff9) to head (5202d11).
⚠️ Report is 167 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #291       +/-   ##
===========================================
+ 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     
Flag Coverage Δ
dotnet 76.91% <ø> (+35.18%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human confirmation is needed that the pinned cross-repository validator’s hosted-runner execution installs both tools and successfully runs the media tests.

No open issues 🎉

What changed in this PR

Promotes CI support for media-dependent unit tests to main by adding a pre-test hook that installs ExifTool and FFmpeg, updating ProjectTemplate workflow pins to 2.0.1495, and aligning operations documentation.

Changes:

  • Adds a composite pre-test action that installs and reports ExifTool and FFmpeg before unit tests.
  • Updates validation, release, and merge-bot workflow pins.
  • Documents the media tools available during CI unit tests and the remaining manual integration coverage.
  • Notes that the package-install shell block requires deterministic cancellation handling.
File Description
OPERATIONS.md Documents the updated CI media-tool setup and the distinction between automated unit tests and manual integration coverage.
.github/​workflows/​test-pull-request.yml Updates validation and smoke-build reusable workflow pins to ProjectTemplate 2.0.1495.
.github/​workflows/​publish-release.yml Updates release-chain reusable workflow pins to ProjectTemplate 2.0.1495.
.github/​workflows/​merge-bot-pull-request.yml Updates the merge-bot reusable workflow pin to ProjectTemplate 2.0.1495.
.github/​actions/​pre-test/​action.yml Adds a composite pre-test action that installs and reports ExifTool and FFmpeg before .NET tests.

Review effort: Lite

@ptr727

ptr727 commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

The hosted-runner confirmation this verdict asks for is in this PR's own CI run 44424680810, job "Validate sources job / Unit test job (Python 3.13)". The step Run ./.github/actions/pre-test ran after checkout and before "Setup .NET SDK step". It printed exiftool version 13.50 and ffmpeg version 8.0.1-3ubuntu2. The test run then reported total 433, failed 0, succeeded 426, skipped 7. Without the tools the suite skipped 104 of 393 (#277). The 7 remaining skips are Immich-image and file-permission cases that use neither tool. The same result held on #290's run 44421739135. No code change is needed.

@ptr727
ptr727 merged commit 0f78d34 into main Nov 19, 2026
15 checks passed
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.

Run the Media Tests in CI With exiftool and ffmpeg Installed

2 participants