Repository navigation
fix(examples): keep the GitHub threat pack under the playground's row limit - #46
Merged
Merged
Conversation
… limit The playground's demo user reads at most a billion rows per query and then stops without an error, so branch-reset-storm (5.3 billion PushEvents) and tag-retarget (1.7 billion Create and Delete events) returned partial answers that looked complete. Both now take an org parameter, a prefix of repo_name that prunes them to a few hundred thousand rows. star-storm and mass-ref-deletion take their threshold as a parameter, because the feed is far thinner than when 50 was chosen. The demo page, the file header and the README follow. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Managed user accounts have one in their names, and the pattern is only there to catch typing mistakes: the value is bound as a typed parameter. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
What / why
The playground's
demouser reads at most a billion rows per query and then stops without an error (max_rows_to_read = 1000000000,read_overflow_mode = break). Two rules in the GitHub pack read more than that, so what they returned on the playground, and on the demo page, was a partial answer that looked complete:branch-reset-stormtag-retargetTwo more read everything and found nothing in recent windows, because the feed is much thinner than it was: about 110,000 stars in the first 17 days of November 2026, against 3.6 to 4.2 million a month in mid-2025. Their thresholds of 50 were not reached; the busiest repository-hour of the last week had 20 stars.
What changes:
branch-reset-stormandtag-retargettake anorgparameter, the part ofrepo_namebefore the slash:startsWith(repo_name, concat({org:String}, '/')). Together with the event type that is a prefix of the table's sort key, so the scan prunes to a few hundred thousand rows and the answer is complete.star-stormandmass-ref-deletiontake their threshold as a parameter,min_starsandmin_deletions, where they had a fixed 50.play.sh.What the six rules return with the demo's defaults, read from the built site in headless Chrome against the playground:
branch-reset-stormorg=ClickHouse, 2024-04-15 to 2024-04-22tag-retargetorg=ClickHouse, 2024-08-05 to 2024-08-12star-stormmin_stars=5mass-ref-deletionhours=24,min_deletions=10bulk-collaborator-addcommit-hour-anomalyrepo=ClickHouse/ClickHouse, last 30 daysFor each of them the server's
X-ClickHouse-Summaryheader hasread_rowsequal tototal_rows_to_read, so none is cut off.Two things to look at:
repodefault the page already had. With those windows the page showsrobot-clickhouseresetting refs 41 times in a week, and release tags being re-cut interraform-provider-clickhouse,spark-clickhouse-connectorandch2rs. That is ordinary release work, but it is our own org under a rule that is called a threat. Another org or other windows are a two-line change insite/src/demos/registry.ts.Not in this PR: nothing in
play.shor on the demo page says when a result was cut off. Both could compareread_rowswithtotal_rows_to_readfrom the summary header and warn.Checklist
make testandmake smokepasssite/updated if behavior or docs changed (samples insite/src/samples.tsstay verbatim)make smokecompiles it)🤖 Generated with Claude Code