Skip to content

Add an S3-compatible remote cache storage plugin - #174

Draft
schletti2000 wants to merge 3 commits into
microsoft:mainfrom
schletti2000:upstream/s3-storage-backend
Draft

schletti2000 wants to merge 3 commits into
microsoft:mainfrom
schletti2000:upstream/s3-storage-backend

Conversation

@schletti2000

@schletti2000 schletti2000 commented Aug 25, 2026 •

Copy link
Copy Markdown

Microsoft.MSBuildCache.S3 stores content-addressed outputs and fingerprint metadata in Amazon S3 or an S3-compatible endpoint, with a local BuildXL cache for repeated materialization.

Code was written mainly by AI, but tested against a large C++ codebase. Tested purely in a CI environments and always build from a fresh clone. I did not test incremental builds.

Related to #108

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.
@schletti2000
schletti2000 marked this pull request as ready for review October 12, 2026 16:59
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.
@schletti2000
schletti2000 force-pushed the upstream/s3-storage-backend branch from 31a4654 to fe19cea Compare October 15, 2026 12:46
Adds Microsoft.MSBuildCache.S3, which stores the cache in Amazon S3 or an S3-compatible store such as MinIO. BuildXL has no S3 cache implementation, so the local cache is only used as a content store and fingerprints are stored as S3 objects.

Large objects are transferred in parallel parts, and downloaded content is verified against its hash before it is added to the local cache. Reads which keep failing are treated as a cache miss.

Co-authored-by: Cursor <cursoragent@cursor.com>
@schletti2000
schletti2000 force-pushed the upstream/s3-storage-backend branch from fe19cea to 410b8f7 Compare October 15, 2026 14:52
@schletti2000

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree company="Rohde & Schwarz GmbH & Co. KG"

@schletti2000
schletti2000 marked this pull request as draft October 15, 2026 17:40
schletti2000 and others added 2 commits November 13, 2026 15:00
A lifecycle rule that expires objects from their last write can delete content while a newer entry still names it. Publication now rewrites reused content, and existing entries, so they age with the selector. Keys lead with the object kind so content and fingerprints can use different rules.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant