-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve attributes for files cached with Pipeline Caching #10841
Comments
The probable solution here is to tar/zip the contents of the cache prior to upload (and when downloading). In some scenarios (like caches with a large number of small files), this should also help improve cache restore/save performance. |
Created a separate issue (#10925) to track cache content packing using tar/7z. Although packing is likely a solution for preserving file attributes, we should track these as separate requirements for now. |
For what it's worth: this issue is currently resulting in electron builds failing on non-windows hosts if you use a cache. The resulting error is cryptic:
The root cause is - task: CacheBeta@0
inputs:
key: |
yarn
$(Agent.OS)
$(Build.SourcesDirectory)/yarn.lock
path: $(YARN_CACHE_FOLDER)
cacheHitVar: CACHE_RESTORED
displayName: Cache Yarn packages
- script: |
yarn --frozen-lockfile
displayName: Install dependencies
- script: |
chmod +x node_modules/app-builder-bin/mac/app-builder
chmod +x node_modules/7zip-bin/mac/7za
condition: and(eq(variables.CACHE_RESTORED, 'true'), ne(variables['Agent.OS'], 'Windows_NT'))
displayName: Correct file permissions |
Here's a targeted workaround:
|
Rolling out via #10925 |
Pipeline Caching cache entries currently don't include file attributes (e.g. executable bit, mtime) nor preserve symbolic links.
The text was updated successfully, but these errors were encountered: