diff --git a/check_fetcher.py b/check_fetcher.py index 2fd8a229..12cc6c2a 100755 --- a/check_fetcher.py +++ b/check_fetcher.py @@ -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 @@ -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() @@ -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 diff --git a/scripts/ui_assets.sh b/scripts/ui_assets.sh index 90c1aa9e..0fc8e449 100755 --- a/scripts/ui_assets.sh +++ b/scripts/ui_assets.sh @@ -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" diff --git a/ui/status.js b/ui/status.js index 0c2d672e..e12f9f89 100644 --- a/ui/status.js +++ b/ui/status.js @@ -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)