Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions check_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def main():

rdir = config.get('dirs', 'results', fallback=os.path.join(NIPA_DIR, "results"))
tgt_json = os.path.join(rdir, "checks.json")
tgt_json_status = os.path.join(rdir, "checks-status.json")

# Time bounds
retain_history_days = 60 # how much data we want in the JSON
Expand All @@ -55,6 +56,7 @@ def main():

json_resp = pw.get_patches_all(delegate=delegate, since=since)
jdb = []
jdb_status = []
old_unchanged = 0
check_updates = 0
seen_pids = set()
Expand Down Expand Up @@ -90,6 +92,17 @@ def main():
}
jdb.append(info)

info = {
"date": p["date"],
"check": c["context"],
"check-date": c["date"]
}
jdb_status.append(info)

# only the "recent" ones
with open(tgt_json_status, "w") as fp:
json.dump(jdb_status, fp)

new_db = []
skipped = 0
horizon_gc = 0
Expand Down
1 change: 1 addition & 0 deletions scripts/ui_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ PROD=https://netdev.bots.linux.dev
LOCAL=./ui
ASSETS=(
"checks.json"
"checks-status.json"
"status.json"
"issues.json"
"contest/branch-results.json"
Expand Down
2 changes: 1 addition & 1 deletion ui/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ function do_it()
* Please remember to keep these assets in sync with `scripts/ui_assets.sh`
*/
$(document).ready(function() {
$.get("checks.json", run_it)
$.get("checks-status.json", run_it)
});
$(document).ready(function() {
$.get("status.json", status_system)
Expand Down