Wait for the dpkg lock before installing test dependencies - #474
Draft
chruffins wants to merge 1 commit into
Draft
Wait for the dpkg lock before installing test dependencies#474chruffins wants to merge 1 commit into
chruffins wants to merge 1 commit into
Conversation
Concurrent jobs on the shared runner occasionally hold the dpkg frontend lock while this step runs apt-get install, which then fails immediately with exit 100. Let apt wait up to five minutes for the lock and widen the step timeout to match.
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.
summary
The
Install dependenciesstep in the test workflow runsapt-get installon a shared self-hosted runner. When another job holds the dpkg frontend lock at that moment, apt fails immediately with exit 100 and the whole job is lost.Pass
-o DPkg::Lock::Timeout=300so apt waits for the lock instead of failing, and widen the surroundingtimeoutso the wait cannot be cut off.validation
Workflow-only change; no code affected.
Note
Low Risk
Workflow-only tweak to apt install behavior on shared runners; no product code or secrets handling affected.
Overview
The Linux Install dependencies step on self-hosted runners no longer fails immediately when another job holds the dpkg frontend lock.
apt-get installnow passes-o DPkg::Lock::Timeout=300so apt waits up to five minutes for the lock instead of exiting with code 100. The outertimeouton that install was raised from 300s to 600s so a full lock wait plus install is not cut off early.No application code changes—CI reliability only.
Reviewed by Cursor Bugbot for commit ec37280. Configure here.