8000 Apply suggestions from code review · strogo/rushstack@8d93e77 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d93e77

Browse files
Apply suggestions from code review
Co-authored-by: Pete Gonzalez <4673363+octogonz@users.noreply.github.com>
1 parent 92d11c4 commit 8d93e77

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common/changes/@microsoft/rush/allow-skip-if-cache-disabled_2023-10-18-21-58.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"changes": [
33
{
44
"packageName": "@microsoft/rush",
5-
"comment": "Allow legacy skip behavior if build cache is configured but disabled. When running in verbose mode, log the type of incremental logic in use.",
5+
"comment": "Allow the output preservation incremental strategy if the build cache is configured but disabled. When running in verbose mode, log the incremental strategy that is being used.",
66
"type": "none"
77
}
88
],

libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export class PhasedScriptAction extends BaseScriptAction<IPhasedCommandConfig> {
352352
}
353353

354354
if (buildCacheConfiguration?.buildCacheEnabled) {
355-
terminal.writeVerboseLine(`Incremental mode: build cache`);
355+
terminal.writeVerboseLine(`Incremental strategy: cache restoration`);
356356
new CacheableOperationPlugin({
357357
allowWarningsInSuccessfulBuild:
358358
!!this.rushConfiguration.experimentsConfiguration.configuration
@@ -362,15 +362,15 @@ export class PhasedScriptAction extends BaseScriptAction<IPhasedCommandConfig> {
362362
terminal
363363
}).apply(this.hooks);
364364
} else if (!this._disableBuildCache) {
365-
terminal.writeVerboseLine(`Incremental mode: legacy skip detection`);
365+
terminal.writeVerboseLine(`Incremental strategy: output preservation`);
366366
// Explicitly disabling the build cache also disables legacy skip detection.
367367
new LegacySkipPlugin({
368368
terminal,
369369
changedProjectsOnly,
370370
isIncrementalBuildAllowed: this._isIncrementalBuildAllowed
371371
}).apply(this.hooks);
372372
} else {
373-
terminal.writeVerboseLine(`Incremental mode: disabled`);
373+
terminal.writeVerboseLine(`Incremental strategy: none (full rebuild)`);
374374
}
375375

376376
const projectConfigurations: ReadonlyMap<RushConfigurationProject, RushProjectConfiguration> = this

0 commit comments

Comments
 (0)
0