Skip to content

feat: add caller cache support to reusable build and test workflows - #628

Merged
rapids-bot[bot] merged 10 commits into
mainfrom
codex/caller-cache-directories
Sep 8, 2026
Merged

feat: add caller cache support to reusable build and test workflows#628
rapids-bot[bot] merged 10 commits into
mainfrom
codex/caller-cache-directories

Conversation

@vyasr

@vyasr vyasr commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

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 for actions/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-separated NAME=VALUE variables 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)

@vyasr
vyasr requested a review from a team as a code owner September 6, 2026 21:30
@vyasr
vyasr requested review from jameslamb and removed request for a team September 6, 2026 21:30
@vyasr
vyasr marked this pull request as draft September 6, 2026 23:59
@vyasr vyasr changed the title feat: add caller cache support to Conda C++ tests feat: add caller cache support to reusable build and test workflows Sep 8, 2026
@msarahan msarahan added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Sep 8, 2026
@vyasr
vyasr marked this pull request as ready for review September 8, 2026 18:50

@msarahan msarahan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@vyasr

vyasr commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

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.

Done.

@vyasr

vyasr commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit f4fe364 into main Sep 8, 2026
2 checks passed
@vyasr
vyasr deleted the codex/caller-cache-directories branch September 8, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants