Skip to content
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

[rush] Look for :incremental suffixed scripts in watch mode #4960

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

dmichon-msft
Copy link
Contributor

Summary

Changes the algorithm for executing phased commands in watch mode to prefer a script named _phase:<name>:incremental for every iteration after the first. The typical scenario for such would be to omit cleaning from an incremental run.

Details

The build cache will still treat the :incremental commands as having the same cache key as the non-incremental command, so later iterations can still encounter cache hits. However, cache writes do not occur in iterations after the first.

How it was tested

Temporarily added a _phase:build:incremental to a project and ran rush start. Validated that the _phase:build:incremental script was used for the second iteration. Validated that modifying inputs back to a state known to be present in the cache resulted in a cache hit.

Impacted documentation

Documentation on phased commands.

@dmichon-msft dmichon-msft merged commit f28e817 into microsoft:main Oct 3, 2024
4 checks passed
@dmichon-msft dmichon-msft deleted the script-priority branch October 3, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

3 participants