diff --git a/common/changes/@microsoft/rush/sennyeya-fix-cobuild-symbols_2024-04-29-16-45.json b/common/changes/@microsoft/rush/sennyeya-fix-cobuild-symbols_2024-04-29-16-45.json new file mode 100644 index 00000000000..3d5a49be109 --- /dev/null +++ b/common/changes/@microsoft/rush/sennyeya-fix-cobuild-symbols_2024-04-29-16-45.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@microsoft/rush", + "comment": "Timeline view will now only show terminal build statuses as cobuilt, all other statuses will reflect their original icons.", + "type": "none" + } + ], + "packageName": "@microsoft/rush" +} \ No newline at end of file diff --git a/libraries/rush-lib/src/logic/operations/ConsoleTimelinePlugin.ts b/libraries/rush-lib/src/logic/operations/ConsoleTimelinePlugin.ts index beae3f7162d..c600475ec4d 100644 --- a/libraries/rush-lib/src/logic/operations/ConsoleTimelinePlugin.ts +++ b/libraries/rush-lib/src/logic/operations/ConsoleTimelinePlugin.ts @@ -89,6 +89,13 @@ const TIMELINE_CHART_SYMBOLS: Record = { [OperationStatus.NoOp]: '%' }; +const COBUILD_REPORTABLE_STATUSES: Set = new Set([ + OperationStatus.Success, + OperationStatus.SuccessWithWarning, + OperationStatus.Failure, + OperationStatus.Blocked +]); + /** * Timeline - colorizer for each operation status */ @@ -232,7 +239,7 @@ export function _printTimeline({ terminal, result, cobuildConfiguration }: IPrin function getChartSymbol(record: ITimelineRecord): string { const { isExecuteByOtherCobuildRunner, status } = record; - if (isExecuteByOtherCobuildRunner) { + if (isExecuteByOtherCobuildRunner && COBUILD_REPORTABLE_STATUSES.has(status)) { hasCobuildSymbol = true; return 'C'; }