fix(ci): Linux apt step best-effort + hard-capped (was hanging 30+ min) - #223
Merged
Conversation
The Linux release job hung for 30+ min on 'install build dependencies': apt-get stalled on the persistent wsl2 runner (likely a dpkg lock held by unattended-upgrades). The packages are already installed on that runner from prior runs, so the install itself is a no-op -- the hang is in apt-get update / lock acquisition. Bound the apt commands with and DPkg::Lock::Timeout so a stuck lock cannot hang the release, set DEBIAN_FRONTEND=noninteractive to avoid debconf prompts, treat apt as best-effort, then verify webkit2gtk-4.1 is actually present (fail loudly only if genuinely missing).
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.
Problem
The
Linux Releasejob hung 30+ minutes oninstall build dependencies— twice (initial run and a re-run).apt-getstalled on the persistentwsl2runner.Cause
The deps were already installed by an earlier successful run on that persistent runner, so the install is effectively a no-op. The hang is in
apt-get update/ dpkg lock acquisition — almost certainlyunattended-upgradesholding the lock. With no lock timeout,apt-getwaits indefinitely (up to the 90-min job timeout).Fix
Make the apt step best-effort and hard-capped so a stuck lock can never hang a release, then verify the real dependency is present:
DEBIAN_FRONTEND=noninteractive— no debconf prompts.timeout 420/600+-o DPkg::Lock::Timeout=120— bound wall time and lock waits.|| echo …), since the deps are typically already present.pkg-config --exists webkit2gtk-4.1and fail loudly only if the critical lib is genuinely missing.Context
Windows binaries already published successfully to alpha.17 in this round; this unblocks the Linux half. After merge: re-tag alpha.17 and re-fire.
🤖 Generated with Claude Code