From bbb62f2924e7f774a495a7fe44dcd0e1c6c5c720 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Mon, 25 Jul 2022 11:09:23 +0200 Subject: [PATCH] Skip passes report for `--make-reports` (#18250) Co-authored-by: ydshieh --- src/transformers/testing_utils.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/transformers/testing_utils.py b/src/transformers/testing_utils.py index 9360347238..80f7bf9c86 100644 --- a/src/transformers/testing_utils.py +++ b/src/transformers/testing_utils.py @@ -1386,9 +1386,13 @@ def pytest_terminal_summary_main(tr, id): tr.summary_warnings() # final warnings tr.reportchars = "wPpsxXEf" # emulate -rA (used in summary_passes() and short_test_summary()) - with open(report_files["passes"], "w") as f: - tr._tw = create_terminal_writer(config, f) - tr.summary_passes() + + # Skip the `passes` report, as it starts to take more than 5 minutes, and sometimes it timeouts on CircleCI if it + # takes > 10 minutes (as this part doesn't generate any output on the terminal). + # (also, it seems there is no useful information in this report, and we rarely need to read it) + # with open(report_files["passes"], "w") as f: + # tr._tw = create_terminal_writer(config, f) + # tr.summary_passes() with open(report_files["summary_short"], "w") as f: tr._tw = create_terminal_writer(config, f)