Site icon QATechTools

GitHub Usage Reports Add user_id: QA Checks Before Dec. 1

GitHub Usage Reports Add user_id: QA Checks Before Dec. 1 featured image

GitHub is changing the shape of several usage-report exports on December 1, 2026. Reports that include username will gain a user_id column beside it, moving every following column one position to the right. The change affects detailed usage, AI usage, and premium-request usage reports, including exports created through the REST API. For teams tracking Copilot adoption, premium requests, or developer-tool spend, this is a small schema change with a very real failure mode: a positional parser can silently map the wrong value to the wrong field.

What GitHub is changing

GitHub says the new identifier represents the account that generated the usage, including bot accounts. It can be empty when usage is not tied to an account. The new field also makes deleted accounts and renamed users easier to distinguish and correlate with audit-log events. The summarized usage report is not changing.

There is one important reconciliation detail: deleted accounts will appear on separate rows instead of being combined under an empty username. GitHub says amounts are calculated the same way, but per-row rounding can cause a summed export to differ slightly in the final decimal places. Treat that as an explicit acceptance criterion, not an unexplained dashboard discrepancy.

Why this matters for QA engineers

Usage exports often feed a chain: REST export, scheduled download, transformation, warehouse table, dashboard, and finance or engineering report. AI-tool usage makes that chain more visible because teams may use it to measure Copilot adoption, premium requests, or budget consumption. A report that still downloads successfully is not proof that its consumers remain correct.

A compact GitHub usage report user_id regression pack

Run the following checks against a captured pre-change file and a December 1+ export in a non-production analytics path where possible.

Starter assertion

required = {"username", "user_id", "date"}
headers = set(reader.fieldnames or [])
missing = required - headers
if missing:
    raise ValueError(f"Usage-report schema changed: missing {sorted(missing)}")

# Read values by header name; never by a numeric column index.
user_key = row["user_id"] or row["username"] or "unattributed"

The fallback key is a product decision, not a universal rule. Some teams should quarantine unattributed usage rather than grouping it. Record that choice, test it, and avoid accidentally treating an empty identifier as a real user.

Do this before December 1

The practical takeaway

The GitHub usage report user_id column is useful for durable identity and audit correlation, but it is also a data-contract change. The safe response is simple: parse by header, test representative identities, and reconcile totals with a stated rounding tolerance. That lets QA teams preserve trustworthy AI and developer-tool reporting while taking advantage of the new field.

References

Exit mobile version