feat: add caller cache support to reusable build and test workflows - #628
Merged
Conversation
vyasr
marked this pull request as draft
September 6, 2026 23:59
vyasr
marked this pull request as ready for review
September 8, 2026 18:50
msarahan
approved these changes
Sep 8, 2026
msarahan
left a comment
Contributor
There was a problem hiding this comment.
Looks great. The only ask I have is that you link to your cudf job that demonstrates this in a more prominent place - perhaps the PR description? That is, the link to a job that pins shared-workflows to this particular repo.
Contributor
Author
Done. |
Contributor
Author
|
/merge |
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.
Summary
Adds an opt-in, caller-configured cache interface to the reusable Conda and wheel build/test workflows. It supports caching one or more workspace-relative paths from the job container.
Callers provide:
cache-paths: newline-separated files or directories foractions/cache;cache-key-prefix: cache namespace;cache-key-files(optional): source or dependency globs hashed into the exact key, with a matrix-compatible restore prefix;cache-environment(optional): newline-separatedNAME=VALUEvariables for tools that must use a workspace-mounted cache directory.Every cache key is scoped to the compatible workflow matrix. Test keys include GPU, driver, and dependency variants; build keys use the build matrix dimensions.
The first use-case I have for this is enabling runtime JIT caching in cudf. You can see the results of that at NVIDIA/cudf#24008 (comment)