Skip to content

Commit 15255dd

Browse files
authored
removing csv result compilation after Unit test... (#248)
1 parent 877deed commit 15255dd

File tree

4 files changed

+0
-28
lines changed

4 files changed

+0
-28
lines changed

build/rocm/Dockerfile.ms

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
6262
pytest-reportlog \
6363
pytest-rerunfailures \
6464
pytest-json-report \
65-
pytest-csv \
6665
cloudpickle \
6766
portpicker \
6867
matplotlib \

build/rocm/docker/Dockerfile.jax-ubu22

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
4747
pytest-reportlog \
4848
pytest-rerunfailures \
4949
pytest-json-report \
50-
pytest-csv \
5150
cloudpickle \
5251
portpicker \
5352
matplotlib \

build/rocm/docker/Dockerfile.jax-ubu24

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
4646
pytest-reportlog \
4747
pytest-rerunfailures \
4848
pytest-json-report \
49-
pytest-csv \
5049
cloudpickle \
5150
portpicker \
5251
matplotlib \

build/rocm/run_single_gpu.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515

1616
import os
17-
import csv
1817
import json
1918
import argparse
2019
import threading
@@ -43,22 +42,6 @@ def combine_json_reports():
4342
with open(combined_json_file, "w") as outfile:
4443
json.dump(combined_data, outfile, indent=4)
4544

46-
47-
def combine_csv_reports():
48-
all_csv_files = [f for f in os.listdir(base_dir) if f.endswith("_log.csv")]
49-
combined_csv_file = f"{base_dir}/final_compiled_report.csv"
50-
with open(combined_csv_file, mode="w", newline="") as outfile:
51-
csv_writer = csv.writer(outfile)
52-
for i, csv_file in enumerate(all_csv_files):
53-
with open(os.path.join(base_dir, csv_file), mode="r") as infile:
54-
csv_reader = csv.reader(infile)
55-
if i == 0:
56-
# write headers only once
57-
csv_writer.writerow(next(csv_reader))
58-
for row in csv_reader:
59-
csv_writer.writerow(row)
60-
61-
6245
def generate_final_report(shell=False, env_vars={}):
6346
env = os.environ
6447
env = {**env, **env_vars}
@@ -76,8 +59,6 @@ def generate_final_report(shell=False, env_vars={}):
7659

7760
# Generate json reports.
7861
combine_json_reports()
79-
# Generate csv reports.
80-
combine_csv_reports()
8162

8263

8364
def run_shell_command(cmd, shell=False, env_vars={}):
@@ -147,9 +128,6 @@ def run_test(testmodule, gpu_tokens, continue_on_fail):
147128
"pytest",
148129
"--json-report",
149130
f"--json-report-file={base_dir}/{testfile}_log.json",
150-
f"--csv={base_dir}/{testfile}_log.csv",
151-
"--csv-columns",
152-
"id,module,name,file,status,duration",
153131
f"--html={base_dir}/{testfile}_log.html",
154132
"--reruns",
155133
"3",
@@ -163,9 +141,6 @@ def run_test(testmodule, gpu_tokens, continue_on_fail):
163141
"pytest",
164142
"--json-report",
165143
f"--json-report-file={base_dir}/{testfile}_log.json",
166-
f"--csv={base_dir}/{testfile}_log.csv",
167-
"--csv-columns",
168-
"id,module,name,file,status,duration",
169144
f"--html={base_dir}/{testfile}_log.html",
170145
"--reruns",
171146
"3",

0 commit comments

Comments
 (0)