You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local build_1_effective_execution_duration="${effective_task_execution_duration[0]}"
179
+
180
+
local build_2_effective_execution_duration="${effective_task_execution_duration[1]}"
181
+
local build_2_executed_cacheable_duration="${executed_cacheable_duration_milliseconds[1]}"
182
+
local build_2_serialization_factor="${serialization_factors[1]}"
183
+
184
+
# Do not print potential build time savings at all if these values do not exist
185
+
# This can happen since build-scan-support-tool does not yet support these fields
186
+
if [[ -z"${build_1_effective_execution_duration}"||-z"${build_2_effective_execution_duration}"||-z"${build_2_executed_cacheable_duration}"||-z"${build_2_serialization_factor}" ]];then
187
+
return 0
188
+
fi
189
+
190
+
local value
191
+
value=""
192
+
# Only calculate realized build time savings when these have valid values
193
+
# These values can be returned as zero when an error occurs processing the Build Scan data
194
+
if [[ "${build_1_effective_execution_duration}"&&"${build_2_effective_execution_duration}"&&-n"${build_2_serialization_factor}" ]];then
195
+
local first_build second_build potential_build_duration potential_savings
0 commit comments