Skip to content

[rush] Add bridge-cache plugin #5190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benkeen
Copy link

@benkeen benkeen commented Apr 9, 2025

This PR adds a plugin which allows users to run a Rush command, but only populate the cache from a previous run of that action, not actually run the command.

For instance:

rush build --set-cache-only
rush test --only packageX --set-cache-only
rush lint --to packageY --set-cache-only

Each of these would populate the cache for one or more package actions from whatever was found on disk, as defined for the output folder(s) for the commands in rush-project.json. The command itself (build, test, lint) won't get run.

Why?

We're using a different build orchestrator to handle some high-volume builds (BuildXL), primarily because it's able to farm out work across agents, not just processes. As a build orchestrator, it does exactly the same work as what Rush would have done, but has its own cache. We rely on our current (Rush) pipeline populating the remote cache so our local builds are snappy. Without the feature in this PR, we'd need a separate pipeline running in addition to our main pipeline, solely to populate the Rush cache.

@benkeen benkeen force-pushed the benkeen/cache-bridge-plugin branch from a457102 to c3fdcc9 Compare April 10, 2025 16:38
@iclanton iclanton moved this from Needs triage to In Progress in Bug Triage Apr 30, 2025
@benkeen benkeen force-pushed the benkeen/cache-bridge-plugin branch from c3fdcc9 to 132f76d Compare May 30, 2025 17:41
@benkeen benkeen changed the title [Incomplete - for discussion] Add bridge-cache plugin to populate cache without running action [feat] Add bridge-cache plugin May 30, 2025
@benkeen benkeen changed the title [feat] Add bridge-cache plugin [rush] Add bridge-cache plugin May 30, 2025
@benkeen benkeen force-pushed the benkeen/cache-bridge-plugin branch from 4b7bea1 to e49f90a Compare May 30, 2025 18:02
@benkeen benkeen force-pushed the benkeen/cache-bridge-plugin branch from 23f7f9f to 83eed95 Compare May 30, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants