Repository navigation
chore(references): keep HogRef JSON only for versions people install - #1225
Conversation
Strapi's HogRef cron downloads every file in references/ every 15 minutes. With 194 versioned files here and over 1,000 across the JS packages, it uses up its GitHub token's hourly budget, and other syncs on the same token fail. Strapi already stores every version, so the files are only needed for new releases. Keep 6.9.3, 7.86.6 and latest. New releases still add their file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
posthog-python Compliance ReportDate: 2026-11-10T23:00:00.787549+00:00 ✅ All Tests Passed!270/270 tests passed Capture_V1 Tests✅ 95/95 tests passed View Details
Capture_Ai Tests✅ 5/5 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
Feature_Flags_V4 Tests✅ 149/149 tests passed View Details
Feature_Flags_Local_Evaluation Tests✅ 4/4 tests passed View Details
|
SDK performance: posthog-python1 change worth reviewing: 1 observed regression. Flags require at least a 5% change in the median and all six pairs agreeing on direction. This is a noise filter, not proof of a performance change or a CI gate.
View all results
Values are medians of paired measurements. Not flagged does not mean unchanged. Unavailable means a measurement could not be provided, not zero. Estimated allocation measurements retain their instrumentation uncertainty. RSS measures the whole process, not just SDK allocations; observed peaks are sampled checkpoints. Paired ranges in the diagnostics describe variability, not confidence intervals. Each shard uses its own runner; compare Before PR against With PR within a row, not across shards. Compared 102 metric rows; 102 rows shown in all results. Omitted or shortened data remain in |
…he reference Restore the latest patch of every minor whose reference differs from the release before it, plus the newest release of each major. Minors that only bumped the version number stay deleted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Of the files the previous commit kept, keep only those whose versions get at least 1% of the package's weekly downloads, plus the newest release of each major. A file also counts downloads of later minors that share its reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Strapi's HogRef cron downloads every file in the SDK references folders every 15 minutes. Across Python, browser, node and react-native that's 1,277 GitHub requests per run, about 5,108 an hour against the token's 5,000 hourly budget. Prod's rows show the effect: 16 of the last 30 versions missed one to four runs before they reached Strapi, and the Markdown reference sync on the same token got nothing at 22:00 UTC.
This keeps 95 of the 1,260 versioned files. A file stays when all three hold:
The newest release of each major and
-latest.jsonalways stay.Python covers less because about a third of its downloads are releases older than any reference file. After this PR and its sibling, each cron run makes about 106 requests, roughly 420 an hour, and no folder fetches more than 100 files at once.
check-public-api.jsreads only-latest.json.🤖 Generated with Claude Code