Repository navigation
CI: pinned static ffmpeg on Linux (apt mirror DNS failures), bounded apt fallback, job timeouts - #152
Merged
Merged
Conversation
The linux job failed on main and on #150/#151 after about 63 min in `sudo apt-get update && sudo apt-get install -y ffmpeg`. The logs show no prompt and no dpkg lock: on the ubuntu-26.04 image the runner could not resolve azure.archive.ubuntu.com, archive.ubuntu.com or security.ubuntu.com ("Temporary failure resolving"). apt waited 20 s per package per mirror for ~90 packages, then exited 100. packages.microsoft.com and github.com resolved. The ffmpeg step now downloads a pinned BtbN/FFmpeg-Builds static build (autobuild-2026-10-31-12-59, n8.1.3 linux64 gpl, month-end builds are kept long-term), checks its sha256, and puts ffmpeg/ffprobe on PATH via GITHUB_PATH. If the download or checksum fails, apt runs with DEBIAN_FRONTEND=noninteractive, Acquire retries/timeouts, a dpkg lock timeout and an outer `timeout`. The step has timeout-minutes 15. Job timeouts: linux 40, contracts 20, windows 45 min. Only .github/workflows/ci.yml changes. release.yml and product code are untouched.
ConWan30
marked this pull request as ready for review
November 11, 2026 17:53
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.
Draft, CI only. Not for merge without Con's word. Only
.github/workflows/ci.ymlchanges;release.ymland product code are untouched.Root cause (from the linux job logs of runs 43042443989, 43048838656 and 43058141889).
ubuntu-26.04image (20261101.186.1), the runner could not resolveazure.archive.ubuntu.com,archive.ubuntu.comorsecurity.ubuntu.com("Temporary failure resolving").apt-get updatetook 3 min 20 s.install ffmpegthen waited about 20 s per package per mirror across ~90 packages and exited 100 after about 60 min.packages.microsoft.comand github.com resolved fine.Fix.
autobuild-2026-10-31-12-59,ffmpeg-n8.1.3-27-g8dca1586f4-linux64-gpl-8.1.tar.xz. That project keeps month-end builds long-term (the oldest still listed is 2024-12-31).41e9c565…44e3380against the digest GitHub publishes for that release asset, then addsbin/(ffmpeg and ffprobe) toGITHUB_PATH. The tests find ffmpeg withshutil.which("ffmpeg")and through PATH incargo test.DEBIAN_FRONTEND=noninteractive,Acquire::Retries=2, 20 s http/https timeouts,Dpkg::Lock::Timeout=60,--no-install-recommends, and an outertimeout(180 s update, 300 s install).timeout-minutes: 15. Job timeouts: linux 40, contracts 20, windows 45.Local check (Linux box). The step script downloaded and verified the build and wrote PATH. With that ffmpeg on PATH:
cargo test --locked: lib 206, main 1, contracts 2, haptic_replay 1, redteam 2, all passing.Version note. apt shipped ffmpeg 8.0.1; this build is 8.1.3. Only CI tests use it. Neither the release nor what Con installs uses it (Windows uses
get-ffmpeg.ps1, unchanged).