You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: local Tier 2 can compile another checkout's source through the shared zccache daemon #2028
rust/tools/linux-validate/run.sh mounts one machine-wide volume, obs-rust-linux-validate-zccache, at /zccache in every checkout's Tier 2 container (ZCCACHE_CACHE_DIR=/zccache), and mounts each checkout's source at the same path, /ro. zccache keeps its daemon socket inside the cache dir:
So while one checkout's container has a daemon running, another checkout's container finds that socket and sends its compiles to that daemon. The daemon reads /ro/... in its own container, which holds a different checkout. 22 checkouts on this machine share the volume.
Observed (2026-10-23/24, three times in one session)
First local run after adding a committed test file: cc1: fatal error: /ro/test/cmocka/test_obs_scripting_python_host.c: No such file or directory, and again for test_obs_ffmpeg_mux_host.c. The file was in the checkout. A rerun minutes later compiled it.
Consequence: ./unittest and ci-lint local-gate run can pass or fail on source that isn't the checkout's, and a local-gate stamp can attest to a build of other code.
Fix
Keep the compiled-object cache shared but give each container its own daemon: put the daemon socket and lock in container-local storage (or a per-checkout path), not in the shared volume. If zccache cannot move the socket separately from the cache dir, use a per-checkout zccache volume, as the build volume already is (#135), at the cost of a cold cache for new checkouts.
Test
RED: two checkouts whose versions of one source file differ. Start Tier 2 in checkout A, and while A's daemon is alive, build that file from checkout B; B's object reflects A's source. GREEN: B compiles its own source.
Claiming: #2028. Plan: give each Tier 2 container its own zccache daemon (socket and lock off the shared volume) while keeping the shared object cache; one PR with a local RED/GREEN reproduction.
Activity
zackees commentedon Oct 24, 2026
Claiming: #2028. Plan: give each Tier 2 container its own zccache daemon (socket and lock off the shared volume) while keeping the shared object cache; one PR with a local RED/GREEN reproduction.
ci: test_tier2_run checks the zccache volume is per checkout (#2028)
linux-validate: give each checkout its own zccache volume (obs-rust#2028