Skip to content

infra: Use a per-checkout Docker volume for the Tier 2 build #135

Closed

Description

@zackees

rust/tools/linux-validate/run.sh mounts the fixed named volume obs-rust-linux-validate-build as /build. Every checkout and worktree shares it, so a run can link another branch's stale objects or Rust staticlib. Observed this week as bogus "undefined reference" / "multiple definition" failures (even with ENABLE_RUST_LIBOBS=OFF) that disappear after touching sources.

Work:

  • Derive the volume name from the checkout path (e.g. a short hash of git rev-parse --show-toplevel), keeping the ccache mount shared.
  • Document cleanup (docker volume ls --filter name=obs-rust-linux-validate-).
  • Check: two checkouts on different branches can run Tier 2 back to back without touching files and both pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginfra

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions