Skip to content

bug: ci: shared Tier 2 apt lock serializes container-local installs #4997

Closed

Description

@zackees

Location

.github/workflows/build-project.yaml:2733, rust-linux-tier2-build / Install Tier 2 Packages:

xargs flock -w 1800 "$TIER2_APT_ARCHIVES/.tier2-install.lock" ...

Class

CI contention: the shared download-cache lock also serializes container-local dpkg installs.

How it is reached

On 2026-11-17 the Dell's six runners shared one apt archive directory. Tier 2 package setup took 12–25 minutes, including a measured 15.7-minute lock wait, despite an already-complete archive (0 B to download). #4962 added the waiting flock and #4974 accelerated installs with eatmydata; neither limits the lock to shared writes.

Proposed fix and failing test

Under the shared flock, retry apt-get install --download-only with the existing package list and options. Release the flock before running dpkg recovery and the eatmydata install against a private archive populated from the shared .deb files. Copies avoid shared-inode writes and also work across bind-mount filesystems. Preserve the hosted job-local archive path and its install/retry behavior.

Extend ci/test_tier2_apt_cache.py with executable workflow-step tests for download-only lock ownership, unlocked repair/install using only private archives, unchanged hosted behavior, and concurrent jobs progressing to installation while the first install is blocked. Record local RED, commit GREEN separately, push both together. No new workflow files.

Refs #4954, #4973.

Activity

  1. added
    bug
    infra
    ready
    on Nov 17, 2026
  2. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Claiming: shared Tier 2 apt lock scope, pool slot obs-studio4, branch infra/4997-tier2-apt-lock-scope.

    1. Commit executable regression tests and record local RED against the current workflow.
    2. Lock only download-only acquisition, copy completed archives to private storage, and install concurrently with eatmydata; preserve hosted behavior.
    3. Run focused tests and full lint, then push RED and GREEN together and open a PR this session. Leave it draft while backpressure is closed.
  3. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Done by #5000 (merged as e128749): the shared Tier 2 apt flock now covers only the download, and installs run from a private archive outside the lock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buginfraready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions