[rush] Add bridge-cache plugin #5190
Open
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.
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:
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.