The 0.0.x rpms were classed other, so installer totals left out about 220
lifetime downloads; they are installers like the 2.x rpm. Only one snapshot
has reached PostHog with the old kind, and the dashboard tiles compute
growth per asset, so the switch moves no counts.
The stable*.yml docstring said one count per 2.x launch or Check now. The
website's update proxy also fetches each file itself, about 96 a day per
file, and 2.2.4+ checks reach GitHub only when they fall back.
New release-stats kinds installer_rpm, install_script, apt_index and checksums; the 0.0.x rpms keep the kind they were first sent with. The kind table names the package managers behind each installer count, since none of them reads stable*.yml.
urllib follows a redirect on its own and copies every header onto it,
the Authorization one included, so a 3xx to another host still carried
the token after next-page links were checked. The default opener now
follows a redirect only on the API's origin and raises
GitHubOriginError for any other, before a request goes there.
Each run sent yesterday's views and clones once, under a random event id,
so a rerun the same day doubled the daily sum and a missed run left a gap.
Send one github_traffic_day per whole day GitHub still holds, at that day's
midnight UTC with a uuid derived from the repository and the day, so PostHog
keeps one copy per day. The 14-day totals stay on github_traffic_snapshot.
A daily job reads every release's per-asset download counts and, when
RELEASE_STATS_TOKEN has push access, the 14-day traffic GitHub otherwise
drops. It keeps the snapshot as a 90-day artifact and, with
POSTHOG_PROJECT_API_KEY set, sends personless events classified by which
client fetches each asset.