tests/e2e: update step waits for a held dpkg lock

オープン
#136 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bash, debian, ubuntu
領域
devops, testing

調査の方向性

Start by reading the end-to-end test harness entry point and server-prep.sh --only update; trace how wait_apt_idle is used and where APT_OPTS is set. Add a scenario that holds the dpkg locks while the update step runs, verifies the lock is held at startup, and passes after the wait. Confirm that removing DPkg::Lock::Timeout makes the scenario fail.

索引モデルが issue の本文から書いたものです。

説明

area: ci area: prep claude enhancement priority: low size: S

Epic #121 · Milestone Phase 1: Community & CI · Priority low · Size S · Depends on #94


Why

Fresh servers run apt at boot. APT_OPTS carries DPkg::Lock::Timeout=600 so the update step waits instead of failing with "dpkg lock held". The harness waits for apt to go idle before each run (wait_apt_idle), so the timeout is never exercised.

What to do

  • Before a run, hold the dpkg lock from another process for about 60 seconds (for example flock /var/lib/dpkg/lock-frontend sleep 60, plus the other dpkg locks).
  • Start server-prep.sh --only update while the lock is held and assert it waits and then exits 0.
  • Control: assert the lock really was held when the step started.

Acceptance criteria

  • Removing DPkg::Lock::Timeout from APT_OPTS turns the scenario red.
主要言語
Shell
スター
2
フォーク
3
平均マージ
2日 14分
マージ済み PR(30日)
47

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

exceev-consulting/server-prep のほかの issue

exceev-consulting/server-prep の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。