Skip to content

[WIP] Add declared-io task cache backed by buildxl - #15011

Draft
sbomer wants to merge 1 commit into
dotnet:mainfrom
sbomer:declared-io-task-cache
Draft

sbomer wants to merge 1 commit into
dotnet:mainfrom
sbomer:declared-io-task-cache

Conversation

@sbomer

@sbomer sbomer commented Sep 12, 2026

Copy link
Copy Markdown
Member

This is a prototype of a build cache for tasks that have opted in by declaring their IO, using the cache storage from buildxl. Sharing as a draft so others can take an early look. @agocke

Cache file artifacts, typed task outputs, and warnings for explicitly annotated tasks while preserving normal target incrementality. Share build-scoped cache ownership across workers and configure storage with -buildCacheDirectory.

Assisted-by: GitHub Copilot CLI:gpt-6-astra
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 0e3db8d0-e831-445d-bf0b-756131d8070e
@agocke

agocke commented Sep 17, 2026

Copy link
Copy Markdown
Member

Thanks for prototyping this! I was originally very hopeful that reusing the buildxl CAS store would mean less code on the MSBuild side, but that doesn’t seem to be the case right now: #15053. I think it might be because the current cache is very simple and the buildxl one is more useful for complex items. Maybe worth bringing back later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants