Skip to content

test(jellycompat): disable tone mapping in strip fixtures - #3470

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
grtn91:fix/jellycompat-tone-map-fixture
Nov 5, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
grtn91:fix/jellycompat-tone-map-fixture

Conversation

@grtn91

@grtn91 grtn91 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Three Jellyfin compatibility tests assume tone mapping is disabled, but their
fixture uses the server defaults, which now enable it. On a host with a
working tone-map path, the tests can find a transcode route and fail.

Approach

Set both tone-map options to false in the Dolby Vision strip test fixture.
This keeps the tests focused on whether a strip route is available and makes
them independent of the host's tone-map capabilities.

Validation

  • The three previously failing tests passed on this branch.
  • Changed-line lint passed.
  • make test-go, including the race-test step, passed in a scratch checkout
    combining this fixture fix with the WSL NVENC detection branch, using
    libvips 8.16.1 and the project's bundled SQLite.
  • The full pre-PR gate was not run independently on this branch.

Evidence

Evidence: none, no user-visible change

Risks

None identified. The change affects test setup only.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: OpenAI Codex
  • Tool(s): Codex
  • Model(s): GPT-6.1 Terra
  • Involvement: AI-assisted
  • Adversarial review: Not performed

Note

Disable tone mapping in DV strip test fixtures

Updates the newDVStripHandlerWithTrack helper in dv_strip_test.go so the settings stub sets hardware and software tone mapping to false explicitly.

Macroscope summarized 78f58f2.

@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 3, 2026
@silo-kody

silo-kody Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The Dolby Vision strip test fixture now explicitly disables hardware and software tone mapping. Its comment describes tone mapping as off without calling it the server default.

Changes: Dolby Vision strip test fixture

Layer / File(s) Summary
Set explicit tone-mapping settings
internal/jellycompat/dv_strip_test.go
The fixture sets hardware and software tone mapping to "false". The comment now says tone mapping is off, and the test imports the configuration keys.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Other

Possibly related PRs

Suggested labels: go

Suggested reviewers: quick104

Merge Risk: Minimal · up to 78f58

The fixture change is ready to merge after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title names the actual change: it disables tone mapping in the strip test fixtures, which the raw summary confirms (hardware and software tone mapping are set to false in dv_strip_test.go). It is …
Description check Passed The description explains the problem (three Jellyfin compatibility tests assume tone mapping is disabled, but server defaults now enable it), the approach (explicitly setting both tone-map options to …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Title check

Explanation

The title names the actual change: it disables tone mapping in the strip test fixtures, which the raw summary confirms (hardware and software tone mapping are set to false in dv_strip_test.go). It is specific, concise, and follows the conventional prefix style.

Full details: Description check

Explanation

The description explains the problem (three Jellyfin compatibility tests assume tone mapping is disabled, but server defaults now enable it), the approach (explicitly setting both tone-map options to false in the DV strip fixture), and validation steps. It matches the single-file test change in the raw summary.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5340a359-4aa4-470d-9771-2caa0e145da2
Commits

Reviewing files that changed from the base of the PR and between 527e404 and 78f58f2.

Files selected for processing: 1
  • internal/jellycompat/dv_strip_test.go

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

@silo-triage silo-triage Bot added bug Something isn't working go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish labels Nov 3, 2026
@Quick104
Quick104 merged commit bc05d5c into Silo-Server:main Nov 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants