Skip to content

Import all autoconsent performance measurements into ClickHouse - #220

Merged
muodov merged 1 commit into
mainfrom
autoconsent-performance-measurements
Nov 12, 2026
Merged

muodov merged 1 commit into
mainfrom
autoconsent-performance-measurements

Conversation

@muodov

@muodov muodov commented Nov 12, 2026

Copy link
Copy Markdown
Member

Summary

autoconsentPerformance rows were built from a hardcoded list of measurement names. That list has drifted from autoconsent:

  • filterCMPs is no longer reported, so every frame gets a filterCMPs row with sum = 0, count = 0 (one in six rows in the table is empty).
  • parseDeclarativeRules (rule parsing time, reported since autoconsent's performance logging added it) is never imported.

This takes the measurement names from each frame's performance entry instead (every array-valued key), so the rows follow whatever the crawled autoconsent version reports. Older crawl output that still has filterCMPs keeps importing it, and pages without performance data import no rows, as before.

No schema change: measurement is a String column, so no DDL is needed.

One behaviour change: a measurement missing from an entry no longer produces a 0/0 row. Autoconsent always reports every measurement it knows (as an empty array when it never ran), so this only drops rows for names the crawled version doesn't have.

Testing

  • New unit tests for performanceToRows and for importing a page without performance data.
  • Ran the transform over real crawl output: rows match the existing table exactly for the five shared measurements, minus filterCMPs and plus parseDeclarativeRules.

🤖 Generated with Claude Code

The autoconsentPerformance rows were built from a hardcoded list of
measurement names. Autoconsent no longer reports filterCMPs, so every
frame got a 0/0 filterCMPs row, and the newer parseDeclarativeRules
timing was never imported.

Take the measurement names from each frame's performance entry instead
(every array-valued key), so rows follow whatever the crawled autoconsent
version reports. No schema change: measurement is a String column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@muodov
muodov marked this pull request as ready for review November 12, 2026 11:08

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@muodov
muodov requested a review from sammacbeth November 12, 2026 11:09
@muodov
muodov merged commit 1d3fe2d into main Nov 12, 2026
5 checks passed
@muodov
muodov deleted the autoconsent-performance-measurements branch November 12, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants