mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-08-09 23:50:40 +02:00
Trace stalled Linux video encoder
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user