Skip to content

fix(build): exclude raw poster images from silo binary and docker image - #701

Open
tomislav wants to merge 1 commit into
Silo-Server:mainfrom
tomislav:codex/slim-docker-poster-assets
Open

fix(build): exclude raw poster images from silo binary and docker image#701
tomislav wants to merge 1 commit into
Silo-Server:mainfrom
tomislav:codex/slim-docker-poster-assets

Conversation

@tomislav

@tomislav tomislav commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A — narrow fix

The 106 raw collection-template PNG source plates lived under web/public, so Vite copied them into web/dist and Go embedded them in the Silo executable. They added 241,172,968 bytes to the arm64 binary even though only the finalized JPEG posters are served at runtime.

Approach

Move the raw PNG plates to web/assets-source/collection-templates/raw, exclude that source directory from the Docker build context, and keep the finalized JPEGs at their existing public paths. Update the asset test to require one source plate per built-in template while rejecting a public raw directory, and update the poster-generation documentation.

No API, client, or jellycompat contract changes.

Validation

Passed:

  • go test ./internal/collections/templates/... -count=1
  • go build ./...
  • gofmt -l .
  • go vet ./...
  • golangci-lint run --new-from-merge-base=origin/main ./... — 0 issues
  • pnpm install --frozen-lockfile
  • pnpm run lint — 0 errors, 154 existing warnings
  • pnpm run format:check
  • pnpm run build
  • Vitest with the repository's known-failure exclusions — 283 files and 2,021 tests passed
  • make verify-settings-bindings-all
  • make verify-playback-fixtures
  • make verify-local-paths
  • Docker exclusion probe: COPY web/assets-source /raw failed because the directory was excluded by .dockerignore
  • Local arm64 image build using the CI-equivalent prebuilt dist path

Measured arm64 change:

Measurement Current image This PR Reduction
Silo binary 415,275,496 B 174,102,528 B 241,172,968 B (58.1%)
Image stored size 619,871,523 B 381,461,822 B 238,409,701 B (38.5%)
Runtime filesystem ~1.1 GiB 817 MiB ~300 MiB

make test-go was also run but did not pass. Unrelated failures occurred in two process-lock tests, four sandbox-killed NVENC probe tests, and one transcode timing test. The timing test passed in isolation. The process-lock and NVENC failures reproduced unchanged from base commit 78b5d395 in a clean exported source tree.

Risks

The move could break poster regeneration if tooling or documentation retained the old path. The source-plate test and updated documentation now use the new path. Runtime poster URLs and finalized JPEG assets are unchanged.

AI Disclosure

  • Tool(s): OpenAI Codex
  • Model(s): 5.6-sol
  • Involvement: AI-assisted
  • Adversarial review: An independent review compared base 78b5d395 with head 452990e4, checked every moved PNG's blob identity, verified all finalized JPEG URLs remain unchanged, inspected the Vite/Go/Docker packaging boundaries, and ran the focused tests. It found no critical, important, or minor issues.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

Summary by CodeRabbit

  • Documentation

    • Updated poster-artwork guidance to clarify where generated source plates should be stored.
  • Quality Improvements

    • Improved validation of collection-template artwork to distinguish source files from published assets.
    • Added checks to prevent raw source artwork from appearing in public asset directories.

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8d4c6619-3b11-416e-90a0-2108b8dff151

📥 Commits

Reviewing files that changed from the base of the PR and between 78b5d39 and 452990e.

⛔ Files ignored due to path filters (106)
  • web/assets-source/collection-templates/raw/mdblist_amazon_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_amazon_shows.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_awards_golden_globes_winners.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_awards_oscar_winners.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_best_of_2023.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_best_of_2024.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_best_of_2025.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_charts_popular_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_custom.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_disney_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_disney_shows.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_hbo_shows.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_hulu_shows.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_imdb_top_250_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_imdb_top_250_shows.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_mindfuck_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_misc_a24.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_misc_criterion_collection.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_misc_ifc_films.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_misc_studio_ghibli.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_netflix_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_netflix_shows.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_seasonal_aapi_heritage_month.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_seasonal_christmas.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_seasonal_easter.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_seasonal_halloween.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_seasonal_latinx_heritage_month.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_seasonal_new_year.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_seasonal_pride_month.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_seasonal_thanksgiving.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_seasonal_valentines_day.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_streaming_apple_tv_plus.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_streaming_disney_plus_originals.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_streaming_hbo_max_originals.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_streaming_hulu_originals.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_streaming_netflix_originals.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_streaming_peacock_originals.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_streaming_prime_video_originals.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_streaming_shudder.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_top_documentaries.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/mdblist_top_horror.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_airing_today.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_kids_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_action.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_adventure.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_animation.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_comedy.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_crime.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_documentary.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_drama.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_family.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_fantasy.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_history.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_horror.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_music.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_mystery.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_romance.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_science_fiction.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_thriller.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_war.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_popular_western.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_action.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_adventure.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_animation.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_comedy.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_crime.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_documentary.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_drama.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_family.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_fantasy.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_history.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_horror.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_music.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_mystery.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_romance.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_science_fiction.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_thriller.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_war.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_discover_top_rated_western.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_fast_furious.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_hobbit.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_james_bond.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_jurassic_park.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_lord_of_the_rings.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_mission_impossible.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_monsterverse.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_pirates_of_the_caribbean.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_placeholder.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_star_wars.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_franchise_wizarding_world.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_now_playing.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_on_the_air.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_popular_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_popular_tv.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_top_rated_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_top_rated_tv.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_trending_all_today.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_trending_movies_week.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_trending_tv_week.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/tmdb_upcoming.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/trakt_popular_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/trakt_popular_shows.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/trakt_recommended_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/trakt_recommended_shows.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/trakt_trending_movies.png is excluded by !**/*.png
  • web/assets-source/collection-templates/raw/trakt_trending_shows.png is excluded by !**/*.png
📒 Files selected for processing (3)
  • .dockerignore
  • docs/wiki/admin/collection-templates.md
  • internal/collections/templates/templates_test.go

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

Raw collection-template poster plates now use web/assets-source/collection-templates/raw/. Tests validate this location and reject public raw assets. Documentation and Docker ignore rules reflect the updated asset layout.

Changes

Collection template asset relocation

Layer / File(s) Summary
Poster asset validation
internal/collections/templates/templates_test.go
Final .jpg files remain validated under public assets. Raw .png plates must exist under source assets and must not exist under public assets.
Asset workflow and packaging
.dockerignore, docs/wiki/admin/collection-templates.md
Docker ignores web/assets-source. Documentation uses the source asset directory for raw poster generation.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 45299

This PR removes raw poster source files from runtime packaging while preserving finalized poster assets and URLs. No actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: quick104

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (2 skipped: 2 unsupported.) Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main build change: excluding raw poster images from the Silo binary and Docker image.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

@tomislav
tomislav marked this pull request as ready for review August 21, 2026 11:07
@tomislav tomislav changed the title fix(build): exclude raw poster plates from image fix(build): exclude raw poster images from silo binary and docker image Aug 21, 2026
@tomislav tomislav closed this Aug 21, 2026
@tomislav tomislav reopened this Aug 21, 2026
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