Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
FILE_SCHEMA,
get_report_path,
IS_CI,
IS_MACOS,
parser as common_parser,
retry_shell,
set_cwd,
Expand Down Expand Up @@ -617,6 +618,16 @@ def print_to_file(s):
else:
sc_command = f"--sc={stepcurrent_key}"
print_to_file("Retrying...")
# Print full c++ stack traces during retries
# Don't do it for macos inductor tests as it makes them
# segfault for some reason
if not (
IS_MACOS
and len(command) >= 2
and command[2].startswith(INDUCTOR_TEST_PREFIX)
):
env = env or {}
env["TORCH_SHOW_CPP_STACKTRACES"] = "1"
print_items = [] # do not continue printing them, massive waste of space

consistent_failures = [x[1:-1] for x in num_failures.keys() if num_failures[x] >= 3]
Expand Down