Repository navigation
Import all autoconsent performance measurements into ClickHouse - #220
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 12, 2026 11:08
There was a problem hiding this comment.
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.
sammacbeth
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
autoconsentPerformancerows were built from a hardcoded list of measurement names. That list has drifted from autoconsent:filterCMPsis no longer reported, so every frame gets afilterCMPsrow withsum = 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
filterCMPskeeps importing it, and pages without performance data import no rows, as before.No schema change:
measurementis aStringcolumn, so no DDL is needed.One behaviour change: a measurement missing from an entry no longer produces a
0/0row. 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
performanceToRowsand for importing a page without performance data.filterCMPsand plusparseDeclarativeRules.🤖 Generated with Claude Code