Skip to content

Commit 0754ddc

Browse files
authored
do not display timing labels for skipped stages (#843)
1 parent c540550 commit 0754ddc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/frontend/pipeline-graph-view/pipeline-graph/main/PipelineGraphLayout.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
NodeLabelInfo,
88
PlaceholderNodeInfo,
99
PositionedGraph,
10+
Result,
1011
StageInfo,
1112
StageNodeInfo,
1213
} from "./PipelineGraphModel.tsx";
@@ -400,6 +401,10 @@ function createTimings(
400401
}
401402
const stage = column.topStage;
402403

404+
if (stage?.state === Result.skipped) {
405+
continue;
406+
}
407+
403408
const text = stage?.totalDurationMillis + "";
404409
if (!text) {
405410
// shouldn't happen

0 commit comments

Comments
 (0)