Repository navigation
Fix benchmark setup contention with unattended upgrades - #1622
Merged
Alex Razumov (arrayka) merged 2 commits intoDec 4, 2026
Merged
Conversation
Wait up to 300 seconds for the dpkg lock during system dependency installation in the shared A/A and A/B setup action. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the earlier Markdown addition so the final change is confined to the shared benchmark setup action. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Alex Razumov (arrayka)
requested review from
a team
and
a balanced review from Copilot
December 3, 2026 18:40
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the change adding a 120-second dpkg lock wait to benchmark dependency installation.
No open issues 🎉
What changed in this PR
Reduces benchmark setup failures from unattended-upgrade lock contention in the shared action used by A/A and A/B benchmarks.
Changes:
- Adds a 120-second dpkg lock timeout to dependency installation.
- Adds an inline comment explaining the wait; benchmark thresholds and automatic-update settings remain unchanged.
| File | Description |
|---|---|
.github/actions/setup-disk-benchmark/action.yml |
Adds and documents the dpkg lock wait for apt-get install. |
Review effort: Balanced
Alex Razumov (arrayka)
enabled auto-merge (squash)
December 3, 2026 18:43
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1622 +/- ##
==========================================
+ Coverage 91.32% 92.28% +0.96%
==========================================
Files 633 633
Lines 133933 133933
==========================================
+ Hits 122312 123600 +1288
+ Misses 11621 10333 -1288
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Mark Hildebrand (hildebrandmw)
approved these changes
Dec 4, 2026
Wei Wu (wuw92)
approved these changes
Dec 4, 2026
Alex Razumov (arrayka)
deleted the
u/arrayka/benchmark-apt-lock-timeout
branch
December 4, 2026 02:04
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.
Reference Issues/PRs
Fixes #1613. Fixes #1621.
What does this implement/fix? Briefly explain your changes.
Wait up to 120 seconds for the dpkg lock when installing disk benchmark system dependencies. The November 28 and December 3 failures occurred during setup because
unattended-upgrheld/var/lib/dpkg/lock-frontend; they were not benchmark comparison failures. The same setup error also occurred on November 20.Add
-o DPkg::Lock::Timeout=120to the shared setup action'sapt-get installinvocation. This covers both A/A and A/B benchmarks. Installation proceeds immediately when the lock is free and still fails if contention outlasts the timeout. No benchmark thresholds or automatic-update settings are changed.Add a short inline comment explaining the wait. No Markdown changes are included in the final PR diff.
Any other comments?
bash -non the extracted install step through WSL; mocked execution confirming exact APT arguments and propagation of install exit codes 0 and 100.git diff --checkpassed.apt-get update.