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] Treat disabled noops as noop instead of skipped #5043

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

dmichon-msft
Copy link
Contributor

@dmichon-msft dmichon-msft commented Dec 13, 2024

Summary

Ensure that noops don't block cache writing, even if they are disabled.

Details

During phased command execution, if a disabled operation is identified as a No-Op, return OperationStatus.NoOp instead of OperationStatus.Skipped, since by definition a No-Op should not write any files.

How it was tested

Fiddled with command-line.json so that @rushstack/eslint-patch would depend on a noop in @rushstack/tree-pattern, then ran rush build -o eslint-patch --verbose and verified that it wrote a cache entry.

Impacted documentation

None, since this is expected.

@dmichon-msft dmichon-msft merged commit 5a17143 into microsoft:main Dec 13, 2024
5 checks passed
@dmichon-msft dmichon-msft deleted the disabled-noops branch December 14, 2024 00: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.

2 participants