Skip to content

Commit 0d60bba

Browse files
Other divide by zero issues
1 parent ee1315e commit 0d60bba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

developer_support_script/check_build_stability.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def print_results(self) -> None:
184184
percentage_aborted_builds, ERROR_THRESHOLD_PERCENTAGE, WARNING_THRESHOLD_PERCENTAGE
185185
)
186186
print(
187-
f"{level}: Aborted builds [{percentage_aborted_builds:.0f}% ({self.num_aborted_builds}/{all_builds})]"
187+
f"{level}: Aborted builds [{percentage_aborted_builds:.0f}% ({percentage_aborted_builds})]"
188188
)
189189

190190
# Failures with no test report
@@ -200,7 +200,7 @@ def print_results(self) -> None:
200200
WARNING_THRESHOLD_PERCENTAGE,
201201
)
202202
print(
203-
f"{level}: Failed builds with no Test Report [{percentage_no_test_report_failures:.0f}% ({self.no_test_report_failures}/{valid_builds})]"
203+
f"{level}: Failed builds with no Test Report [{percentage_no_test_report_failures:.0f}% ({percentage_no_test_report_failures})]"
204204
)
205205

206206
# Tests.
@@ -213,7 +213,7 @@ def print_results(self) -> None:
213213
percentage_test_failure, ERROR_THRESHOLD_PERCENTAGE, WARNING_THRESHOLD_PERCENTAGE
214214
)
215215
print(
216-
f"{level}: [{percentage_test_failure:.0f}% ({num}/{self.num_evaluate_builds})] {name}"
216+
f"{level}: [{percentage_test_failure:.0f}% ({percentage_test_failure})] {name}"
217217
)
218218

219219

0 commit comments

Comments
 (0)