Repository navigation
Keep the empty ffmpeg package out of the conserver image. - #231
Merged
Merged
Conversation
…hat removes ffmpeg.probe. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… ffmpeg package out. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
vcon0.9.2, whichuv.lockpins, requires the PyPI packageffmpeg. That package is empty, and next toffmpeg-pythonit emptiesffmpeg/__init__.py, soffmpeg.probefails and real recordings fail at transcribe. An image built from this lock has both packages.This adds a uv override that never installs
ffmpeg. The lock changes by five lines: the override entry and a marker on vcon's edge.The install the images run:
docker/Dockerfile(the onedocker-compose.ymlbuilds forconserverandapi):uv venv --seed /opt/venv && UV_PROJECT_ENVIRONMENT=/opt/venv uv sync --frozen --group conserver --group api --group dev --group storage-milvusdocker/Dockerfile.conserver:uv sync --frozen --no-dev --group conserverdocker/Dockerfile.api:uv sync --frozen --no-dev --group apiA dry run of
--group conserverplansffmpeg-python==0.2.0andvcon==0.9.2and noffmpeg. The lock marksffmpegunreachable on every platform, so the other two commands and the combined one skip it the same way.Test:
tests/test_ffmpeg_environment.pychecks that theffmpegdistribution is not installed, thatimport ffmpeghasprobe, and that no lock entry depends onffmpegwithout the never-true marker. Run against the lock and a venv synced from it, before this change: 2 failed, 1 passed (the probe check can pass by install order alone, so it is not enough on its own). After: 3 passed.vcon-lib fixed its own declaration in 1.0.4. Moving to it is a separate change, because 1.0.x writes the 0.5.0 vCon syntax and this server still depends on the 0.4.0 output of 0.9.2. The override can go when that bump lands (vcon-lib guard test: vcon-dev/vcon-lib#79).
🤖 Generated with Claude Code