Skip to content

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

Draft
vyasr wants to merge 4 commits into
mainfrom
codex/caller-cache-directories
Draft

feat: add caller cache support to reusable build and test workflows#628
vyasr wants to merge 4 commits into
mainfrom
codex/caller-cache-directories

Conversation

@vyasr

@vyasrvyasr 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 replaces workflow-specific cache inputs with a common mechanism that supports multiple workspace-relative paths.

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.

This supersedes #629's Numba-specific cache input, which has been closed. Numba can use this generic interface with .cache/numba, Python/dependency key files, and NUMBA_CACHE_DIR.

Validation

  • YAML and workflow-lint validation will be run after the remaining wheel-build wiring is complete.

@vyasr
vyasr requested a review from a team as a code ownerSeptember 6, 2026 21:30
@vyasr
vyasr requested review from jameslamb and removed request for a teamSeptember 6, 2026 21:30
@vyasr
vyasr marked this pull request as draft September 6, 2026 23:59
@vyasrvyasr changed the title feat: add caller cache support to Conda C++ testsfeat: add caller cache support to reusable build and test workflowsSep 8, 2026
Sign up for freeto 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.

1 participant

@vyasr