Skip to content

Commit 9fd2133

Browse files
committed
Update
[ghstack-poisoned]
1 parent a5e2abe commit 9fd2133

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

.github/workflows/test-backend-arm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
schedule:
55
- cron: 0 2 * * *
66
push:
7+
branches:
8+
- release/*
79
tags:
810
- ciflow/nightly/*
911
pull_request:

.github/workflows/test-backend-coreml.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
schedule:
55
- cron: 0 2 * * *
66
push:
7+
branches:
8+
- release/*
79
tags:
810
- ciflow/nightly/*
911
pull_request:

.github/workflows/test-backend-qnn.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
schedule:
55
- cron: 0 2 * * *
66
push:
7+
branches:
8+
- release/*
79
tags:
810
- ciflow/nightly/*
911
pull_request:

.github/workflows/test-backend-vulkan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
schedule:
55
- cron: 0 2 * * *
66
push:
7+
branches:
8+
- release/*
79
tags:
810
- ciflow/nightly/*
911
pull_request:

.github/workflows/test-backend-xnnpack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
schedule:
55
- cron: 0 2 * * *
66
push:
7+
branches:
8+
- release/*
79
tags:
810
- ciflow/nightly/*
911
pull_request:

backends/test/suite/generate_markdown_summary.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,17 @@ def generate_markdown(csv_path: str, exit_code: int = 0): # noqa (C901)
151151
results = aggregate_results(csv_path)
152152

153153
# Generate Summary section
154-
total_rows = results.counts.total
155154
print("# Summary\n")
156-
print(f"- **Pass**: {results.counts.passes}/{total_rows}")
157-
print(f"- **Fail**: {results.counts.fails}/{total_rows}")
158-
print(f"- **Skip**: {results.counts.skips}/{total_rows}")
155+
total_excluding_skips = results.counts.passes + results.counts.fails
156+
pass_fraction = results.counts.passes / total_excluding_skips
157+
fail_fraction = results.counts.fails / total_excluding_skips
158+
print(
159+
f"- **Pass**: {results.counts.passes}/{total_excluding_skips} ({pass_fraction*100:.2f}%)"
160+
)
161+
print(
162+
f"- **Fail**: {results.counts.fails}/{total_excluding_skips} ({fail_fraction*100:.2f}%)"
163+
)
164+
print(f"- **Skip**: {results.counts.skips}")
159165

160166
if results.counts_by_params:
161167
print("\n## Results by Parameters\n")
@@ -170,7 +176,7 @@ def generate_markdown(csv_path: str, exit_code: int = 0): # noqa (C901)
170176
parsed_params[params_str] = params_dict
171177
all_param_keys.update(params_dict.keys())
172178

173-
if parsed_params:
179+
if parsed_params and len(parsed_params) > 1:
174180
# Sort parameter keys for consistent column ordering
175181
sorted_param_keys = sorted(all_param_keys)
176182

0 commit comments

Comments
 (0)