Trace stalled Linux video encoder

This commit is contained in:
Victor Kuznetsov
2026-07-31 14:24:08 -07:00
parent 1fd859b58d
commit 7fb0e65455
+16 -5
View File
@@ -55,11 +55,22 @@ jobs:
with:
python-version: "3.12"
- name: Install ffmpeg
run: sudo apt-get update && sudo apt-get install --yes ffmpeg
run: sudo apt-get update && sudo apt-get install --yes ffmpeg strace
- name: Sync dev environment
run: uv sync --frozen --extra dev
- name: Run full-clip video test
run: >-
uv run pytest -vv
-o faulthandler_timeout=60
tests/test_video.py::TestVideoVisibleFullClip
run: |
set +e
timeout --kill-after=10s 90s \
strace -ff -tt -s 256 -o /tmp/video-e2e.strace \
uv run pytest -vv -o faulthandler_timeout=45 \
tests/test_video.py::TestVideoVisibleFullClip
status=$?
if [ "$status" -ne 0 ]; then
for trace in /tmp/video-e2e.strace*; do
echo "::group::$trace"
tail -n 100 "$trace"
echo "::endgroup::"
done
fi
exit "$status"