Skip to content

test(fspath): list the surround bitstream probe as a launch outside fspath - #4583

Merged
Quick104 merged 1 commit into
mainfrom
fix/launch-guard-surround-probe
Nov 19, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/launch-guard-surround-probe

Conversation

@Quick104

@Quick104 Quick104 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: N/A (no client-visible change)

TestEveryMediaLaunchGoesThroughCommandContext in internal/fspath fails on main, so ci / Go test fails on every open pull request. The test requires every process launch outside internal/fspath to either go through fspath.CommandContext or appear in launchesOutsideFspath with a reason. probeSurroundBitstreamRecipeV3, added in #2015, launches FFmpeg directly and is not listed.

Approach

The probe never takes a media input. Its only input is the literal -f lavfi -i anullsrc=r=48000:cl=5.1, its codec is one of two package constants, and it writes to pipe:1. The fix adds it to launchesOutsideFspath with the reason "FFmpeg on a lavfi anullsrc input", like the existing probeAudioRecipeFilterV3 and probeHEVCRecipeV3 entries. No production code changes, so #2015's capability probe behaves as before.

Validation

  • go test -count=1 ./internal/fspath/: the guard test fails on 7019d69d with the error for probeSurroundBitstreamRecipeV3, and the package passes with this change.
  • make lint-changed: 0 issues.

Evidence

Nothing user-visible changes. On base 7019d69d:

launch_guard_test.go:83: internal/playback/transformations_v3.go:probeSurroundBitstreamRecipeV3 launches a process without fspath.CommandContext; ...

With this change: ok github.com/Silo-Server/silo-server/internal/fspath.

Risks

None identified. The change is one entry in a test's allowlist.

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 how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a (one-line test allowlist entry; the background review runs on the PR)

🤖 Generated with Claude Code

Note

Add probeSurroundBitstreamRecipeV3 to the launch-guard allowlist

Marks the FFmpeg launch in probeSurroundBitstreamRecipeV3 as a launch outside fspath in the launch guard test, because it uses a lavfi anullsrc input and does not process media input. Update is in launch_guard_test.go.

Macroscope summarized 3f874d0.

…spath

probeSurroundBitstreamRecipeV3 (from #2015) runs FFmpeg only on a
generated lavfi anullsrc input and writes to pipe:1, so it never opens a
media input. Listing it with that reason lets
TestEveryMediaLaunchGoesThroughCommandContext pass on main again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 19, 2026
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

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: da9a1b64-50d3-492b-b454-066888a69120
Commits

Reviewing files that changed from the base of the PR and between 7019d69 and 3f874d0.

Files selected for processing: 1

  • internal/fspath/launch_guard_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T17:35:05.750040Z 3f874d0 PR opened
🔒 Security Review ✅ Completed 2026-11-19T17:37:18.994414Z 3f874d0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Nov 19, 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 ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

@silo-triage silo-triage Bot added go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish labels Nov 19, 2026
@Quick104
Quick104 merged commit 121149c into main Nov 19, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/launch-guard-surround-probe branch November 19, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant