Skip to content
Snippets Groups Projects
Commit 773cfb33 authored by Austin Anderson's avatar Austin Anderson
Browse files

Update data carry-over

parent 33fe10e1
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,6 @@ jobs:
- name: Download artifact
id: download-artifact
continue-on-error: true
uses: dawidd6/action-download-artifact@v2
with:
workflow_conclusion: success
......
......@@ -79,7 +79,8 @@ for name, jobs in by_name.items():
new_jobs[0]["first_non_pending_status"] = first_non_pending_status
new_jobs[0]["is_pending"] = new_jobs[1]["state"] in ["PENDING", "IN_PROGRESS", "QUEUED"]
new_jobs[0]["card_class"] = " ".join([first_non_pending_status, "CARD_PENDING" if new_jobs[0]["is_pending"] else "CARD_NOT_PENDING"])
by_name[name] = new_jobs
# only render up to 100 commits per card
by_name[name] = new_jobs[0:100]
by_group = defaultdict(dict)
for category, items in yaml_config["categories"].items():
......
......@@ -17,6 +17,8 @@ for commit in new["data"]["repository"]["defaultBranchRef"]["target"]["history"]
commits[commit["oid"]] = commit
if overlap:
# TODO(angerson) guarantee that this is sorted by date before being sliced
new["data"]["repository"]["defaultBranchRef"]["target"]["history"]["nodes"] = list(commits.values())[0:300]
a = list(commits.values())
a.sort(key: lambda x: x["committedDate"])
# Only store 1000 commits worth of data, which is roughly 2 wks max
new["data"]["repository"]["defaultBranchRef"]["target"]["history"]["nodes"] = a[:1000]
print(json.dumps(new))
......@@ -58,7 +58,10 @@ html(lang="en")
hr
each job in jobs
.d-flex.flex-row.gap-1.py-1
if job["result_url"]
a.badge.my-auto(href=job["result_url"] class=job["state"])= job["state"]
else:
.badge.my-auto(class=job["state"])= job["state"]
if "previous_diff_url" in job:
a.badge.my-auto.text-center.tf-diff(href=job["previous_diff_url"]) Diff
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment