Skip to content

Commit

Permalink
Merge pull request #357 from pq-code-package/cbmc_proof_times_ci
Browse files Browse the repository at this point in the history
CI: Log CBMC proof times
  • Loading branch information
hanno-becker authored Nov 7, 2024
2 parents f67d988 + eb9f90b commit 67058df
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cbmc/proofs/lib/summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _get_status_and_proof_summaries(run_dict):
The second sub-list maps each proof to its status.
"""
count_statuses = {}
proofs = [["Proof", "Status"]]
proofs = [["Proof", "Status", "Duration (in s)"]]
for proof_pipeline in run_dict["pipelines"]:
status_pretty_name = proof_pipeline["status"].title().replace("_", " ")
try:
Expand All @@ -93,7 +93,12 @@ def _get_status_and_proof_summaries(run_dict):
count_statuses[status_pretty_name] = 1
if proof_pipeline["name"] == "print_tool_versions":
continue
proofs.append([proof_pipeline["name"], status_pretty_name])
duration = 0
for stage in proof_pipeline["ci_stages"]:
for job in stage["jobs"]:
if "duration" in job.keys():
duration += int(job["duration"])
proofs.append([proof_pipeline["name"], status_pretty_name, str(duration)])
statuses = [["Status", "Count"]]
for status, count in count_statuses.items():
statuses.append([status, str(count)])
Expand Down

0 comments on commit 67058df

Please sign in to comment.