Skip to content

Allow compatible workflows to share an existing job cache - #3

Closed
eabatalov wants to merge 1 commit into
mainfrom
codex/share-platform-dataplane-cache
Closed

eabatalov wants to merge 1 commit into
mainfrom
codex/share-platform-dataplane-cache

Conversation

@eabatalov

Copy link
Copy Markdown

Compatible jobs in different workflows currently cannot reuse each other's dependency cache, even with the same key, because the cache scope includes the workflow and job identities.

Add optional cache-owner: workflow.yml/job-id to reuse an existing job's scope in the same repository. The default scope and existing entries remain compatible. Repository, build-key, working-directory, and branch separation remain in place; builds still restore archives to local disk.

This enables CEI #2539 to reuse the platform dataplane build's Rust cache for its Cloud Hypervisor capture helper.

Validation: all 25 npm test cases pass, including restoring another workflow's actual dependency artifact and preserving default-branch entries during a pull-request save. actionlint and git diff --check pass.

@eabatalov eabatalov closed this Oct 5, 2026
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.

1 participant