• Stefy Lanza (nextime / spora )'s avatar
    make an ffmpeg we started unable to outlive us · 42d68ca1
    Stefy Lanza (nextime / spora ) authored
    run() kills its child on cancel and on timeout, but both need this process to
    be alive to act. SIGKILLed -- an OOM, a container stop, an interrupted test run
    -- no finally block runs, the child is reparented to init, and nothing owns it
    any more. That is not a dormant process: a filter graph that never reaches EOF
    spins at 100% CPU indefinitely. Two orphans from interrupted test runs were
    found on a dev host having burned 15 h and 11 h of CPU, with no parent to
    attribute them to.
    
    PR_SET_PDEATHSIG has the kernel kill the child as the parent dies, so the
    outcome stops depending on our cleanup running at all. Best effort, a no-op
    where prctl is unavailable, and tested by SIGKILLing a real parent rather than
    by asserting the flag is set.
    
    Also bound the audio mix at 20x its own length with a two-minute floor. Mixing
    a few seconds of PCM takes milliseconds, so the two-hour video backstop meant a
    wedged mix sat for two hours; it now gives up in two minutes.
    
    Plus a test that every name identifying a whisper.cpp runner reaches it -- the
    runner's id, a shared alias, and the weights path /v1/models advertises, by
    full path, basename and stem -- and that naming the weights spreads across a
    shared alias instead of serialising a pool configured for capacity.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014T3rZnLhydX9QqUcfBbqLu
    42d68ca1
Name
Last commit
Last update
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
REQUEST-geoclip-embeddings.md Loading commit data...
REQUEST-vpr-embeddings.md Loading commit data...
amdgpu-coredump-05000.bin Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-acestep.txt Loading commit data...
requirements-crisperwhisper.txt Loading commit data...
requirements-h3.txt Loading commit data...
requirements-latentsync.txt Loading commit data...
requirements-longcat-train.txt Loading commit data...
requirements-longcat.txt Loading commit data...
requirements-melotts.txt Loading commit data...
requirements-musetalk.txt Loading commit data...
requirements-nemo.txt Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-ocr-paddle.txt Loading commit data...
requirements-ocr.txt Loading commit data...
requirements-pyannote.txt Loading commit data...
requirements-surya.txt Loading commit data...
requirements-vllm.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...