Skip to content

Commit 5867b89

Browse files
committed
update
1 parent c00739c commit 5867b89

File tree

2 files changed

+6
-42
lines changed

2 files changed

+6
-42
lines changed

.github/workflows/nightly_tests.yml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ jobs:
100100
with:
101101
name: pipeline_${{ matrix.module }}_test_reports
102102
path: reports
103-
- name: Generate Report and Notify Channel
104-
if: always()
105-
run: |
106-
pip install slack_sdk tabulate
107-
python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
108-
109103
run_nightly_tests_for_other_torch_modules:
110104
name: Nightly Torch CUDA Tests
111105
runs-on:
@@ -175,12 +169,6 @@ jobs:
175169
name: torch_${{ matrix.module }}_cuda_test_reports
176170
path: reports
177171

178-
- name: Generate Report and Notify Channel
179-
if: always()
180-
run: |
181-
pip install slack_sdk tabulate
182-
python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
183-
184172
run_big_gpu_torch_tests:
185173
name: Torch tests on big GPU
186174
strategy:
@@ -231,12 +219,6 @@ jobs:
231219
with:
232220
name: torch_cuda_big_gpu_test_reports
233221
path: reports
234-
- name: Generate Report and Notify Channel
235-
if: always()
236-
run: |
237-
pip install slack_sdk tabulate
238-
python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
239-
240222
torch_minimum_version_cuda_tests:
241223
name: Torch Minimum Version CUDA Tests
242224
runs-on:
@@ -345,12 +327,6 @@ jobs:
345327
name: flax_tpu_test_reports
346328
path: reports
347329

348-
- name: Generate Report and Notify Channel
349-
if: always()
350-
run: |
351-
pip install slack_sdk tabulate
352-
python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
353-
354330
run_nightly_onnx_tests:
355331
name: Nightly ONNXRuntime CUDA tests on Ubuntu
356332
runs-on:
@@ -400,12 +376,6 @@ jobs:
400376
name: tests_onnx_cuda_reports
401377
path: reports
402378

403-
- name: Generate Report and Notify Channel
404-
if: always()
405-
run: |
406-
pip install slack_sdk tabulate
407-
python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
408-
409379
run_nightly_quantization_tests:
410380
name: Torch quantization nightly tests
411381
strategy:
@@ -471,12 +441,6 @@ jobs:
471441
with:
472442
name: torch_cuda_${{ matrix.config.backend }}_reports
473443
path: reports
474-
- name: Generate Report and Notify Channel
475-
if: always()
476-
run: |
477-
pip install slack_sdk tabulate
478-
python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
479-
480444
generate_consolidated_report:
481445
name: Generate Consolidated Test Report
482446
needs: [

utils/consolidated_test_report.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ def parse_stats_file(file_path):
6868
if len(parts) >= 3:
6969
time_str = parts[0]
7070
test_path = " ".join(parts[2:])
71-
71+
7272
# Skip entries with "< 0.05 secs were omitted" or similar
7373
if "secs were omitted" in test_path:
7474
continue
75-
75+
7676
try:
7777
time_seconds = float(time_str.rstrip("s"))
7878
slowest_tests.append({"test": test_path, "duration": time_seconds})
@@ -108,11 +108,11 @@ def parse_durations_file(file_path):
108108
if len(parts) >= 3:
109109
time_str = parts[0]
110110
test_path = " ".join(parts[2:])
111-
111+
112112
# Skip entries with "< 0.05 secs were omitted" or similar
113113
if "secs were omitted" in test_path:
114114
continue
115-
115+
116116
try:
117117
time_seconds = float(time_str.rstrip("s"))
118118
slowest_tests.append({"test": test_path, "duration": time_seconds})
@@ -320,7 +320,7 @@ def consolidate_reports(reports_dir):
320320

321321
# Filter out entries with "secs were omitted"
322322
filtered_slow_tests = [test for test in all_slow_tests if "secs were omitted" not in test["test"]]
323-
323+
324324
# Sort all slow tests by duration (descending)
325325
filtered_slow_tests.sort(key=lambda x: x["duration"], reverse=True)
326326

@@ -572,7 +572,7 @@ def create_slack_payload(consolidated_data):
572572
if slowest_tests:
573573
# Filter out "< 0.05 secs were omitted" entries
574574
filtered_tests = [test for test in slowest_tests if "secs were omitted" not in test["test"]]
575-
575+
576576
# Take top 5 for Slack message to avoid clutter
577577
top5_slowest = filtered_tests[:5]
578578

0 commit comments

Comments
 (0)