Skip to content

Commit

Permalink
Merge pull request #4667 from aramissennyeydd/sennyeya/fix-cobuild-sy…
Browse files Browse the repository at this point in the history
…mbols

[console-timeline] update: show only cobuild build steps in the build timeline
  • Loading branch information
dmichon-msft committed May 1, 2024
2 parents 7a6b721 + 030c7a7 commit 0c41a82
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ const TIMELINE_CHART_SYMBOLS: Record<OperationStatus, string> = {
[OperationStatus.NoOp]: '%'
};

const COBUILD_REPORTABLE_STATUSES: Set<OperationStatus> = new Set([
OperationStatus.Success,
OperationStatus.SuccessWithWarning,
OperationStatus.Failure,
OperationStatus.Blocked
]);

/**
* Timeline - colorizer for each operation status
*/
Expand Down Expand Up @@ -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';
}
Expand Down

0 comments on commit 0c41a82

Please sign in to comment.