-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(caching) Release registry caching #15339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Bundle ReportChanges will decrease total bundle size by 232.61kB (-0.99%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-client-array-pushAssets Changed:
view changes for bundle: sentry-docs-server-cjsAssets Changed:
Files in
|
- Strip ISO timestamps (2025-10-29T16:22:19) before hashing - Normalize Next.js asset hashes in paths (/_next/static/css/abc123...) - Bump CACHE_VERSION to 4 since cache key format changed - This should fix the 99.99% cache miss rate
- Reverted timestamp/asset hash normalization (not verified) - Instead: save first 2000 chars of HTML to debug file - This lets us diff between builds to see what's ACTUALLY changing - Will investigate properly before applying fixes
- Log existing v4 cache files for comparison - Log HTML in 800-char chunks to avoid truncation - This way we can compare build logs to see what's changing
- Saves each cache miss HTML to .next/cache/debug-html-samples/ - Filenames include timestamp for comparison between builds - Only runs locally (skips in CI) - Can diff files to see what's actually changing
BYK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not check src/mdex.ts but if this works things look pretty good overall. Let's ship and fix things later if there's anything to fix.
Made some suggestions for better perf but they are not blockers.
| const cacheHits = success - cacheMisses.length; | ||
| console.log( | ||
| `📈 Worker[${id}]: Cache stats: ${cacheHits} hits, ${cacheMisses.length} misses (${((cacheMisses.length / success) * 100).toFixed(1)}% miss rate)` | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Division by zero breaks cache miss rate.
Division by zero occurs when calculating cache miss percentage if all tasks fail. When success equals zero (all tasks failed), the expression cacheMisses.length / success produces NaN, resulting in the log message displaying "NaN% miss rate" instead of handling the edge case gracefully.
DESCRIBE YOUR PR
Problem
Solution
Impact
IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
EXTRA RESOURCES