Repository navigation
test(fspath): list the surround bitstream probe as a launch outside fspath - #4583
Conversation
…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]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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 — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (no client-visible change)
TestEveryMediaLaunchGoesThroughCommandContextininternal/fspathfails onmain, soci / Go testfails on every open pull request. The test requires every process launch outsideinternal/fspathto either go throughfspath.CommandContextor appear inlaunchesOutsideFspathwith 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 topipe:1. The fix adds it tolaunchesOutsideFspathwith the reason "FFmpeg on a lavfi anullsrc input", like the existingprobeAudioRecipeFilterV3andprobeHEVCRecipeV3entries. No production code changes, so #2015's capability probe behaves as before.Validation
go test -count=1 ./internal/fspath/: the guard test fails on7019d69dwith the error forprobeSurroundBitstreamRecipeV3, and the package passes with this change.make lint-changed: 0 issues.Evidence
Nothing user-visible changes. On base
7019d69d: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
AI Disclosure
🤖 Generated with Claude Code
Note
Add
probeSurroundBitstreamRecipeV3to the launch-guard allowlistMarks the FFmpeg launch in
probeSurroundBitstreamRecipeV3as a launch outside fspath in the launch guard test, because it uses a lavfianullsrcinput and does not process media input. Update is in launch_guard_test.go.Macroscope summarized 3f874d0.