Skip to content

Commit bae31ee

Browse files
mmckyclaude
andauthored
Wait for the dpkg lock before installing the latex dependencies (#666)
The apt install step waits up to 10 minutes for the dpkg lock (-o DPkg::Lock::Timeout=600) instead of failing at once: a freshly launched RunsOn machine can still be running unattended-upgrades, which holds the lock. CI only; apt-get update is unchanged. Merged on @mmcky's "Merge both" in the infrastructure organiser session. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ad2be6a commit bae31ee

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ jobs:
4747
python -c "import matplotlib.font_manager"
4848
- name: Install latex dependencies
4949
run: |
50+
# A freshly launched machine can still be running unattended-upgrades,
51+
# which holds the dpkg lock: wait for it (up to 10 minutes) instead of failing.
5052
sudo apt-get -qq update
51-
sudo apt-get install -y \
53+
sudo apt-get -o DPkg::Lock::Timeout=600 install -y \
5254
texlive-latex-recommended \
5355
texlive-latex-extra \
5456
texlive-fonts-recommended \

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ jobs:
6363
nvidia-smi
6464
- name: Install latex dependencies
6565
run: |
66+
# A freshly launched machine can still be running unattended-upgrades,
67+
# which holds the dpkg lock: wait for it (up to 10 minutes) instead of failing.
6668
sudo apt-get -qq update
67-
sudo apt-get install -y \
69+
sudo apt-get -o DPkg::Lock::Timeout=600 install -y \
6870
texlive-latex-recommended \
6971
texlive-latex-extra \
7072
texlive-fonts-recommended \

0 commit comments

Comments
 (0)