Fix CI slack reporting issue (#34833)
* fix * fix * fix * fix * fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -1076,6 +1076,11 @@ if __name__ == "__main__":
|
||||
|
||||
for line in artifact["summary_short"].split("\n"):
|
||||
if line.startswith("FAILED "):
|
||||
# Avoid the extra `FAILED` entry given by `run_test_using_subprocess` causing issue when calling
|
||||
# `stacktraces.pop` below.
|
||||
# See `run_test_using_subprocess` in `src/transformers/testing_utils.py`
|
||||
if " - Failed: (subprocess)" in line:
|
||||
continue
|
||||
line = line[len("FAILED ") :]
|
||||
line = line.split()[0].replace("\n", "")
|
||||
|
||||
@@ -1186,6 +1191,11 @@ if __name__ == "__main__":
|
||||
if failed:
|
||||
for line in artifact["summary_short"].split("\n"):
|
||||
if line.startswith("FAILED "):
|
||||
# Avoid the extra `FAILED` entry given by `run_test_using_subprocess` causing issue when calling
|
||||
# `stacktraces.pop` below.
|
||||
# See `run_test_using_subprocess` in `src/transformers/testing_utils.py`
|
||||
if " - Failed: (subprocess)" in line:
|
||||
continue
|
||||
line = line[len("FAILED ") :]
|
||||
line = line.split()[0].replace("\n", "")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user