Repository navigation
linux-validate: give each checkout its own zccache volume (#2028) - #2033
Merged
Merged
Conversation
zccache keeps its daemon socket in the cache dir and allows one daemon per cache root, so with one machine-wide volume a checkout's container sent its compiles to another checkout's running daemon, which read that container's /ro: object files of other source, and 'No such file' for files new to this checkout. The zccache volume is now a per-checkout stack volume, like the build volume (#135); --clean resets it, --clean-all drops only the crate caches. OBS_ZCCACHE_DIR (CI) is unchanged.
test_zccache_is_shared pinned the shared volume this fix removes; the test now requires a distinct obs-rust-linux-validate-zccache-<id> per checkout and fails against master's run.sh.
Member
Author
|
Added a regression test: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2028.
The local Tier 2 runner (
rust/tools/linux-validate/run.sh) mounted one machine-wideobs-rust-linux-validate-zccachevolume into every checkout's container, and each checkout's source at the same/ro. zccache keeps its daemon socket in the cache dir (/zccache/v1.15.5/daemon-v1.15.5.sock), so while one checkout's container had a daemon running, another checkout's compiles went to it and read that container's/ro.ZCCACHE_DAEMON_NAMESPACEdoes give a separate socket, but zccache allows one daemon per cache root: a second namespaced daemon on the same volume never starts (daemon recovery already failed on this cache root ... no daemon lockfile observed within 10s). So the volume is now per checkout (--stack-volume,obs-rust-linux-validate-zccache-<id>), the same as the build volume since #135. It keeps its 3G budget.--cleanresets it with the build volume, and--clean-allnow drops only the crate caches. CI is unaffected: it usesOBS_ZCCACHE_DIR. The cost is a cold compiler cache on a checkout's first run.Local RED → GREEN (focused CI/tooling fix): two directories with different
x.c(v()returns 1 or 2), the Tier 2 image, and container A holding a zccache daemon on a volume:/ro/x.cthroughzccache cc. A's daemon writes the object inside A's container, so B's link fails withcannot find x.o: No such file or directory. This is the same symptom as thecc1: fatal error: /ro/test/cmocka/...: No such fileseen in real runs.v=2on the first run and on a second, cached run.In real runs this showed up as stale objects (
test_deinterlace_pacing_stepsfailing with pre-#1995 results that #1995's CI passed) and as missing new test files../lintpasses.