Gallery

GitHub's event mix, and the day it stopped being comparable

Event types in 58 sampled GH Archive hours from 2015 to 2026, read with read_json over a URL list and probed with VARIANT across a payload change.

A slow drift toward pushes for ten years, then abrupt swings after October 2025

Before the payload change · quarterly, 2015-01 to 2025-09

After · monthly, 2025-10 to 2026-10

Share of events by type in one hour (15:00 UTC) on each sampled day. The panels are drawn separately because public event payloads changed between the 2025-09-15 and 2025-10-15 samples. Four hours with far fewer events than the samples before them (listed below) are left out of the lines.SourceGH Archive hourly files (data.gharchive.org), 58 hours from 2015-01-15 to 2026-10-15, read 2026-10-25.

From 2015 to September 2025 the mix drifted slowly toward pushes: they were 49.3% of events in the first sampled hour and 64.8% in the last one before the change, about 15 points in ten years, while stars (WatchEvent) fell from 8.9% to 2.4% and issue comments from 10.6% to 4.5%. After the change the mix moved faster than in any earlier year: pushes went from 66.5% in October 2025 to 97.2% in August 2026. The payload itself changed between the 2025-09-15 and 2025-10-15 samples: push payloads lost size and commits, and the share of pull-request events with action closed fell from 47.9% to 4.7%. Nothing in this sample says whether the later swings come from what developers did or from what the feed records, so the points after the change are not comparable with those before it. From September 2026 the files hold a small fraction of the usual events. The 2026-09-15 hour has 81,142 events, about half the median of the four samples before it, with pull requests at 23.9%. The 2026-10-15 hour has 3,582 events, 2.2% of that median, and no push or create events at all. Those two hours measure feed coverage, not the mix, so they are left out of the lines, as are two earlier short hours (2020-07-15 and 2021-10-15).

The payload break, read from the JSON itself

2025-07-15164,140100%100%49.3%48
2025-08-15160,405100%100%49.2%48
2025-09-15175,991100%100%47.9%48
2025-10-15143,4530%0%4.7%5
2025-11-15149,9170%0%5.5%5
2025-12-15152,4400%0%3.6%5
2026-01-15146,6350%0%3.6%5
7 rows
Per sampled hour: share of PushEvent payloads that carry `size` and `commits`, share of PullRequestEvents with action `closed`, and the number of keys in the `pull_request` object.SourceSame 58 GH Archive hours.

Hours left out of the lines: far fewer events than the samples before them

2020-07-1555,99851.1%8,766
2021-10-1538,28625.0%20,783
2026-09-1581,14250.3%24,180
2026-10-153,5822.2%0
4 rows
Sampled hours with fewer than 60% of the events of the median of the four samples before them. The pipeline flags them and fails if the set changes.SourceSame 58 GH Archive hours.
One read_json over 58 URLs, payload probed as VARIANTgallery/g04-github-event-mix/pipeline.sqlShow SQL
pipeline.sqlSQL
SET VARIABLE urls = (SELECT list(url ORDER BY url) FROM samples);
CREATE TABLE hour_counts AS
WITH ev AS (
    SELECT filename, type,
           CASE WHEN type IN ('PushEvent', 'PullRequestEvent') THEN payload::VARIANT END AS pv
    FROM read_json(getvariable('urls'), columns = {'type': 'VARCHAR', 'payload': 'JSON'},
                   filename = true, format = 'newline_delimited', compression = 'gzip'))
SELECT filename AS url, type, count(*) AS events,
       count(*) FILTER (WHERE type = 'PushEvent' AND variant_exists(pv, 'size'))    AS push_with_size,
       count(*) FILTER (WHERE type = 'PushEvent' AND variant_exists(pv, 'commits')) AS push_with_commits,
       count(*) FILTER (WHERE type = 'PullRequestEvent'
                          AND variant_extract_string(pv, 'action') = 'closed')      AS pr_closed,
       avg(len(variant_keys(variant_extract(pv, 'pull_request'))))
           FILTER (WHERE type = 'PullRequestEvent')                                 AS pr_object_keys
FROM ev GROUP BY ALL;

7,139,368 events in 58 files · 3.03 GB fetched · 97 sRuns at build time in DuckDB 2.0; shown for reading.Open file

The sample is 15:00 UTC on the 15th of each quarter through July 2025, then the 15th of every month, so the change is bracketed month by month. Casting the payload to VARIANT lets one query ask which keys an event carries in any year, without declaring a schema per era. The pipeline fails unless every push before 2025-10-07 has size and none after does. The hours are streamed and aggregated in one pass; nothing but the two JSON outputs is written. The 2025-10-07 date is from the GH Archive field audit in this repository's PR #2; the sample only places the change within that month.

Shell
duckdb -bail :memory: -c ".read gallery/g04-github-event-mix/pipeline.sql"

Full pipeline: gallery/g04-github-event-mix/pipeline.sql.