Skip to content

fix(ci): Linux apt step best-effort + hard-capped (was hanging 30+ min) - #223

Merged
thcp merged 1 commit into
mainfrom
fix/linux-apt-hang
Jun 24, 2026
Merged

fix(ci): Linux apt step best-effort + hard-capped (was hanging 30+ min)#223
thcp merged 1 commit into
mainfrom
fix/linux-apt-hang

Conversation

@thcp

@thcp thcp commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Problem

The Linux Release job hung 30+ minutes on install build dependencies — twice (initial run and a re-run). apt-get stalled on the persistent wsl2 runner.

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 certainly unattended-upgrades holding the lock. With no lock timeout, apt-get waits 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.
  • apt failures are non-fatal (|| echo …), since the deps are typically already present.
  • Verify pkg-config --exists webkit2gtk-4.1 and 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

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).
@thcp
thcp merged commit 8210e7f into main Jun 24, 2026
8 checks passed
@thcp
thcp deleted the fix/linux-apt-hang branch June 24, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant