diff --git a/scripts/ci/post_benchmark_results.py b/scripts/ci/post_benchmark_results.py index 509271bf4..3d5b905c4 100644 --- a/scripts/ci/post_benchmark_results.py +++ b/scripts/ci/post_benchmark_results.py @@ -77,7 +77,12 @@ def main(): pr_body = pr_details.get('body', '') or '' markdown_table = create_markdown_table(benchmark_results) - new_benchmark_section = f"\n## Benchmark Results\n{markdown_table}\n" + new_benchmark_section = f""" + +
Benchmark Results +{markdown_table} +
+" if re.search(r'.*', pr_body, re.DOTALL): updated_body = re.sub( diff --git a/scripts/ci/process_locust_benchmark_results.py b/scripts/ci/process_locust_benchmark_results.py index b63e495ee..442ccbc15 100644 --- a/scripts/ci/process_locust_benchmark_results.py +++ b/scripts/ci/process_locust_benchmark_results.py @@ -22,7 +22,7 @@ avg: {float(row['Average Response Time']):.3f}ms min: {float(row['Min Response Time']):.3f}ms max: {float(row['Max Response Time']):.3f}ms ''' - with open(f"{output_folder}/{name}_{suffix}.bench", 'w') as f: + with open(f"{output_folder}/e2e_{name}_{suffix}.bench", 'w') as f: f.write(statistics) if __name__ == '__main__': diff --git a/scripts/ci/run_benchmarks.sh b/scripts/ci/run_benchmarks.sh index d4fa374e4..fae93b1b3 100755 --- a/scripts/ci/run_benchmarks.sh +++ b/scripts/ci/run_benchmarks.sh @@ -45,7 +45,7 @@ function run_benchmarks_for_folder { --csv=locust_results_$ALGORITHM \ --loglevel ERROR || true - python3 $FOLDER/scripts/ci/process_locust_benchmark_results.py locust_results_$ALGORITHM e2e_$ALGORITHM $RESULTS_FOLDER + python3 $FOLDER/scripts/ci/process_locust_benchmark_results.py locust_results_$ALGORITHM $ALGORITHM $RESULTS_FOLDER kill -0 $OSRM_ROUTED_PID