Xcode Compilation Cache not reused across CI runs #1235
Replies: 1 comment
-
|
After some debugging, I found the most plausible cause of the cache invalidation across VM restarts, but all common workarounds have failed so far. The cause: Changing virtiofs Device IDs Xcode's build system relies on file stat data, specifically the Device ID and Inode. I ran Here is my stat -x tracking: Because the Device ID changes (e.g., from Attempted Workarounds (that failed)
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I’m seeing unexpected behavior with Xcode’s Compilation Cache when building in a CI setup using tart and was wondering if anyone else has experienced something similar. I'm trying to understand whether this might be related to virtualization or something specific to how tart manages VM state.
Setup
Behavior
Within a single Jenkins run:
Across Jenkins runs (same VM image, same workspace, same DerivedData path):
Additional details
Question
Has anyone seen similar behavior when using tart VMs, where build caches (like Xcode’s compilation cache / LLVM CAS) are not reused across runs?
Could this be related to:
Any insights or similar experiences would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions