From c7beaf467eb044ad516b039068bea249ad8a82d2 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Thu, 12 Dec 2024 15:40:08 -0300 Subject: [PATCH] fix(ci-output): properly cache dynamic info frames The `CIMultiStageOutput` class was caching dynamic blocks by their label, then calculating wether or not to print new info based on the throttle time and causing it to miss printing new dynamic stage data if the throttle time is bigger than the time new data arrives. --- src/multi-stage-output.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multi-stage-output.tsx b/src/multi-stage-output.tsx index ed72015..a75baef 100644 --- a/src/multi-stage-output.tsx +++ b/src/multi-stage-output.tsx @@ -294,7 +294,7 @@ class CIMultiStageOutput> { const formattedData = info.get ? info.get(this.data as T) : undefined if (!formattedData) continue - const key = info.type === 'message' ? formattedData : info.label + const key = info.type === 'message' ? formattedData : `${info.label}: ${formattedData}` const str = info.type === 'message' ? formattedData : `${info.label}: ${formattedData}` const lastUpdateTime = this.lastUpdateByInfo.get(key)