Repository navigation
Fix: Count checksums files from v0.1-v0.4 in install stats - #1368
Conversation
Closes #1367. platform_of anchored its checksums test at the start of the name, but v0.1 through v0.4 published the file as kagenti-extensions_<ver>_checksums.txt. Those 24 releases were filed under "other" and read 0 installs apiece: 79 downloads invisible, and the all-time total understated by 24%. Dropping the anchor fixes it. Verified against every asset the repo has ever published: exactly two naming variants exist and both now match, no asset has "checksums" in a tarball name so nothing is reclassified, and the platform tests still run first. After the change the "other" bucket is empty and 43 releases report a real install count, against 19 before. Historical snapshots are repaired on the way past rather than left with a seam. The misclassified downloads were counted all along -- just under the wrong key -- so moving totals.other into totals.checksums is exact arithmetic. Checked against the five published snapshots: each gains exactly 79, "other" disappears, and the daily deltas the page renders are unchanged (2/1/5). Without it the series would show a one-day jump of ~79 in a column whose deltas are 1-5. The repair keys on the presence of "other", so it is a no-op once every snapshot has been through it -- no version flag, no cutoff date. Verified idempotent: a second run leaves five snapshots, zero "other", same total. Per-release figures inside each snapshot are deliberately untouched. They are already correct under the new pattern and are what a future reader would recompute from. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Mariusz Sabath <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
evaline-ju
left a comment
There was a problem hiding this comment.
Verified against GitHub's actual release asset lists: 24 kagenti-named releases (v0.1-v0.4) exist with kagenti-extensions_<ver>_checksums.txt, the newer v0.7+ releases use checksums.txt, and no tarball name contains "checksums" — so dropping the anchor matches both variants without over-matching. The jq repair pass is exact arithmetic (relocating a constant other = 79 into checksums) rather than an estimate, correctly scoped to historical snapshots only, and idempotent via the .totals.other // 0 > 0 guard.
Author: mrsabath (MEMBER) · CI green
Closes #1367.
The bug
platform_ofinscripts/collect-install-stats.shanchored its checksums test:v0.1 through v0.4 published the file as
kagenti-extensions_<ver>_checksums.txt, which does not start withchecksums. Those 24 releases were filed underotherand read 0 installs apiece.checksums.txtis the page's primary install metric, so:A 24% understatement. Found by @huang195 during review of #1351, where 26 of 42 by-release rows disagreed with their halved-tarball counts by more than rounding explains — the page blamed people fetching tarballs without the installer, and the real cause was this.
The fix
Drop the anchor. Verified against every asset the repo has ever published:
checksums.txtandkagenti-extensions_<ver>_checksums.txt. Both now match.checksumsin the name and are also a.tar.gz, so no tarball moves. The platform tests still run first in theelifchain.otherbucket is empty — it held exactly the 79, all of which moved tochecksums.Repairing the published series
#1367 raised this as an open decision: the fix would otherwise show a one-day jump of ~79 in a column whose daily deltas are 1-5.
The series is repaired on the way past instead. Those downloads were counted all along, just under the wrong key, so moving
totals.otherintototals.checksumsis exact arithmetic rather than a guess — and the data confirms it, sinceotheris a constant 79 across every published snapshot.Checked against the five live snapshots:
Each historical snapshot gains exactly 79,
otherdisappears, and the daily deltas the page renders are unchanged.¹ Oct 13 is the snapshot being re-collected this run, so it also picked up two genuinely new downloads since the morning cron. In production the cron never re-collects a past day, so historical deltas stay frozen.
The repair keys on the presence of
other, so it is a no-op once every snapshot has been through it — no version flag, no cutoff date to maintain. Verified idempotent: a second run leaves five snapshots, zeroother, same total.Per-release figures inside each snapshot are deliberately untouched. They are already correct under the new pattern and are what a future reader would recompute from.
Scope
One file, one pattern change plus the repair pass. No change to the page, the workflow, or the daily table's logic.
Note
The daily series was never wrong — every affected release is from 2026-02 to 2026-04 and sits at a flat
dl=3, so they contributed nothing to day-over-day deltas. This corrupted lifetime readings only. The four days of live data since #1345 merged (net installs 1/0/2/1) are unaffected.Assisted-By: Claude (Anthropic AI) [email protected]
Summary by CodeRabbit