From fe9878017f58fabd64fef40f8fa7946cd3f6dbef Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Fri, 15 Mar 2024 12:17:16 -0700 Subject: [PATCH] (ci/cd) show load test results --- .github/workflows/interpret_load_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/interpret_load_test.py b/.github/workflows/interpret_load_test.py index 393100c2b..b1d21c9bc 100644 --- a/.github/workflows/interpret_load_test.py +++ b/.github/workflows/interpret_load_test.py @@ -31,12 +31,12 @@ def interpret_results(csv_file): row["Status"] = "Failed ❌" # Construct Markdown table header - markdown_table = "| Name | Status | Median Response Time (ms) | Average Response Time (ms) | Requests/s | Failures/s | Min Response Time (ms) | Max Response Time (ms) |" + markdown_table = "| Name | Status | Median Response Time (ms) | Average Response Time (ms) | Requests/s | Failures/s | Request Count | Failure Count | Min Response Time (ms) | Max Response Time (ms) |" markdown_table += "\n| --- | --- | --- | --- | --- | --- | --- | --- |" # Construct Markdown table rows for row in rows: - markdown_table += f"\n| {row['Name']} | {row['Status']} | {row['Median Response Time']} | {row['Average Response Time']} | {row['Requests/s']} | {row['Failures/s']} | {row['Min Response Time']} | {row['Max Response Time']} |" + markdown_table += f"\n| {row['Name']} | {row['Status']} | {row['Median Response Time']} | {row['Average Response Time']} | {row['Requests/s']} | {row['Failures/s']} | {row['Request Count']} | {row['Failure Count']} | {row['Min Response Time']} | {row['Max Response Time']} |" print("markdown table: ", markdown_table) return markdown_table