Skip to content

Commit

Permalink
#19: Add past builds table to PerfTests Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Oct 24, 2022
1 parent 728bc49 commit 6ce7e82
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions generate_wiki_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def create_md_build_page(last_builds, exp_temp_inst, exp_temp_sets, exp_headers)
file.write(file_content)


def create_md_perf_page():
def create_md_perf_page(last_builds):
parser = argparse.ArgumentParser()
parser.add_argument(
"-t",
Expand Down Expand Up @@ -392,12 +392,14 @@ def create_md_perf_page():
link = create_image_hyperlink(f"{perf_test_url}{file}")
content_with_all_tests += f"{link}\n"

content_with_all_tests += "*** \n"

file_content = (
f"# Performance Tests\n"
f"{get_runner_info()}"
f"{content_with_all_tests}\n"
"***\n"
"## Past Builds\n"
f"{last_builds} \n"
"*** \n"
"# Heaptrack result\n"
"Following flamegraphs were generated using"
"[Heaptrack](https://github.com/KDE/heaptrack) and "
Expand Down Expand Up @@ -431,4 +433,4 @@ def create_md_perf_page():

last_builds_in = generate_last_build_table()
create_md_build_page(last_builds_in, templates_in, template_sets_in, headers_in)
create_md_perf_page()
create_md_perf_page(last_builds_in)

0 comments on commit 6ce7e82

Please sign in to comment.